:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;

  --deep: #1A2433;
  --accent: #E7DDC8;
  --accent-soft: #F5F0E6;
  --bg: #FFFFFF;
  --bg-soft: #F1F5F9;
  --ink: #1A1A1A;
  --desc: #475569;
  --bar-chrome: #ECEEF1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body), var(--font-kr), sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header (B-22) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bar-chrome);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  border-bottom: 1px solid #E5E7EB;
}
/* scrim so the white logo/nav stay readable over bright hero photos or the
   split hero's light panel, before the scrolled (opaque) state takes over */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px;
  background: linear-gradient(180deg, rgba(10,15,23,0.42) 0%, rgba(10,15,23,0) 100%);
  z-index: -1; pointer-events: none; opacity: 1; transition: opacity .3s ease;
}
.site-header.scrolled::before { opacity: 0; }
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 19px; font-weight: 700; color: #fff; display: flex; flex-direction: column; line-height: 1.25; transition: color .3s ease; }
.logo-sub { font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.site-header.scrolled .logo { color: var(--ink); }
.nav-main { display: flex; align-items: center; gap: 28px; }
.nav-main a { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s ease; }
.site-header.scrolled .nav-main a { color: var(--ink); }
.nav-main a:hover { opacity: .7; }
.btn-primary, .btn-nav-cta {
  background: var(--accent); color: var(--ink) !important;
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; display: inline-block;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: background .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- index split hero ---------- */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; align-items: stretch;
  background: var(--bg-soft);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 120px 6vw 80px; }
.hero-eyebrow { font-size: 13px; letter-spacing: .08em; color: var(--desc); font-weight: 600; margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.18; color: var(--ink); }
.hero-copy p.hero-line {
  margin-top: 22px; font-size: 17px; color: var(--desc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-btns { display: flex; gap: 12px; margin-top: 36px; }
.btn-outline {
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--ink); color: var(--ink);
}
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  animation: heroPan 18s ease-in-out infinite alternate;
}
@keyframes heroPan { from { transform: scale(1.06) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { height: 46vh; }
  .hero-copy { padding: 110px 20px 48px; order: 2; }
  .hero-copy p.hero-line { white-space: normal; }
}

/* ---------- section shell ---------- */
section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--desc); letter-spacing: .04em; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.bg-soft { background: var(--bg-soft); }

/* ---------- service: paragraph + checklist (no numbered cards) ---------- */
.service-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.service-intro p { font-size: 16px; color: var(--desc); line-height: 1.9; }
.service-list { display: flex; flex-direction: column; }
.service-item {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid #E7EAEE;
}
.service-item:first-child { padding-top: 0; }
.service-icon { flex: none; width: 44px; height: 44px; color: var(--ink); }
.service-icon svg { width: 100%; height: 100%; }
.service-body h3 { font-size: 17px; margin-bottom: 6px; }
.service-body p { margin: 0; font-size: 14.5px; color: var(--desc); line-height: 1.75; }
@media (max-width: 880px) { .service-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- cases: featured + horizontal scroll ---------- */
.case-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  margin-bottom: 44px;
}
.case-featured img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; }
.case-featured-tag { font-size: 12px; font-weight: 700; color: var(--desc); margin-bottom: 10px; }
.case-featured h3 { font-size: 24px; margin-bottom: 12px; }
.case-featured p { color: var(--desc); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.case-scroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.case-scroll::-webkit-scrollbar { height: 6px; }
.case-scroll::-webkit-scrollbar-thumb { background: #D7DCE2; border-radius: 6px; }
.case-card { flex: 0 0 240px; scroll-snap-align: start; }
.case-card img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 10px; }
.case-card span { font-size: 13px; color: var(--desc); }
.case-card strong { display: block; font-size: 15.5px; margin-top: 2px; }
@media (max-width: 880px) { .case-featured { grid-template-columns: 1fr; } }

/* ---------- guide: definition list style, no 4-box grid ---------- */
.guide-list { border-top: 1px solid #E7EAEE; }
.guide-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid #E7EAEE; }
.guide-row dt { font-size: 16px; font-weight: 700; }
.guide-row dd { margin: 0; font-size: 14.5px; color: var(--desc); line-height: 1.85; }
.guide-more { margin-top: 28px; }
@media (max-width: 700px) { .guide-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid #E7EAEE; }
.faq-list details { border-bottom: 1px solid #E7EAEE; padding: 20px 0; }
.faq-list summary { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--desc); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { margin: 14px 0 0; color: var(--desc); font-size: 14.5px; line-height: 1.85; }

/* ---------- footer ---------- */
.footer-sitemap { background: var(--bg-soft); padding: 52px 0 40px; }
.footer-sitemap-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: #B9C0C9; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: #AEB6C0; }
.footer-col a:hover { color: #8B96A3; }
.footer-biz { background: var(--deep); color: #cfd5de; padding: 30px 0 100px; }
.footer-biz-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-biz-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-biz-info strong { color: #fff; font-size: 14.5px; }
.footer-contact-btn { border: 1px solid #4A5568; padding: 9px 18px; border-radius: 10px; font-size: 13px; color: #E2E6EB; }
.footer-copy { max-width: 1160px; margin: 22px auto 0; padding: 0 24px; font-size: 12px; color: #6B7684; }

@media (max-width: 700px) {
  .footer-sitemap-inner { grid-template-columns: 1fr 1fr; }
  .footer-biz-inner { text-align: left; }
  .footer-hours { white-space: nowrap; }
}

/* ---------- bottom sticky bar (B-23) ---------- */
.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,0.08);
  display: flex; gap: 10px; padding: 12px 16px; align-items: center;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.bottom-bar.show { transform: translateY(0); opacity: 1; }
.bottom-bar-cta {
  flex: 1; text-align: center; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 15px; padding: 14px; border-radius: 10px; min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.bottom-bar-sub {
  flex: none; font-size: 13.5px; color: var(--ink); padding: 14px 16px; border: 1px solid #D8DCE2; border-radius: 10px; display: flex; align-items: center;
}

/* ---------- sub-page hero (blurred bg image + title) ---------- */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  padding: 140px 0 56px; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(1px) brightness(0.98);
}
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.32);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }
.page-hero .eyebrow { color: var(--ink); text-shadow: 0 1px 12px rgba(255,255,255,0.6); }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); text-shadow: 0 1px 16px rgba(255,255,255,0.55); }

/* ---------- gallery-case full-bleed hero ---------- */
.case-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end; padding: 150px 0 64px; overflow: hidden;
}
.case-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.case-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.42) 100%); }
.case-hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.case-hero .eyebrow { text-shadow: 0 1px 14px rgba(255,255,255,0.7); }
.case-hero h1 { font-size: clamp(32px, 4.2vw, 48px); text-shadow: 0 1px 18px rgba(255,255,255,0.6); }

/* ---------- case detail cross layout ---------- */
.cross-section { padding: 64px 0; }
.cross-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cross-row.rev .cross-media { order: 2; }
.cross-row.rev .cross-text { order: 1; }
.cross-media img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.cross-num { font-size: 13px; font-weight: 700; color: var(--desc); }
.cross-cat { font-size: 11px; letter-spacing: .06em; color: var(--desc); font-weight: 600; margin: 8px 0 10px; }
.cross-text h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.cross-text p { font-size: 15px; line-height: 1.9; color: var(--desc); margin: 0 0 14px; }
.cross-text .cap { font-size: 13px; color: #8A93A0; margin-top: 8px; }
@media (max-width: 800px) {
  .cross-row, .cross-row.rev { grid-template-columns: 1fr; gap: 22px; }
  .cross-row.rev .cross-media, .cross-row.rev .cross-text { order: unset; }
}

/* ---------- simple content blocks (about/contact/guide) ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 15.5px; line-height: 1.9; color: var(--desc); margin: 0 0 18px; }
.prose h2 { font-size: 22px; margin: 40px 0 16px; }
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.checklist li { font-size: 15px; color: var(--ink); padding-left: 22px; position: relative; }
.checklist li::before { content: "+"; position: absolute; left: 0; color: var(--desc); font-weight: 700; }

/* ---------- contact page ---------- */
.contact-card {
  background: var(--bg-soft); border-radius: 16px; padding: 44px; text-align: center; margin-top: 32px;
}
.contact-phone { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; display: block; margin: 14px 0; }
.contact-card .btn-primary { padding: 15px 30px; font-size: 16px; }

/* ---------- portfolio grid ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 12px; }
.portfolio-item span { font-size: 12.5px; color: var(--desc); }
.portfolio-item strong { display: block; font-size: 16px; margin-top: 2px; }
@media (max-width: 880px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- sitemap page (dim, quiet tone) ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.sitemap-col-title { font-size: 13px; font-weight: 700; color: #9AA2AC; margin-bottom: 12px; }
.sitemap-col a { display: block; font-size: 14px; color: #B8BFC7; padding: 6px 0; }
.sitemap-col a:hover { color: var(--desc); }
@media (max-width: 700px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }

/* mobile nav */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-main {
    position: fixed; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .2s ease;
  }
  .nav-main.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-main a { color: var(--ink) !important; padding: 12px 0; width: 100%; border-bottom: 1px solid #EEF0F2; }
  .btn-nav-cta { border-bottom: none !important; margin-top: 8px; text-align: center; }
}
