:root {
  --accent: #009178;
  --ink: #131415;
  --sub: #5A6E69;
  --line: #DEE9E6;
  --bg-1: #D4EBE5;
  --bg-2: #E0F4F0;
  --bg-3: #F2F9F7;
  --bg-4: #F6FBFA;
  --bg-5: #E8F5F1;
  --bg-6: #D8EDE7;
  --bg-7: #FBFCFB;
  --bg-8: #EEF6F3;
  --hero-tint: #F2F9F7;
  --accent-soft: #E0F4F0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  background: #FFFFFF;
  padding-bottom: 72px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 700; margin: 0 0 16px; line-height: 1.32; }
p { line-height: 1.75; color: var(--sub); margin: 0 0 16px; }

/* ---------- topbar: joseon-center (header_variant=1) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: #FFFFFF; border-bottom: 1px solid #000;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
@media (min-width: 900px) {
  .topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
}
.topbar-left { display: none; }
@media (min-width: 900px) { .topbar-left { display: flex; align-items: center; gap: 26px; font-size: 16px; justify-self: start; } }
.topbar-right { display: none; }
@media (min-width: 900px) { .topbar-right { display: flex; align-items: center; gap: 20px; font-size: 16px; justify-self: end; } }

.logo { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo-icon { width: 32px; height: 32px; color: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-size: 12.5px; font-weight: 600; color: var(--sub); letter-spacing: 0.5px; }
.logo-keyword { font-size: 18px; font-weight: 700; color: var(--ink); }

.topbar-left .navdrop { position: relative; }
.topbar-left .navdrop > a::after { content: " ▾"; font-size: 11px; }
.navdrop-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 201;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 8px; display: none; box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: block; }
.navdrop-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14.5px; }
.navdrop-menu a:hover { background: var(--bg-3); }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #FFF;
  font-weight: 600; font-size: 14.5px;
}

/* ---------- mobile hamburger + drawer ---------- */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }
.mobile-nav {
  display: none; flex-direction: column; background: #FFFFFF; border-top: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.is-open { display: flex; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-cta { color: var(--accent) !important; font-weight: 700; }

/* ---------- hero: split real-photo (main_skin=1, matt card forbidden) ---------- */
.hero { background: #FFFFFF; padding: 56px 0 0; position: relative; z-index: 0; }
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 32px; margin-bottom: 14px; }
@media (min-width: 900px) { .hero h1 { font-size: 42px; } }
.hero .hero-sub { font-size: 16px; line-height: 1.75; margin-bottom: 24px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-fill, .btn-line {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.btn-fill { background: var(--accent); color: #FFF; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--sub); }
.hero-checks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-media {
  background: var(--hero-tint); border-radius: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.hero-media img { width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; }
.section-label svg { width: 18px; height: 18px; }
.section-title { font-size: 30px; margin-bottom: 20px; }
.section-lead { font-size: 16px; max-width: 640px; }

/* ---------- about: section_variant=12 makeon-intro (centered lead typography) ---------- */
.intro-centered { max-width: 700px; margin: 0 auto; text-align: center; }
.intro-centered .section-label { justify-content: center; font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
.intro-centered h2 { font-size: 30px; font-weight: 500; line-height: 1.45; margin: 18px 0 22px; }
@media (min-width: 700px) { .intro-centered h2 { font-size: 36px; } }
.intro-centered .intro-sub { font-size: 18px; font-weight: 400; color: var(--sub); line-height: 1.8; margin: 0 auto; max-width: 640px; }
@media (min-width: 700px) { .intro-centered .intro-sub { font-size: 22px; } }
.intro-centered .intro-body { text-align: left; max-width: 760px; margin: 40px auto 0; display: grid; gap: 16px; }

/* ---------- spec/cost comparison table (AEO: table beats prose for AI citation) ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; }
.spec-table thead th { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.spec-table tbody th, .spec-table tbody td:first-child { font-weight: 600; color: var(--ink); background: var(--bg-4); width: 22%; }
.spec-table td { color: var(--sub); }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item { border-top: 3px solid var(--ink); padding-top: 18px; }
.service-item .svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 16px; }
.service-item .svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; color: var(--accent); }
@media (max-width: 767px) { .service-item .svc-icon { width: 36px; height: 36px; } .service-item .svc-icon svg { max-width: 36px; max-height: 36px; } }
.service-item h3 { font-size: 18px; margin-bottom: 8px; }
.service-item p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- cases (main_skin=1: 4-card 2x2, hover reveal white+text) ---------- */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 700px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-grid.case-grid--pair { max-width: 700px; margin-left: auto; margin-right: auto; }
.case-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 590 / 396;
  background: #FFFFFF; display: block;
}
.case-card .case-thumb { position: absolute; inset: 0; }
.case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.case-card .case-tag-float {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; color: #FFF; font-size: 13px; font-weight: 700;
  background: rgba(19,20,21,0.55); padding: 6px 12px; border-radius: 999px; transition: opacity .25s ease;
}
.case-card .case-reveal {
  position: absolute; inset: 0; background: #FFFFFF; opacity: 0; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px;
}
.case-card .case-reveal p { color: #333; font-size: 15px; line-height: 1.8; margin: 0; }
.case-card .case-reveal h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.case-card:hover .case-thumb img,
.case-card:hover .case-tag-float { opacity: 0; }
.case-card:hover .case-reveal { opacity: 1; }
.case-more { text-align: center; margin-top: 40px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination-num, .pagination-arrow {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 600; color: var(--ink); border: 1px solid transparent;
}
.pagination-num { border-color: var(--line); background: #FFF; }
.pagination-num:hover { border-color: var(--accent); color: var(--accent); }
.pagination-num.is-current { background: var(--accent); border-color: var(--accent); color: #FFF; }
.pagination-arrow { color: var(--sub); }
.pagination-arrow:hover { color: var(--accent); }

/* ---------- editorial-card (list_variant=1, 설치사례 목록) ---------- */
.editorial-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 8px; }
@media (min-width: 700px) { .editorial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .editorial-grid { grid-template-columns: repeat(3, 1fr); } }
.editorial-card { background: #FFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .25s ease; }
.editorial-card:hover { box-shadow: 0 18px 34px rgba(0,0,0,0.10); }
.editorial-card .ed-thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-6); }
.editorial-card .ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.editorial-card .ed-body { background: var(--accent-soft); padding: 20px 22px 24px; }
.editorial-card .ed-tag { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.editorial-card .ed-title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; color: var(--ink); }
.editorial-card .ed-desc { font-size: 13.5px; margin-bottom: 0; color: var(--sub); }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 800px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .process-item { border-bottom: none; } }
.process-item:first-child { padding-left: 0; }
.process-item:nth-child(2n) { border-right: none; }
@media (min-width: 800px) {
  .process-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .process-item:last-child { border-right: none; }
}
.pnum { color: var(--accent); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-item p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- region ---------- */
.region-groups { margin-top: 36px; display: grid; gap: 28px; }
.region-group h3 { font-size: 15px; color: var(--sub); font-weight: 600; margin-bottom: 12px; }
.region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.region-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #FFF; }
.region-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- faq ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #FFF; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- closing ---------- */
.closing { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; color: #FFF; text-align: center; overflow: hidden; }
@media (max-width: 600px) { .closing { height: 480px; } }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,18,0.60); z-index: 1; }
.closing--solid { background: linear-gradient(160deg, #0E332C, #131415); }
.closing--solid::after { display: none; }
.closing-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 24px; }
.closing-head { font-size: 26px; font-weight: 700; margin-bottom: 14px; color: #FFFFFF; text-shadow: 0 2px 16px rgba(0,0,0,0.55); white-space: nowrap; }
@media (min-width: 700px) { .closing-head { font-size: 32px; } }
@media (max-width: 480px) { .closing-head { font-size: 21px; white-space: normal; } }
.closing-quote { font-size: 15px; color: #CFEEE6; opacity: 0.92; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.closing-cta { display: inline-block; padding: 15px 34px; background: transparent; color: #FFF; border: 1px solid #FFF; border-radius: 0; font-weight: 600; }

/* ---------- footer ---------- */
footer { background: #FFFFFF; color: #000; border-top: 1px solid var(--line); padding: 56px 0 100px; }
@media (min-width: 768px) { footer { padding-bottom: 56px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.footer-brand { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-info { font-size: 13.5px; color: var(--sub); line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-cta a { padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.footer-cta__fill { background: var(--accent); color: #FFF; }
.footer-cta__outline { border: 1px solid var(--line); color: var(--ink); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: #7C8C87; }
.footer-notice { margin-top: 28px; padding: 16px 18px; background: var(--bg-3); border-radius: 10px; display: flex; align-items: center; gap: 14px; }
.footer-notice__badge { flex: none; border-radius: 50%; }
.footer-notice p { font-size: 12.5px; color: #7C8C87; margin: 0; }

/* ---------- page hero (subpages / hubs) ---------- */
.page-hero { padding: 56px 20px; }
.page-hero__inner {
  max-width: 1180px; margin: 0 auto; background: var(--hero-tint); border-radius: 22px;
  padding: 44px 36px;
}
.page-hero .eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; display: block; }
.page-hero h1 { font-size: 28px; margin-bottom: 10px; }
@media (min-width: 800px) { .page-hero h1 { font-size: 34px; } }
.page-hero p { max-width: 60ch; margin-bottom: 0; }

/* ---------- region detail body ---------- */
.detail-body { padding: 80px 0; }
.detail-photo { max-width: 620px; margin: 0 auto 28px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,0.10); background: var(--bg-4); }
.detail-photo img { width: 100%; height: auto; object-fit: contain; max-height: 620px; margin: 0 auto; }
.detail-text { max-width: 680px; margin: 0 auto; font-size: 15.5px; }

/* ---------- case detail: apt-journal-detail (case_detail_variant=1) ---------- */
.journal-head { padding: 56px 0 0; }
.journal-head .wrap { max-width: 860px; }
.journal-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 14px; display: block; }
.journal-head h1 { font-size: 25px; font-weight: 700; margin-bottom: 14px; }
@media (min-width: 700px) { .journal-head h1 { font-size: 28px; } }
.journal-head .journal-dek { font-size: 15px; color: var(--sub); max-width: 62ch; margin-bottom: 0; }
.journal-photo { padding: 32px 0 8px; }
.journal-photo .wrap { max-width: 1000px; }
.journal-photo-frame { border-radius: 18px; overflow: hidden; background: var(--bg-4); display: flex; align-items: center; justify-content: center; max-height: 620px; }
.journal-photo-frame img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.journal-body { padding: 32px 0 72px; }
.journal-body .wrap { max-width: 700px; }
.journal-body p { font-size: 15px; font-weight: 500; line-height: 1.9; color: #333333; margin: 0 0 20px; }
.journal-body p:last-child { margin-bottom: 0; }
.detail-back { text-align: center; margin: 40px 0 0; }

/* ---------- mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  height: 60px; background: var(--accent); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a { display: flex; align-items: center; justify-content: center; color: #FFF; font-weight: 600; font-size: 15px; }
.mobile-bar a:first-child { background: rgba(255,255,255,0.14); }

/* prose */
.prose p { font-size: 15.5px; }
