:root {
  --accent: #1E4544;
  --accent-soft: #DDECEA;
  --hero-tint: #F0F5F4;
  --text: #121A19;
  --muted: #4F5E5C;
  --line: #DDE5E3;
  --apt-ink: #13130A;
  --apt-yellow: #FEEB8F;
  --mid-1: #D5E3E1; --mid-2: #E4EEEC; --mid-3: #F0F5F4; --mid-4: #F6FAF9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, button, input {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}
body {
  margin: 0; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.3px;
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header (joseon-center, header_variant=1) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid #000;
}
.header-inner {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav { display: flex; align-items: center; gap: 26px;
  font-family: "Barlow Condensed", sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: -0.035em; text-transform: uppercase; }
.nav a { white-space: nowrap; }
.nav-cta { padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #fff !important; }
.logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
}
.logo-icon { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--text); }
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: none; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-drop-panel {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0,0,0,.12); padding: 10px; min-width: 200px; z-index: 201;
}
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { display: block; }
.nav-drop-panel a {
  display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-transform: none; letter-spacing: -0.3px;
}
.nav-drop-panel a:hover { background: var(--accent-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 24px 18px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- hero (main_skin=2 apt: full-bleed bright photo, big black type) ---------- */
.hero-apt { position: relative; padding: 64px 0 0; background: #fff; }
.hero-apt-copy { text-align: center; max-width: 760px; margin: 0 auto 40px; padding: 0 24px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 18px;
}
.hero-apt h1 {
  font-size: 52px; font-weight: 800; color: var(--apt-ink); letter-spacing: -1px; line-height: 1.18; margin: 0 0 18px;
}
.hero-apt .hero-sub { font-size: 17px; line-height: 28px; color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin: 0 0 22px; flex-wrap: wrap; }
.btn-fill { height: 50px; padding: 14px 28px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; }
.btn-line { height: 50px; padding: 14px 28px; border-radius: 999px; background: transparent; color: var(--text); border: 1px solid var(--text); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; }
.hero-checks { display: flex; gap: 22px; justify-content: center; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-checks li { list-style: disc inside; }
.hero-apt-media { width: 100%; max-width: 1180px; height: 380px; margin: 0 auto; padding: 0 24px; overflow: hidden; background: var(--hero-tint); box-sizing: content-box; }
.hero-apt-media img { border-radius: 24px; }
.hero-apt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* small-cut / subpage tint panel hero */
.hero-panel { max-width: 1180px; margin: 40px auto; padding: 48px 56px; background: var(--hero-tint); border-radius: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-panel .hp-text h1 { font-size: 34px; font-weight: 800; color: var(--text); margin: 10px 0 14px; letter-spacing: -0.5px; }
.hero-panel .hp-text p { font-size: 15px; line-height: 26px; color: var(--muted); }
.hero-panel .hp-media { border-radius: 18px; overflow: hidden; background: #fff; }
.hero-panel .hp-media img { width: 100%; height: auto; object-fit: contain; }
.hero-panel-single { grid-template-columns: 1fr; text-align: center; }
.hero-panel-single .hp-text p { max-width: 640px; margin: 0 auto; }

/* full-bleed case hero */
.page-hero { position: relative; z-index: 0; min-height: 420px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.5); pointer-events: none; z-index: 0; }
.page-hero .copy { position: relative; z-index: 1; color: #fff; pointer-events: none; padding: 0 24px; }
.page-hero .copy .hero-eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; }
.page-hero.cases-hero { min-height: 38vh; }

/* ---------- section scaffolding ---------- */
section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin: 0 0 14px; }
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.section-lead { font-size: 16px; max-width: 640px; color: var(--muted); margin: 0 0 48px; line-height: 27px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* about split (section_variant=8 about-hotel style) */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split .about-copy p { font-size: 16px; line-height: 28px; color: var(--muted); margin: 0 0 16px; }
.about-media { position: relative; height: 420px; }
.about-media img { position: absolute; border-radius: 18px; box-shadow: 0 24px 48px rgba(0,0,0,.12); object-fit: cover; }
.about-media .m1 { width: 68%; height: 78%; top: 0; left: 0; }
.about-media .m2 { width: 52%; height: 58%; bottom: 0; right: 0; border: 6px solid #fff; }

/* service grid */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 18px; color: var(--accent); }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; margin: 0 0 8px; }
.service-card p { font-size: 14px; line-height: 22px; color: var(--muted); margin: 0; }

/* cases carousel (home, main_skin=2) */
.case-carousel { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.case-carousel .case-card { flex: 0 0 320px; scroll-snap-align: start; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--hero-tint); }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .thumb img { transform: scale(1.04); }
.case-card .body { padding: 18px 20px 22px; }
.case-card .body h3 { font-size: 18px; margin: 0 0 6px; }
.case-card .body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 21px; }

/* case list grid (list_variant=0 standard) */
.case-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* process */
.process-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.process-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-desc { font-size: 14px; color: var(--muted); line-height: 21px; margin: 0; }

/* region */
.region-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.region-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.region-grid a:hover { border-color: var(--accent); color: var(--accent); }
.region-group h3 { font-size: 16px; margin: 36px 0 14px; color: var(--muted); }
.region-group:first-child h3 { margin-top: 0; }
.region-nearby { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.region-nearby a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }

/* faq */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 16px; font-weight: 700; margin: 0; }
.faq-item summary::after { content: "+"; float: right; font-size: 20px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 15px; line-height: 25px; color: var(--muted); margin: 12px 0 0; }

/* table (cost/procedure) */
table.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
table.info-table th, table.info-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; }
table.info-table th { background: var(--hero-tint); font-weight: 700; width: 30%; }

/* case detail — apt-journal-detail (case_detail_variant=1) */
.case-journal { padding: 56px 0 0; }
.case-journal-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.case-journal-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.4px; margin: 16px 0 10px; color: var(--text); }
.case-journal-head .photo-label { font-size: 13px; color: var(--muted); margin: 0; }
.case-journal-photo { border-radius: 20px; overflow: hidden; background: var(--hero-tint); max-width: 960px; margin: 0 auto; }
.case-journal-photo img { width: 100%; height: auto; object-fit: cover; cursor: zoom-in; }
.case-journal-body { margin-top: 40px; }
.case-journal-body .case-text p { font-size: 15px; font-weight: 500; line-height: 27px; }

/* case detail body */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; }
.case-body .rep-photo { border-radius: 20px; overflow: hidden; background: var(--hero-tint); }
.case-body .rep-photo img { width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.case-body .photo-label { font-size: 13px; color: #888; margin: 14px 0 20px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.case-body .case-text { text-align: left; font-size: 15px; line-height: 27px; color: var(--muted); }
.case-back { text-align: center; margin: 56px 0 0; font-weight: 600; }

/* closing */
.closing { position: relative; padding: 0; height: 600px; background: var(--apt-ink); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.closing-head { font-size: 30px; font-weight: 700; white-space: nowrap; margin: 0 0 18px; }
.closing-quote { font-size: 16px; color: rgba(255,255,255,.78); margin: 0 0 30px; }
.closing-cta { display: inline-block; padding: 14px 34px; border: 1px solid #fff; border-radius: 0; color: #fff; font-weight: 600; }

/* footer (apt_variant: black) */
.site-footer { background: #000; color: rgba(255,255,255,.72); padding: 56px 0 96px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand .logo-icon { color: var(--apt-yellow); width: 26px; height: 26px; }
.footer-nap p { font-size: 13px; line-height: 22px; margin: 0; }
.footer-links a { color: var(--apt-yellow); font-size: 13px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); margin: 10px 0 0; }

/* floating yellow call button (apt) */
.fab-call {
  position: fixed; right: 24px; bottom: 96px; z-index: 150;
  display: flex; align-items: center; gap: 8px; background: var(--apt-yellow); color: var(--apt-ink);
  padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

/* mobile bottom bar */
.mobile-bar { display: none; }

@media (max-width: 767px) {
  .nav-left, .nav-right .nav a:not(.nav-cta), .nav-right .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
  .logo { position: static; transform: none; }
  .header-inner { justify-content: space-between; }
  .hero-apt h1 { font-size: 34px; }
  .hero-apt-media { height: 240px; }
  .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .about-split { grid-template-columns: 1fr; }
  .about-media { height: 280px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .case-grid { grid-template-columns: repeat(2,1fr); }
  .region-grid { grid-template-columns: repeat(2,1fr); }
  .process-list { grid-template-columns: repeat(2,1fr); border-top: none; }
  .process-item { border-right: none; border-top: 1px solid var(--line); padding-left: 0 !important; }
  section { padding: 56px 0; }
  .closing { height: 440px; }
  .closing-head { font-size: 22px; white-space: normal; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 180; }
  .mb-btn { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
  .mb-fill { background: var(--accent); color: #fff; }
  .mb-line { background: #fff; color: var(--text); border-top: 1px solid var(--line); }
  .fab-call { bottom: 76px; right: 16px; padding: 12px 16px; }
  .fab-call span { display: none; }
}
@media (min-width: 768px) {
  .mobile-bar { display: none !important; }
}
