:root {
  --accent: #5A524C;
  --accent-soft: #F0EDE9;
  --accent-ink: #FFFFFF;
  --ink: #000000;
  --desc: #4B5563;
  --bg: #FFFFFF;
  --bg-soft-1: #F4F8FC;
  --bg-soft-2: #F9F7F3;
  --bg-soft-3: #F3F3F1;
  --line: #E5E5E5;
  --bar-chrome: #ECEEF1;

  --font-title: "Noto Serif KR", serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
h1, h2, h3, .hero-title, .section-title {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
p { margin: 0; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
button { font-family: var(--font-body); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  background-image: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 100%);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background-color: var(--bar-chrome);
  background-image: none;
  box-shadow: 0 1px 16px rgba(0,0,0,.06);
  border-bottom-color: #E5E7EB;
}
.site-header.is-solid .logo,
.site-header.is-solid .main-nav a:not(.nav-cta) { color: var(--ink); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: #fff; transition: color .3s ease; }
.logo .brand-accent { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s ease; }
.site-header.is-scrolled .logo,
.site-header.is-scrolled .main-nav a:not(.nav-cta) { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 10px 20px; border-radius: 4px; font-weight: 600 !important;
}
.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: #fff; display: block; transition: background .3s ease; }
.site-header.is-solid .nav-toggle span,
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.main-nav.open a { color: var(--ink) !important; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 88vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center 30%;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,12,.28) 0%, rgba(10,14,12,.08) 40%, rgba(10,14,12,.35) 100%); }
.hero-body { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.hero-eyebrow { font-size: 14px; letter-spacing: .08em; opacity: .85; margin-bottom: 14px; }
.hero-title { font-size: clamp(32px, 5vw, 56px); color: #fff; white-space: nowrap; }
.hero-desc { margin-top: 18px; font-size: 17px; color: #f2f2f2; white-space: nowrap; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); padding: 14px 30px; border-radius: 4px;
  font-weight: 600; font-size: 15px; display: inline-block;
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.7); color: #fff; padding: 14px 30px; border-radius: 4px;
  font-weight: 600; font-size: 15px; display: inline-block;
}

/* ---------- generic section ---------- */
section.block { padding: 96px 0; }
.section-label { font-size: 13px; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); white-space: nowrap; }
.section-desc { margin-top: 16px; max-width: 640px; color: var(--desc); font-size: 15.5px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- intro / body copy ---------- */
.body-copy p { margin-bottom: 16px; color: var(--desc); font-size: 15.5px; }
.body-copy strong { color: var(--ink); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px 26px; }
.svc-card svg { width: 40px; height: 40px; color: var(--accent); }
.svc-card h3 { font-size: 18px; margin-top: 18px; }
.svc-card p { margin-top: 10px; font-size: 14.5px; color: var(--desc); }

/* ---------- case grid (design 1: 2x2 hover) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 590/396; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img { transform: scale(1.06); }
.case-card .case-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 4px; transition: opacity .3s ease;
}
.case-card .case-hover {
  position: absolute; inset: 0; background: rgba(255,255,255,.96); opacity: 0; transition: opacity .35s ease;
  display: flex; flex-direction: column; justify-content: center; padding: 30px;
}
.case-card:hover .case-hover { opacity: 1; }
.case-card:hover .case-tag { opacity: 0; }
.case-hover h3 { font-size: 17px; }
.case-hover p { margin-top: 10px; font-size: 13.5px; color: var(--desc); }

/* ---------- portfolio list (design ref: ylchem-style asymmetric grid) ---------- */
.pf-hero { position: relative; height: 40vh; min-height: 300px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.pf-hero .hero-overlay { background: rgba(255,255,255,.35); }
.pf-hero .hero-body { color: var(--ink); }
.pf-hero .hero-body .hero-title { color: var(--ink); text-shadow: 0 2px 16px rgba(255,255,255,.6); }
.pf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.pf-item { border-radius: 6px; overflow: hidden; }
.pf-item .thumb { aspect-ratio: 7/6; overflow: hidden; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pf-item:hover img { transform: scale(1.04); }
.pf-item .pf-cap { padding: 16px 4px; }
.pf-item .pf-region { font-size: 12px; color: var(--accent); font-weight: 600; }
.pf-item h3 { font-size: 16.5px; margin-top: 6px; font-family: var(--font-body); font-weight: 600; }

/* ---------- case detail body layout (B-11 style: 550x410 top image + copy) ---------- */
.case-body-wrap { max-width: 720px; margin: 0 auto; }
.case-photo { width: 550px; height: 410px; max-width: 100%; object-fit: cover; border-radius: 18px; margin: 0 auto 36px; }
.case-eyebrow { font-size: 11px; color: #6B7280; letter-spacing: .05em; }
.case-title { font-size: clamp(22px, 3vw, 28px); margin-top: 8px; }
.case-text { margin-top: 24px; font-size: 16px; color: #374151; }
.case-text p { margin-bottom: 18px; }
@media (max-width: 640px) {
  .case-photo { width: 100%; aspect-ratio: 550/410; height: auto; }
}

/* ---------- case detail gallery (opt-in, only when case has 'gallery') ---------- */
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.case-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- detail hero (full-bleed, light overlay) ---------- */
.detail-hero { position: relative; height: 46vh; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.detail-hero .hero-overlay { background: rgba(255,255,255,.32); }
.detail-hero .hero-body { color: var(--ink); text-align: center; }
.detail-hero .hero-eyebrow { color: var(--accent); font-weight: 700; }
.detail-hero .hero-title { color: var(--ink); text-shadow: 0 2px 20px rgba(255,255,255,.7); white-space: normal; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q { font-size: 16px; font-weight: 600; display: flex; gap: 10px; }
.faq-q span { color: var(--accent); }
.faq-a { margin-top: 10px; font-size: 14.5px; color: var(--desc); padding-left: 22px; }

/* ---------- guide process table ---------- */
.guide-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: #fff; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 14px 16px; font-size: 14.5px; text-align: left; vertical-align: top; }
.guide-table th { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.guide-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.guide-table td { color: var(--desc); }

/* ---------- area list ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0; position: relative; overflow: visible; }
.area-card .draw-in { display: block; padding: 30px; color: inherit; height: 100%; }
.area-card h3 { font-size: 18px; }
.area-card p { margin-top: 8px; font-size: 14px; color: var(--desc); }
.area-card .more-link { margin-top: 16px; display: inline-block; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* 챔피언스시티 참고 — 박스 호버 둘레선 (draw_id=1) */
:root { --draw: #000; }
.area-card::before,
.area-card::after,
.area-card .draw-in::before,
.area-card .draw-in::after {
  content: "";
  position: absolute;
  background: var(--draw);
  pointer-events: none;
  z-index: 2;
  transition: transform .6s ease;
}
.area-card::before { left: 0; top: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: 0 0; }
.area-card::after { left: 0; top: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: 0 100%; }
.area-card .draw-in { position: relative; }
.area-card .draw-in::before { left: 0; bottom: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: 100% 0; }
.area-card .draw-in::after { right: 0; top: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: 0 0; }
.area-card { transition: box-shadow .4s; }
.area-card:hover { box-shadow: 10px 10px 20px rgba(0,0,0,.1); }
.area-card:hover::before,
.area-card:hover::after,
.area-card:hover .draw-in::before,
.area-card:hover .draw-in::after { transform: none; }

/* ---------- guide hub ---------- */
.guide-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.guide-hub-card { display: block; color: inherit; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .3s ease; }
.guide-hub-card:hover { box-shadow: 10px 10px 20px rgba(0,0,0,.08); }
.guide-hub-thumb { aspect-ratio: 4/3; overflow: hidden; }
.guide-hub-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-hub-card:hover .guide-hub-thumb img { transform: scale(1.05); }
.guide-hub-body { padding: 20px 22px 24px; }
.guide-hub-label { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.guide-hub-body h3 { font-size: 18px; }
.guide-hub-body p:not(.guide-hub-label) { margin-top: 8px; font-size: 14px; color: var(--desc); }
.guide-hub-body .more-link { margin-top: 14px; display: inline-block; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* ---------- guide detail: related cases ---------- */
.guide-related-grid { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.guide-related-grid-2 { grid-template-columns: repeat(2, 1fr); }
.guide-related-grid-3 { grid-template-columns: repeat(3, 1fr); }
.guide-related-card { display: block; color: inherit; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.guide-related-card img { width: 100%; height: 180px; object-fit: cover; }
.guide-related-region { margin: 12px 14px 0; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.guide-related-title { margin: 4px 14px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }

/* ---------- closing CTA ---------- */
.closing {
  position: relative; height: 650px; 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-body { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.closing-head { font-family: var(--font-title); font-size: clamp(24px, 3.6vw, 34px); font-weight: 600; }
.closing-sub { margin-top: 16px; font-size: 15px; color: #E9E9E9; }
.btn-closing {
  display: inline-block; margin-top: 30px; padding: 14px 34px;
  border: 1px solid #fff; color: #fff; border-radius: 0; font-weight: 600; font-size: 14.5px;
}

/* ---------- footer ---------- */
.site-footer { background: #FFFFFF; color: #000; border-top: 1px solid #E5E5E5; padding: 56px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 30px; align-items: start; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-guide-wrap { padding-bottom: 26px; border-bottom: 1px solid #E5E5E5; margin-bottom: 26px; }
.footer-guide-label { font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; }
.footer-guide-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-guide-links a { font-size: 12.5px; color: #666; }
.footer-guide-links a:hover { color: var(--accent); }
.footer-biz p { font-size: 13.5px; color: #444; margin-bottom: 6px; }
.footer-biz .reg-no { color: #444; }
.footer-actions { display: flex; gap: 10px; align-self: start; }
.btn-outline { border: 1px solid var(--line); padding: 10px 16px; border-radius: 4px; font-size: 13.5px; }
.copyright { text-align: center; font-size: 12px; color: #9CA3AF; margin-top: 40px; }

/* ---------- bottom bar ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bar-chrome); border-top: 1px solid #E5E7EB;
  box-shadow: 0 -6px 22px rgba(0,0,0,.08);
  padding: 12px 16px; text-align: center;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.bottom-bar.show { transform: translateY(0); opacity: 1; }
.bottom-bar-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 4px; min-height: 48px; width: 100%; max-width: 420px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff;
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
    gap: 0; padding: 12px 10px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 10px 2px; width: 100%; text-align: center; font-size: 12.5px; border-bottom: none; }
  .main-nav .nav-cta { margin-top: 0; padding: 10px 2px; }
  .nav-toggle { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .guide-hub-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .guide-related-grid-2, .guide-related-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-actions { justify-content: center; }
  section.block { padding: 64px 0; }
  .closing { height: 480px; }
  .hero-title, .hero-desc { white-space: normal; }
}
@media (max-width: 480px) {
  .guide-hub-grid { grid-template-columns: 1fr; }
}
