:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #16181a;
  --ink-soft: #4c5258;
  --line: rgba(22, 24, 26, 0.12);
  --dark: #111315;
  --dark-soft: #1d2126;
  --brass: #b08d57;
  --brass-soft: #d9bf94;
  --radius: 14px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Header — bright gallery stone tone */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  color: var(--ink);
  background: rgba(248, 246, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 24, 26, 0.08);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em; font-size: 18px;
}
.brand small { font-size: 11px; letter-spacing: 0.16em; opacity: 0.72; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; padding: 4px 0; }
.nav a.active::after, .nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--brass);
}
.nav-cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--brass); color: #fff !important; font-weight: 700; font-size: 13px;
}
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }

/* Layout */
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
section.band { padding: clamp(56px, 8vw, 108px) 0; }
section.band.dark { background: #efece5; color: var(--ink); }
section.band.surface { background: var(--surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); }
.sec-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.22; letter-spacing: -0.03em; font-weight: 800;
}
.sec-lead { margin: 0 0 36px; max-width: 660px; font-size: 16px; color: var(--ink-soft); }
.dark .sec-lead { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brass); color: #fff; }
.btn.ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.dark .btn.outline { color: var(--ink); border-color: var(--ink); }

/* Metrics strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.metric { padding: 14px 18px; border-left: 2px solid var(--brass); background: var(--surface); border-radius: 0 10px 10px 0; }
.metric strong { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.metric span { font-size: 13px; color: var(--ink-soft); }

/* Filter & Project Grid */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer;
}
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(17,19,21,0.08); }
.proj-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #23272c, #3b352c);
}
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-media img { transform: scale(1.06); }
.proj-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(17,19,21,0.78); color: #fff; font-size: 11px; font-weight: 700;
}
.proj-body { padding: 18px; }
.proj-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.proj-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }
.proj-spec {
  display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-soft);
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.dark .card { background: var(--dark-soft); border-color: rgba(255,255,255,0.1); }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.dark .card p { color: rgba(243,241,236,0.74); }

/* Process 6 stages — bright architectural limestone cards */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  position: relative; background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.step-num { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--brass); }
.step-card h3 { margin: 8px 0 8px; font-size: 18px; color: var(--ink); }
.step-dur { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f3ede2; color: #7a5c2e; font-weight: 700; margin-bottom: 10px; }
.step-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }

/* Subpage Hero — bright sunlit architectural gallery header */
.sub-hero {
  padding: 128px 0 56px;
  background: linear-gradient(135deg, #f7f4ee 0%, #ebe5d9 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sub-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
.sub-hero p { margin: 0; max-width: 680px; color: var(--ink-soft); }

/* Table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { background: #efece5; font-weight: 700; color: var(--ink); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd3d8; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #eaf7ef; color: #11663a; border: 1px solid #b8e4c9; }
.form-msg.err { display: block; background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(17,19,21,0.72);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px; padding: 26px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px;
}

/* Footer */
footer.site-footer {
  background: #101214; color: rgba(255,255,255,0.72); padding: 48px 0 36px; font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-note { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.48); }

/* Mobile */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .proj-grid, .grid-3, .process-grid { grid-template-columns: 1fr; }
  .grid-2, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* 글자 배치(대표 승인 뒤 목록 올리기 전 손봄, 11/24 인테모아): 낱말 중간 줄바꿈 막기, 머리말 단추 글자 넘침 */
body{word-break:keep-all;overflow-wrap:break-word}
.nav a.nav-cta{white-space:nowrap;padding:6px 16px;min-width:max-content}
