:root {
  --paper: #f3eee6;
  --paper-deep: #e8e0d4;
  --card: #fbf8f2;
  --ink: #2b2723;
  --ink-soft: #5c564e;
  --muted: #8a8278;
  --line: rgba(43, 39, 35, 0.12);
  --line-strong: rgba(43, 39, 35, 0.28);
  --sage: #5f6b4e;
  --sage-deep: #3f4734;
  --clay: #9a6244;
  --white: #fffcf7;
  --shadow: 0 18px 50px rgba(43, 39, 35, 0.1);
  --radius: 18px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; }

.serif { font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  color: #f6f1ea;
}
.nav.is-solid {
  mix-blend-mode: normal;
  color: var(--ink);
  background: rgba(243, 238, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand small {
  font-size: 11px; letter-spacing: 0.18em; opacity: 0.7; font-weight: 500;
}
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.menu-btn { display: none; font-size: 22px; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end start;
  color: #f7f2ea;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.18) 0%, rgba(20,16,12,0.18) 40%, rgba(20,16,12,0.62) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 7vw 9vh;
  max-width: 920px;
}
.hero-copy .kicker { color: #d7e0c7; }
.hero h1 {
  font-family: "Noto Serif KR", serif;
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.22;
  margin: 14px 0 22px;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.hero p.lead {
  max-width: 540px;
  font-size: 16px;
  color: rgba(247, 242, 234, 0.82);
}
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(247, 242, 234, 0.72);
}
.hero-meta b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* INTRO BAND */
.intro-band {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  padding: 88px 0 40px;
  align-items: end;
}
.intro-band h2 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.intro-band p { color: var(--ink-soft); margin-top: 12px; }

/* SERVICES */
.section { padding: 72px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.section-head h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 32px;
  font-weight: 500;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.service-card .no {
  font-size: 12px; letter-spacing: 0.16em; color: var(--sage); font-weight: 650;
}
.service-card h3 {
  font-size: 22px; margin: 10px 0 12px; letter-spacing: -0.03em; font-weight: 650;
}
.service-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips .chip, .chips span {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
}
.chips .chip:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: #f3f6ee;
}

/* WORKS */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.filter-btn.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions a {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}
.hero-actions .primary { background: #f7f2ea; color: #2b2723; }
.hero-actions .ghost-lite { border: 1px solid rgba(247,242,234,.5); color: #f7f2ea; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.step-card .no { font-size: 12px; letter-spacing: 0.16em; color: var(--sage); font-weight: 650; }
.step-card h3 { font-size: 20px; margin: 8px 0 10px; letter-spacing: -0.03em; word-break: keep-all; }
.step-card p { color: var(--ink-soft); font-size: 14.5px; }

.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; color: var(--ink-soft); font-size: 14.5px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: left;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd4c6;
}
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.work-card:hover .thumb img { transform: scale(1.04); }
.work-body { padding: 16px 16px 18px; }
.work-top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.work-top .type {
  color: var(--sage-deep);
  font-weight: 650;
}
.work-card h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 8px;
}
.work-card .one {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* KNOWHOW STRIP */
.knowhow-strip {
  margin: 20px 0 0;
  background: var(--sage-deep);
  color: #f3eee4;
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.knowhow-strip img {
  border-radius: 16px;
  height: 280px;
  width: 100%;
  object-fit: cover;
}
.knowhow-strip h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 500;
  margin: 10px 0 14px;
}
.knowhow-strip p { color: rgba(243,238,228,0.8); }

/* FOOTER / COMPANY */
.footer {
  background: #241f1b;
  color: #efe8dd;
  margin-top: 40px;
  padding: 72px 0 28px;
}
.footer a { color: #efe8dd; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(239,232,221,0.12);
}
.foot-brand {
  font-family: "Noto Serif KR", serif;
  font-size: 32px;
  font-weight: 500;
}
.foot-brand span { display: block; font-size: 12px; letter-spacing: 0.2em; opacity: 0.6; margin-bottom: 8px; font-family: Pretendard, sans-serif; }
.footer h4 { font-size: 13px; letter-spacing: 0.16em; color: #c9d2b6; margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; color: rgba(239,232,221,0.78); }
.footer ul { list-style: none; display: grid; gap: 7px; }
.docs {
  display: grid; gap: 8px;
}
.doc-card {
  border: 1px dashed rgba(239,232,221,0.28);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: rgba(239,232,221,0.7);
}
.doc-card strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; font-size: 12px; color: rgba(239,232,221,0.45);
}

/* MODAL */
.modal {
  position: fixed; inset: 0;
  background: rgba(24, 20, 16, 0.62);
  z-index: 80;
  display: none;
  padding: 28px 16px;
  overflow: auto;
}
.modal.is-open { display: block; }
.modal-sheet {
  width: min(1080px, 100%);
  margin: 20px auto 40px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.modal-close {
  position: sticky; top: 0;
  float: right;
  margin: 14px 14px 0 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,252,247,0.92);
  z-index: 2;
  font-size: 22px;
}
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px; background: #e7dfd3; }
.gallery .main {
  min-height: 360px;
  background: #d9d0c3;
}
.gallery .main img, .thumbs img {
  width: 100%; height: 100%; object-fit: cover;
}
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.thumbs button {
  aspect-ratio: 4/3;
  overflow: hidden;
  opacity: 0.78;
}
.thumbs button.is-on { opacity: 1; outline: 2px solid var(--sage); outline-offset: -2px; }
.modal-body { padding: 28px 32px 40px; display: grid; gap: 16px; max-width: 760px; }
.meta-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.modal-body h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.journal { white-space: pre-wrap; color: var(--ink-soft); font-size: 15px; }
.know-list { display: grid; gap: 12px; }
.know-item {
  background: #f3eee6;
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.know-item h4 { font-size: 15px; margin-bottom: 6px; }
.know-item p { font-size: 13.5px; color: var(--ink-soft); }
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sage-deep);
  margin-bottom: 8px;
}

/* INQUIRE */
.inquire {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.inquire label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.inquire input, .inquire textarea, .inquire select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.inquire textarea { min-height: 110px; resize: vertical; }
.inquire .full { grid-column: 1 / -1; }
.send {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  justify-self: start;
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.works-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin: -4px 0 16px;
}
.ghost {
  border: 1px solid var(--line-strong);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.ghost.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.quick-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.quick {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.quick.kakao { background: #fee500; border-color: #fee500; color: #191600; }
.quick.call { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.float-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
}
.float-cta a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  font-size: 12px; font-weight: 700;
}
.float-cta .call { background: var(--ink); color: var(--paper); }
.float-cta .kakao { background: #fee500; color: #191600; }
.float-cta .desk { background: var(--card); border: 1px solid var(--line); }

.doc-card a { color: #e7efd4; text-decoration: underline; }
.doc-card img {
  margin-top: 8px; width: 100%; border-radius: 8px; max-height: 120px; object-fit: cover;
}

/* DESK */
.desk {
  position: fixed; inset: 0;
  background: rgba(24,20,16,.5);
  z-index: 90;
  display: none;
}
.desk.is-open { display: block; }
.desk-sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(620px, 100%);
  background:
    linear-gradient(180deg, #ebe4d8 0%, var(--paper) 140px);
  overflow: auto;
  padding: 26px 24px 96px;
  box-shadow: var(--shadow);
}
.desk-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.desk-kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); font-weight: 650; margin-bottom: 6px;
}
.desk-head h2 { font-family: "Noto Serif KR", serif; font-size: 28px; font-weight: 500; }
.desk-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px;
}
.tabs button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.desk-form { display: grid; gap: 10px; }
.desk-form label { display: grid; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.desk-form input, .desk-form textarea, .desk-form select {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 11px;
}
.desk-form textarea { min-height: 90px; resize: vertical; }
.desk-form textarea.short { min-height: 88px; }
.svc-edit {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--card);
}
.svc-edit legend {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
  padding: 0 6px;
}
.item-block { display: grid; gap: 8px; }
.item-label { font-size: 13px; color: var(--ink-soft); }
.item-list { display: grid; gap: 6px; }
.item-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.item-head { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.item-row textarea { min-height: 72px; }
.tip-sheet { max-width: 640px; }
.tip-body { padding: 36px 36px 44px; }
.tip-body h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 500;
  margin: 10px 0 18px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  display: grid;
  gap: 6px;
}
.drop strong { font-size: 15px; }
.drop span { font-size: 13px; color: var(--muted); }
.drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.drop.is-over { border-color: var(--sage); background: #f3f6ee; }
.empty-works {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--card);
}
.photo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-list .ph {
  width: 84px; height: 84px; border-radius: 10px; overflow: hidden; position: relative;
}
.photo-list .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-list .ph button {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
}
.custom-list { display: grid; gap: 8px; margin-bottom: 18px; }
.custom-item {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 13px;
}
.custom-item menu { display: flex; gap: 6px; }
.warn { color: var(--clay); font-size: 12px; }

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .service-grid, .work-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .intro-band, .knowhow-strip, .modal-body, .foot-grid, .gallery {
    grid-template-columns: 1fr;
  }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    padding: 16px 24px 24px;
    mix-blend-mode: normal;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .service-grid, .work-grid, .inquire, .step-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 0 24px 64px; }
  .knowhow-strip { padding: 28px; }
  .modal-body { padding: 20px 18px 32px; }
}

html.shot .hero { min-height: 860px; height: 860px; }
html.shot .float-cta { display: none; }
html.shot-works .hero,
html.shot-works .intro-band,
html.shot-works #services { display: none; }
html.shot-foot .hero,
html.shot-foot .intro-band,
html.shot-foot #services,
html.shot-foot #works,
html.shot-foot #knowhow { display: none; }
