
/* ============================================================
   Design tokens — README 실측값
   ============================================================ */
:root {
  --ground: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #FCFAF6;
  --ink: #221E1A;
  --ink-hover: #3A322A;
  --dark: #3E362C;
  --muted: #82786D;
  --body-2: #5A5147;
  --line-strong: #EBE4D8;
  --line-soft: #F0EBE2;
  --input-border: #E0D8CA;
  --chip: #EDE8DF;
  --chip-hover: #E2DACE;
  --bubble-ai: #F5F1E9;
  --tbd: #B9A891;
  --tbd-line: #CFC3B0;
  /* 브랜드 — 네이버 카페 색감. 화면의 20~30%만 쓴다. 그라데이션·네온·유리효과 없음. */
  --brand: #6B5344;        /* 웜 브라운 — CTA */
  --brand-deep: #4A3A2E;   /* 짙은 브라운 — hover */
  --sand: #EDE3D2;         /* 샌드 — 태그 배경 */
  --sand-line: #C4A681;    /* 선택 표시 밑줄 — 필터명 박스보다 연하게 */
  --sans: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: Archivo, sans-serif;
  /* Space Mono 에는 한글 글자가 없다. 한글은 본문 글꼴로 떨어지게 Pretendard 를 뒤에 둔다. */
  --mono: 'Space Mono', Pretendard, monospace;
  --wrap: 1320px;
  --wrap-narrow: 1000px;
}

* { box-sizing: border-box; }

/* display:flex / inline-block 이 hidden 속성을 덮어쓰지 않도록.
   게이트·결과지 버튼·필터 결과 숨김이 전부 여기에 걸려 있다. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; }

/* ============================================================
   Primitives
   ============================================================ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-bleed { max-width: var(--wrap); margin: 0 auto; padding-left: 12px; padding-right: 12px; }

.label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.label-lg { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.mono { font-family: var(--mono); }

.tbd { color: var(--tbd); border-bottom: 1px dashed var(--tbd-line); }
.tbd-dark { color: #C9C9C1; border-bottom: 1px dashed rgba(250,248,244,.4); }

.h-display { font-family: var(--display); font-weight: 600; letter-spacing: -0.055em; line-height: .98; }
.h-page { font-family: var(--display); font-size: 62px; font-weight: 600; letter-spacing: -0.055em; line-height: .98; }
.h-sec { font-size: 26px; letter-spacing: -0.03em; }
.lead { font-size: 28px; line-height: 1.52; letter-spacing: -0.03em; text-wrap: pretty; }
.cap { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

.btn {
  display: inline-block; background: var(--brand); color: #FFF;
  font-size: 13.5px; font-weight: 600; padding: 15px 28px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 160ms ease, opacity 160ms ease;
}
.btn:hover { background: var(--brand-deep); color: #FFF; }
.btn-sq { border-radius: 2px; }
.btn-sm { font-size: 13px; padding: 11px 20px; }
.btn-light { background: #FFF; color: var(--brand-deep); }
.btn-light:hover { background: var(--chip-hover); color: var(--ink); }
.btn-outline {
  display: inline-block; border: 1px solid var(--input-border); background: transparent;
  font-size: 12.5px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  transition: background 160ms ease;
}
.btn-outline:hover { background: var(--chip); }
.btn-outline-light { border-color: rgba(250,248,244,.45); color: inherit; font-size: 13px; padding: 13px 22px; }
.btn-outline-light:hover { background: rgba(250,248,244,.1); }
.btn-block { display: block; width: 100%; text-align: center; }

.chip { font-size: 12.5px; background: var(--chip); padding: 9px 13px; border-radius: 999px; display: inline-block; }
.chip-sm { font-size: 11.5px; background: var(--chip); border-radius: 999px; padding: 6px 11px; display: inline-block; }

.card { background: var(--surface); border-radius: 16px; }
.card-lg { background: var(--surface); border-radius: 22px; }
.shadow-card { box-shadow: 0 6px 16px -14px rgba(62,54,44,.3); }
.shadow-bar { box-shadow: 0 10px 24px -18px rgba(62,54,44,.35); }
.shadow-float { box-shadow: 0 8px 18px -14px rgba(62,54,44,.35); }

.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame { position: relative; overflow: hidden; }
.r22 { border-radius: 22px; } .r18 { border-radius: 18px; }
.r16 { border-radius: 16px; } .r14 { border-radius: 14px; } .r12 { border-radius: 12px; }

/* 사진 위 오버레이 — 그라데이션 없이 단색 반투명 한 겹만 (지시 3).
   글자가 놓이는 쪽만 조금 더 어둡게 하고 싶으면 .scrim-plate 를 글자 뒤에 쓴다. */
.scrim,
.scrim-soft,
.scrim-cta,
.scrim-b2b { position: absolute; inset: 0; pointer-events: none; background: rgba(48,38,26,.44); }
.scrim-soft { background: rgba(48,38,26,.38); }
.scrim-cta  { background: rgba(48,38,26,.5); }
.scrim-b2b  { background: rgba(48,38,26,.5); }

.hoverable { cursor: pointer; transition: opacity 160ms ease; }
.hoverable:hover { opacity: .88; }

/* ============================================================
   Header / Footer
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--line-strong);
}
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; height: 62px; }
.wordmark { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.045em; white-space: nowrap; flex: none; transition: opacity 160ms ease; }
.wordmark:hover { opacity: .6; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 13.5px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; transition: background 160ms ease; }
.nav a.only-mobile { display: none; }
.nav a:hover { background: var(--chip-hover); color: var(--ink); }
.head-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.head-cta .studio-link { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.head-cta .studio-link:hover { color: var(--ink); }

.site-foot { background: #17171A; color: #F4F4F2; }
.site-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot .wordmark { font-size: 20px; color: #F4F4F2; }
.site-foot .copy { font-size: 11.5px; color: rgba(250,248,244,.6); margin-top: 10px; }
.foot-col .label { color: rgba(250,248,244,.5); margin-bottom: 12px; display: block; }
.foot-col a { display: block; font-size: 12.5px; color: rgba(250,248,244,.82); padding: 5px 0; }
.foot-col a:hover { color: #FFF; }

/* ============================================================
   Home
   ============================================================ */
.hero { position: relative; min-height: 560px; display: flex; }
.hero__img { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; }
/* 본문은 일반 흐름에 둔다. 글이 길어지면 히어로가 «같이 커진다». */
.hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 44px 40px 30px; display: flex; flex-direction: column; pointer-events: none; }
.hero__mark { font-family: var(--display); font-size: 116px; font-weight: 600; letter-spacing: -0.06em; line-height: .86; color: #FFF; white-space: nowrap; max-width: 100%; }
.hero__foot { display: flex; gap: 48px; margin-top: auto; padding-top: 32px; align-items: flex-end; flex-wrap: wrap; }
.hero__tag { font-size: 22px; line-height: 1.5; letter-spacing: -0.03em; color: #FFF; max-width: 360px; }
/* 섹션 제목 아래 한 줄 설명 */
.sec-desc { font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 52ch; margin: 0 0 18px; }
.hero__desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.86); max-width: 440px; }
.hero__desc p + p { margin-top: .5em; }

/* 조건 바 — 히어로 밖에 두어 클리핑 방지 (README 주의사항 3) */
.condbar {
  position: absolute; left: 40px; right: 40px; bottom: 0; transform: translateY(50%);
  display: flex; align-items: center; background: #FFF;
  padding: 6px 6px 6px 24px; gap: 6px; border-radius: 4px;
}
.condbar span.f { font-size: 13.5px; padding: 0 22px; border-right: 1px solid var(--chip-hover); }
.condbar span.f:first-child { padding-left: 0; }
.condbar .ph { font-size: 13.5px; color: var(--muted); padding: 0 22px; flex: 1; }

.after-hero { padding-top: 96px; }

.stat-num { font-family: var(--display); font-size: 48px; font-weight: 500; letter-spacing: -0.045em; line-height: 1.14; display: inline-block; }
.stat-desc { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin-top: 10px; max-width: 300px; }

.dark-sec { background: var(--dark); color: #F4F4F2; }
.dark-sec__in { max-width: var(--wrap); margin: 0 auto; padding: 66px 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.float-card { position: absolute; left: -22px; background: #FFF; color: var(--ink); padding: 13px 16px; font-size: 12.5px; line-height: 1.6; width: 260px; border-radius: 3px; }

.cost-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.cost-row .k { font-size: 13px; color: var(--body-2); }
.cost-row .d { font-size: 12.5px; color: var(--muted); }
.cost-row .v { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.035em; }

.faq-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; padding: 22px 28px; border-top: 1px solid var(--line-soft); align-items: start; cursor: pointer; width: 100%; text-align: left; }
.faq-row .q { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14.5px; letter-spacing: -0.02em; }
.faq-row .sign { font-size: 15px; color: var(--muted); }
.faq-row .a { font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.faq-row .a[hidden] { display: none; }

.cta-band { position: relative; min-height: 340px; border-radius: 22px; overflow: hidden; display: flex; }
.cta-band__body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 40px 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.cta-band h2 { font-family: var(--display); font-size: 66px; font-weight: 600; letter-spacing: -0.055em; line-height: .94; color: #FFF; margin: 0; }

/* ============================================================
   Cases index
   ============================================================ */
.filter-wrap { position: sticky; top: 88px; z-index: 30; background: var(--ground); }
/* 필터 — 3열 그리드 하나. 선택은 알약 버튼이 아니라 «밑줄»로만 표시한다.
   1행 구축/신축 · 지역 · 평수 / 2행 공사비 · 스타일 (3번째 칸은 비움).
   두 행이 같은 그리드를 공유하므로 「지역」과 「스타일」의 왼쪽이 정확히 맞는다. */
.fgrid {
  padding-top: 20px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px; align-items: center;
}
.fgroup { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* 박스 폭을 통일해야 「지역」과 「스타일」의 선택지 시작점까지 같아진다. */
.frow__name {
  flex: none; font-size: 12.5px; line-height: 1; color: #FFF;
  background: var(--brand-deep); border-radius: 5px; padding: 8px 11px; white-space: nowrap;
  min-width: 78px; text-align: center;
}
/* 한 그룹의 선택지는 중간에서 줄바꿈되지 않는다. 좁으면 그 그룹 안에서만 가로로 민다. */
.frow__opts {
  display: flex; align-items: center; gap: 18px; min-width: 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.frow__opts::-webkit-scrollbar { display: none; }
.fopt {
  flex: none; font-size: 13.5px; line-height: 1.5; color: var(--body-2); background: none;
  padding: 2px 0 5px; white-space: nowrap; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.fopt:hover { color: var(--ink); }
.fopt.is-on { color: var(--ink); border-bottom-color: var(--sand-line); }
.fcount-row { padding: 12px 0 18px; }
.fcount { font-size: 12.5px; color: var(--muted); }

.case-card__img { aspect-ratio: 4 / 3; position: relative; border-radius: 16px; overflow: hidden; background: var(--chip); }
.case-no {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px;
}
.case-title { font-size: 19px; letter-spacing: -0.025em; }
.case-meta { font-size: 12px; color: var(--muted); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ============================================================
   Case detail
   ============================================================ */
.detail-hero { position: relative; min-height: 520px; border-radius: 22px; overflow: hidden; display: flex; }
.detail-hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; pointer-events: none; }
.detail-hero__badge { align-self: flex-start; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; padding: 7px 12px; border-radius: 999px; }
.detail-hero h1 { font-family: var(--display); font-size: 68px; font-weight: 600; letter-spacing: -0.055em; line-height: 1; color: #FFF; margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 48px; align-items: start; }
.detail-lead { font-size: 24px; line-height: 1.6; letter-spacing: -0.03em; text-wrap: pretty; }

.room-tag { position: absolute; left: 12px; bottom: 12px; background: var(--sand); font-size: 11.5px; padding: 6px 11px; border-radius: 999px; }

.cellgrid { display: grid; gap: 1px; background: var(--line-strong); border-radius: 12px; overflow: hidden; }
.cellgrid > * { background: #FFF; padding: 20px; }
.cellgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cellgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cellgrid--5 > * { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.cell-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cell-v { font-size: 15px; }


.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.side-card { background: #FFF; border-radius: 18px; padding: 24px; }
.side-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.side-row .k { color: var(--muted); }
.studio-badge { width: 46px; height: 46px; border-radius: 999px; background: var(--line-soft); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; font-weight: 600; flex: none; }

/* ============================================================
   Consult (AI chat)
   ============================================================ */
/* README 주의사항 2 — 1fr 460px 이면 가로 스크롤 발생 */
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 26px; align-items: start; }
.chat-panel { background: #FFF; border-radius: 18px; display: flex; flex-direction: column; height: 720px; position: sticky; top: 110px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 9px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.chat-dot { width: 8px; height: 8px; background: var(--ink); border-radius: 999px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bub-ai { align-self: flex-start; max-width: 92%; background: var(--bubble-ai); padding: 13px 15px; font-size: 13px; line-height: 1.7; border-radius: 14px 14px 14px 3px; white-space: pre-wrap; }
.bub-me { align-self: flex-end; max-width: 86%; background: var(--ink); color: #FFF; padding: 12px 15px; font-size: 13px; line-height: 1.65; border-radius: 14px 14px 3px 14px; white-space: pre-wrap; }
.bub-ai.is-typing { color: var(--muted); }
.quick { padding: 12px 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { font-size: 12px; border: 1px solid var(--input-border); padding: 9px 13px; border-radius: 999px; transition: background 160ms ease; }
.quick button:hover { background: var(--chip); }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line-soft); }
.chat-input input { flex: 1; border: 0; outline: 0; font-size: 13px; background: transparent; }
.chat-input input::placeholder { color: var(--muted); }
.send { width: 32px; height: 32px; background: var(--brand); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 999px; flex: none; transition: background 160ms ease; }
.send:hover { background: var(--brand-deep); }

.gate { border-top: 1px solid var(--line-soft); background: var(--ink); color: #FFF; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.gate h3 { font-size: 17px; line-height: 1.5; letter-spacing: -0.025em; font-weight: 400; margin: 0; }
.gate input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  padding: 11px 13px; font-size: 12.5px; color: #FFF; width: 100%; outline: 0;
}
.gate input::placeholder { color: rgba(255,255,255,.62); }
.gate .or { display: flex; align-items: center; gap: 8px; }
.gate .or span.ln { flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.gate .or span.t { font-size: 10.5px; color: rgba(255,255,255,.55); }
.gate .alt { display: flex; gap: 6px; }
.gate .alt button { flex: 1; border: 1px solid rgba(255,255,255,.3); font-size: 12.5px; padding: 11px; border-radius: 999px; transition: background 160ms ease; }
.gate .alt button:hover { background: rgba(255,255,255,.1); }
.gate .fine { font-size: 10.5px; line-height: 1.7; color: rgba(255,255,255,.5); }
.gate .skip { font-size: 11.5px; color: rgba(255,255,255,.66); white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.3); }

.compare-pick { border: 1px solid var(--input-border); font-size: 12.5px; padding: 10px; border-radius: 999px; text-align: center; width: 100%; transition: background 160ms ease; }
.compare-pick:hover { background: var(--chip); }

/* ============================================================
   Report
   ============================================================ */
.report-card { background: #FFF; border-radius: 22px; padding: 40px 42px; display: flex; flex-direction: column; gap: 34px; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.cellgrid--report { grid-template-columns: 1fr 1fr; }
.cellgrid--report > * { background: var(--surface-2); }
.masonry { column-count: 3; column-gap: 12px; }
.masonry > * { break-inside: avoid; margin-bottom: 12px; }
.masonry .frame { border-radius: 12px; }
.budget-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.budget-num { font-family: var(--display); font-size: 44px; font-weight: 500; letter-spacing: -0.045em; }
.match-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   B2B / About
   ============================================================ */
.b2b-hero { position: relative; min-height: 400px; border-radius: 22px; overflow: hidden; display: flex; }
.b2b-hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 40px 38px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.b2b-hero h1 { font-family: var(--display); font-size: 62px; font-weight: 600; letter-spacing: -0.055em; line-height: .96; color: #FFF; margin: 0; }
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border-radius: 14px; overflow: hidden; }
.step-grid > * { background: var(--surface-2); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.step-grid > .on { background: var(--ink); color: #FFF; }
.step-grid .n { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.step-grid > .on .n { color: rgba(255,255,255,.62); }
.step-grid .t { font-size: 14.5px; line-height: 1.6; }
.dark-card { background: var(--dark); color: #F4F4F2; border-radius: 22px; padding: 40px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.dark-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid rgba(250,248,244,.2); font-size: 13px; }
.dark-row .k { color: rgba(250,248,244,.66); }
.form-card { background: #FFF; color: var(--ink); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; color: var(--muted); }
.field input, .field textarea { border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; font-size: 13px; outline: 0; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.dropzone { border: 1px dashed #D9D9D3; border-radius: 8px; padding: 20px 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

.principle { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.principle:last-child { border-bottom: 1px solid var(--line-strong); }
.principle .t { font-size: 15px; }
.principle .d { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.about-body { font-size: 20px; line-height: 1.7; letter-spacing: -0.025em; text-wrap: pretty; color: #2A2A28; }

.notice { padding: 12px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.7; }
.notice-ok { background: var(--chip); color: var(--body-2); }
.notice-err { background: #FBEDED; color: #8A3232; }

/* ============================================================
   Responsive — README 권장 브레이크포인트
   ============================================================ */
@media (max-width: 1199px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-panel { position: static; height: 620px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { position: static; }
  .dark-sec__in { grid-template-columns: minmax(0, 1fr); }
  .masonry { column-count: 2; }
  .hero__mark { font-size: 84px; }
}

@media (max-width: 767px) {
  .wrap, .wrap-narrow { padding-left: 18px; padding-right: 18px; }
  .g3, .g2, .cellgrid--2, .cellgrid--report, .dark-card { grid-template-columns: minmax(0, 1fr); }
  .step-grid, .cellgrid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { column-count: 1; }
  .hero { min-height: 440px; }
  .hero__mark { font-size: 44px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__tag { font-size: 19px; }
  .h-page, .detail-hero h1 { font-size: 38px; }
  .cta-band h2 { font-size: 38px; }
  .b2b-hero h1 { font-size: 38px; }
  .lead { font-size: 20px; }
  .detail-lead { font-size: 19px; }
  .after-hero { padding-top: 40px; }
  .report-card { padding: 26px 20px; }
  .site-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-row, .principle { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .faq-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px; }
  /* 모바일에서 메뉴를 숨기지 않는다 — 두 번째 줄로 내려 가로 스크롤 (지시 11).
     링크가 다섯 개뿐이라 햄버거를 만들 이유가 없다. */
  .site-head__in { flex-wrap: wrap; height: auto; padding: 10px 18px 0; row-gap: 0; }
  .nav { order: 3; flex: 1 0 100%; gap: 0; margin: 6px -18px 0; padding: 0 18px 8px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
  .nav a { padding: 8px 10px 8px 0; font-size: 13px; }
  .head-cta { margin-left: auto; }
  .head-cta .studio-link { display: none; }   /* 아래 메뉴 줄로 내렸다 */
  .nav a.only-mobile { display: inline-block; }

  /* 조건 바 → 하단 고정 시트 */
  .condbar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; transform: none;
    z-index: 35; border-radius: 0; padding: 12px 16px; gap: 8px; flex-wrap: wrap;
    border-top: 1px solid var(--line-strong);
  }
  .condbar span.f { border-right: 0; background: var(--chip); border-radius: 999px; padding: 8px 13px; font-size: 12.5px; }
  .condbar .ph { display: none; }
  .condbar .btn { flex: 1 0 100%; text-align: center; }
  body.has-condbar { padding-bottom: 130px; }
}


/* 이용방법 — /about#how (지시 22·23) */
.how-step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.how-step:first-child { border-top: 0; }
.how-step .n { font-size: 10px; letter-spacing: .1em; color: var(--brand); }
.how-step .t { font-size: 14.5px; line-height: 1.7; }

/* 포트폴리오 상세 설명문 (지시 17) */
.seo-body { background: #FFF; border-radius: 14px; padding: 6px 24px 18px; }
.seo-body p { font-size: 13.5px; line-height: 1.95; color: var(--body-2); margin: 16px 0 0; text-wrap: pretty; }

/* 「이 스타일로 상담받기」로 들어왔을 때 보여주는 출처 사례 (지시 11) */
.from-case { display: flex; align-items: center; gap: 14px; background: var(--sand); border-radius: 14px; padding: 12px 16px 12px 12px; }
.from-case:hover { background: var(--chip-hover); }


/* 상세페이지 사진 — 자르지 않고 원본 비율 그대로 (지시 4 후단) */
.shot { position: relative; border-radius: 16px; overflow: hidden; background: var(--chip); }
.shot > img, .shot > .cover { position: static; width: 100%; height: auto; display: block; object-fit: contain; }
.shot > div { aspect-ratio: 4 / 3; }   /* 사진이 없을 때의 자리 */

/* 본문 하단 SEO 문단 (지시 10) */
.seo-foot { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.seo-foot p { font-size: 13.5px; line-height: 1.95; color: var(--body-2); margin: 0 0 16px; max-width: 74ch; text-wrap: pretty; }
.seo-foot p:last-child { margin-bottom: 0; }

/* breadcrumb */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

/* 목록 어디서나 같은 비율 (지시 4) */
.ratio43 { aspect-ratio: 4 / 3; background: var(--chip); }

/* 지역+아파트 H1 은 문장이 길어 조금 작게 (지시 5) */
.detail-hero h1.h1-place { font-family: var(--sans); font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; }
@media (max-width: 767px) { .detail-hero h1.h1-place { font-size: 26px; } }


/* 모바일 필터 — 5축이 세로로 쌓이면 화면을 덮는다. 고정을 풀고 가로로 민다. */
@media (max-width: 767px) {
  /* 한 열로 쌓는다. 선택지는 그룹 안에서만 가로로 민다. */
  .filter-wrap { position: static; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 16px; }
  .fgroup { gap: 12px; }
  .frow__name { font-size: 11.5px; padding: 7px 9px; min-width: 72px; text-align: center; }
  .fopt { font-size: 13px; }
  .fcount-row { padding: 10px 0 14px; }
  .crumb { font-size: 11.5px; }
  .seo-foot p { font-size: 13px; }
}

/* 좌우 2단 — 모바일에서는 한 단으로 (지시 11) */
.split { display: grid; grid-template-columns: .5fr 1fr; gap: 44px; }
.split--head { grid-template-columns: 1fr .7fr; gap: 48px; align-items: end; }
.split--doc { grid-template-columns: .42fr 1fr; gap: 36px; }
@media (max-width: 767px) {
  .split, .split--head, .split--doc { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .fcount { white-space: nowrap; }
}

/* 상담 시작 버튼 — 이걸 눌러야만 API 가 호출된다 */
.chat-start { padding: 0 14px 12px; }

/* 샘플 포트폴리오 안내 */
.demo-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: #6B4A18; background: #F6E7CF; border-radius: 10px; padding: 10px 14px; }



/* ============================================================
   긴 글 안전장치 — 어디서도 문장이 잘리지 않게
   ============================================================ */

/* 한글은 단어(어절) 단위로 끊는다. 긴 URL·영문만 강제로 접는다. */
body { word-break: keep-all; overflow-wrap: break-word; }
a, p, span, div, li, td, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* 본문 성격의 영역은 높이를 내용이 정한다. 잘라내는 속성을 쓰지 않는다. */
.hero__tag, .hero__desc, .cap, .lead, .about-body, .detail-lead, .seo-body, .seo-foot,
.case-title, .case-meta, .cost-row .d, .faq-row .q, .faq-row .a, .principle .d,
.step-grid .t, .cell-v, .side-row, .demo-note, .how-step .t, .from-case {
  height: auto; max-height: none; overflow: visible; -webkit-line-clamp: none;
}

/* 그리드·플렉스 칸이 내용보다 좁아져 가로 스크롤을 만들지 않게 */
.g2 > *, .g3 > *, .split > *, .dark-sec__in > *, .dark-card > *,
.detail-grid > *, .step-grid > *, .cellgrid > * { min-width: 0; }

/* 홈 다크 섹션의 떠 있는 카드 — 글이 길어져도 서로 겹치지 않게 */
.float-stack { position: relative; min-height: 320px; }
.float-stack__img { display: block; position: absolute; inset: 0; }
@media (max-width: 767px) {
  /* 모바일에서는 겹칠 자리가 없다. 사진 아래로 내려 일반 흐름에 쌓는다. */
  .float-stack { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .float-stack__img { position: relative; aspect-ratio: 4 / 3; }
  .float-card { position: relative; left: 0; top: auto !important; width: auto; }
}

/* ============================================================
   긴 문장 — 문장 단위로 줄을 바꾼다
   ============================================================ */
.prose { text-wrap: pretty; }
.prose p { margin: 0; }
.prose p + p { margin-top: .62em; }
/* 따옴표로 묶인 구절이 줄 끝에서 갈라지지 않게 */
.keep { white-space: nowrap; }

/* prose 로 감싸면서 인라인 스타일이 빠진 자리 — 원래 모양 그대로 유지 */
.dark-sec__p .prose p, .dark-sec__p { font-size: 13px; line-height: 1.85; color: rgba(250,248,244,.72); max-width: 400px; }
.cta-band__note .prose p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.9); }
.cta-band__note { max-width: 340px; }
.consult-intro p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.consult-intro { margin-top: 12px; max-width: 460px; }
.b2b-hero__note .prose p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.9); }
.b2b-hero__note { margin-top: 16px; max-width: 480px; }
.b2b-num__d p { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.b2b-num__d { margin-top: 10px; }
.report-note p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.report-note { max-width: 340px; }
.faq-row .a .prose p, .principle .d .prose p { font-size: inherit; line-height: inherit; color: inherit; }

/* 홈 편집 섹션 — prose 로 감싸면서 인라인 스타일이 빠진 자리 */
.home-kicker p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.hero__mark p { margin: 0; }
h2.cta-band__title { margin: 0; }
h2.cta-band__title p { margin: 0; }

/* 이용방법 — 아이콘·제목·설명이 있어도 높이가 내용에 맞게 늘어난다 */
.howto-title p { font-size: 22px; line-height: 1.5; letter-spacing: -.03em; margin: 0; }
.howto-desc { margin-bottom: 14px; }
.howto-desc p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.how-step__icon { width: 34px; display: flex; align-items: center; justify-content: flex-start; font-size: 17px; line-height: 1; }
.how-step__icon img { width: 26px; height: 26px; object-fit: contain; }
.how-step__t p { font-size: 14.5px; line-height: 1.7; margin: 0; }
.how-step__d { margin-top: 4px; }
.how-step__d p { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin: 0; }
.faq-desc { margin: -8px 0 14px; }
.faq-desc p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.foot-note { margin-top: 10px; }
.foot-note p { font-size: 12px; line-height: 1.8; color: rgba(250,248,244,.6); margin: 0; }
.site-foot .wordmark p { margin: 0; }

/* 라벨을 편집 가능한 블록으로 낼 때 — 원래 모양 그대로 유지 */
.prose.label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.prose.label p { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }

/* 상세 사진 설명 */
.shot-wrap { margin: 0; }
.shot-cap { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* 소개 페이지 — prose 로 감싸면서 인라인 스타일이 빠진 자리 */
h1.about-h1 { font-family: var(--display); font-size: 58px; font-weight: 600; letter-spacing: -.055em; line-height: 1; margin: 0; }
h1.about-h1 p { margin: 0; font: inherit; letter-spacing: inherit; }
.about-cta p { font-size: 24px; letter-spacing: -.03em; margin: 0; }
@media (max-width: 767px) { h1.about-h1 { font-size: 38px; } }

/* 다크 섹션 — prose 로 감싸면서 인라인 스타일이 빠진 자리 */
.dark-kicker p { font-size: 12px; color: rgba(250,248,244,.62); margin: 0; }
h2.dark-h2 { font-size: 32px; line-height: 1.4; letter-spacing: -.03em; font-weight: 400; margin: 0; }
h2.dark-h2 p { margin: 0; font: inherit; letter-spacing: inherit; }

/* 소개 상단 라벨 */
.prose.label-lg { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.prose.label-lg p { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }


/* ── /consult 진입부 · 바로 비교견적 ───────────────────────── */
.consult-top { max-width: 640px; }
.consult-h1 { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; margin: 0; }
.consult-intro { font-size: 14.5px; line-height: 1.85; color: var(--muted); margin: 14px 0 0; max-width: 46ch; }
.consult-paths { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.consult-alt { margin: 0; font-size: 13px; color: var(--muted); }
.consult-alt a { margin-left: 8px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pick-desc { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.quote-wrap { max-width: 640px; }
.quote-form { margin-top: 18px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qf { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.qf--wide { grid-column: 1 / -1; }
.qf > span { color: var(--muted); }
.qf > span em { font-style: normal; font-size: 11px; opacity: .7; }
.qf select, .qf input, .qf textarea {
  width: 100%; border: 1px solid var(--chip-hover); border-radius: 10px;
  padding: 12px 13px; font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.qf textarea { resize: vertical; line-height: 1.7; }
.qf select:focus, .qf input:focus, .qf textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.quote-note { margin: 18px 0 14px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.quote-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
.quote-msg.is-err { color: #A4453A; }

@media (max-width: 767px) {
  .consult-h1 { font-size: 34px; }
  .quote-grid { grid-template-columns: 1fr; }
  .consult-paths { gap: 12px; }
}

/* ── HOME 조건바: 장식용 span 에서 실제 입력으로 ───────────────
   겉모습(크기·간격·색·구분선)은 그대로 두고 요소만 바꿨다. */
.condbar select {
  border: 0; background: transparent; font: inherit; font-size: inherit;
  color: var(--ink); padding: 0 18px 0 0; margin: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23999' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.condbar select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.condbar input.ph { border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--ink); }
.condbar input.ph::placeholder { color: var(--muted); }
.condbar input.ph:focus { outline: none; }
.condbar button.btn-sq { border: 0; cursor: pointer; }
.quote-prefill { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 767px) {
  .condbar select { padding-right: 15px; }
  .condbar input.ph { width: 100%; padding: 8px 2px; }
}

/* ── 약관·처리방침의 조 제목 ────────────────────────────────
   전역 .label(9.5px mono, 대문자)은 영문 라벨용이라 한글 조 제목엔 너무 작았다.
   Space Mono 에는 한글 글자가 없어 자간만 벌어지고 읽히지 않는다.
   .label 을 바꾸면 푸터·상담·결과지까지 전부 흔들리므로 전용 클래스를 둔다. */
.doc-h {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.55;
  color: var(--ink);
  text-transform: none;
}
@media (max-width: 767px) { .doc-h { font-size: 15.5px; } }

/* ── 인테리어 가이드 ────────────────────────────────────────
   기존 토큰(색·글꼴·여백)만 쓴다. 새 색이나 새 글꼴을 들이지 않는다.
   본문은 읽기 폭 720px 로 묶고, 바깥 폭은 기존 .wrap(1320px)을 그대로 쓴다. */
.g-read { max-width: 720px; }
.g-sec { padding-top: 64px; padding-bottom: 8px; }
.g-h2 { margin: 0 0 18px; }
.g-h3 { font-size: 16px; letter-spacing: -0.025em; margin: 0 0 8px; }
.g-note { max-width: 720px; font-size: 13px; line-height: 1.85; color: var(--muted); margin: -6px 0 26px; }

/* 빵부스러기 — 작고 절제되게 */
.g-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
            padding-top: 28px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; }
.g-crumbs a { color: var(--muted); }
.g-crumbs a:hover { color: var(--ink); }
.g-crumbs em { font-style: normal; color: var(--body-2); }

/* 히어로 */
.g-hero { padding-top: 26px; }
.g-no { margin: 0 0 14px; }
.g-h1 { font-size: 40px; line-height: 1.28; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.g-intro { margin-top: 22px; }
.g-intro p { font-size: 15.5px; line-height: 1.9; color: var(--body-2); margin: 0 0 14px; }
.g-intro p:last-child { margin-bottom: 0; }
.g-hero__img { margin-top: 38px; aspect-ratio: 16 / 7; }

/* 견적이 다른 이유 — 카드가 아니라 번호 붙은 목록 */
.g-reasons { list-style: none; margin: 0; padding: 0;
             display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.g-reasons li { max-width: 460px; }
.g-reasons p { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 0; }
.g-num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
         color: var(--muted); margin-bottom: 10px; }
.g-work .g-num { display: inline; margin-right: 10px; }

/* 평수별 — 표가 아니라 정의 목록 */
.g-size { display: grid; grid-template-columns: .22fr 1fr; gap: 28px;
          padding: 30px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.g-size:first-of-type { border-top: 1px solid var(--line-strong); }
.g-size__k { font-size: 20px; letter-spacing: -0.03em; margin: 0; }
.g-dl { margin: 0; max-width: 720px; }
.g-dl dt { font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 5px; }
.g-dl dd { margin: 0 0 16px; font-size: 14px; line-height: 1.9; color: var(--body-2); }
.g-dl dd:last-child { margin-bottom: 0; }
.g-size__cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
                 gap: 16px; margin-top: 22px; max-width: 520px; }

/* 공정별 */
.g-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.g-work { max-width: 520px; }
.g-work p { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 0; }

/* 견적 비교표 — 숫자가 아니라 포함 여부를 본다 */
.g-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; }
.g-table th, .g-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.g-table thead th { font-size: 12px; font-weight: 500; color: var(--muted);
                    border-bottom: 1px solid var(--line-strong); }
.g-table tbody th { font-weight: 500; }
.g-table td { color: var(--body-2); }
.g-compare-note { margin-top: 28px; }
.g-compare-note p { font-size: 14px; line-height: 1.9; color: var(--body-2); margin: 0 0 12px; }
.g-midcta { display: inline-flex; margin-top: 10px; }

/* 마지막 CTA */
.g-cta { padding-top: 76px; padding-bottom: 8px; }
.g-cta__t { font-size: 30px; line-height: 1.35; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
.g-cta__d { font-size: 14.5px; line-height: 1.9; color: var(--muted); margin: 16px 0 26px; }
.g-list { max-width: 720px; margin: 0; padding: 0; list-style: none; }
.g-list li { position: relative; padding: 14px 0 14px 18px; font-size: 14px; line-height: 1.9;
             color: var(--body-2); border-top: 1px solid var(--line-soft); }
.g-list li:first-child { border-top: 1px solid var(--line-strong); }
.g-list li::before { content: ''; position: absolute; left: 0; top: 26px;
                     width: 5px; height: 1px; background: var(--muted); }
.g-table-cap { margin: 12px 0 0; }
.g-alt { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.g-alt a { text-decoration: underline; text-underline-offset: 3px; color: var(--body-2); }
.g-updated { margin: 36px 0 0; font-family: var(--mono); font-size: 10.5px;
             letter-spacing: 0.06em; color: var(--line-strong); }

@media (max-width: 1100px) {
  .g-reasons, .g-works { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .g-size { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .g-h1 { font-size: 34px; }
}
@media (max-width: 767px) {
  .g-sec { padding-top: 48px; }
  .g-h1 { font-size: 27px; line-height: 1.34; }
  .g-intro p { font-size: 14.5px; }
  .g-hero__img { aspect-ratio: 4 / 3; margin-top: 28px; }
  .g-size__cases { max-width: none; gap: 12px; }
  .g-cta__t { font-size: 23px; }
  .g-table { min-width: 420px; }
}

/* ── 갤러리 ─────────────────────────────────────────────────
   벽돌처럼 쌓는다(CSS columns). 사진 비율이 제각각이어도 빈칸이 안 생긴다.
   색·글꼴·여백은 기존 토큰 그대로 쓴다. */
.gal-head { padding: 34px 24px 22px; }
.gal-h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.04em; font-weight: 600; margin: 12px 0 0; }
.gal-meta { display: flex; align-items: baseline; justify-content: space-between;
            gap: 16px; flex-wrap: wrap; margin-top: 12px;
            font-size: 12.5px; color: var(--muted); }
.gal-reshuffle { color: var(--muted); }
.gal-reshuffle:hover { color: var(--ink); }

.gal-wall { padding: 0 24px 10px; columns: 3; column-gap: 16px; }
.gal-item { display: block; position: relative; break-inside: avoid;
            margin: 0 0 16px; border-radius: 16px; overflow: hidden;
            background: var(--chip); }
.gal-img { display: block; width: 100%; height: auto; }
.gal-item .gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  color: #FFF; opacity: 0; transition: opacity 180ms ease;
  background: linear-gradient(to top, rgba(23,23,26,.62), rgba(23,23,26,0));
}
.gal-item .gal-cap b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.gal-item .gal-cap span { display: block; margin-top: 3px; font-size: 11.5px; opacity: .85; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; }
.gal-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 바닥 감시자 — 여기에 닿으면 다음 묶음을 이어 붙인다 */
.gal-sentinel { height: 1px; margin-bottom: 70px; }
.gal-empty { font-size: 14px; color: var(--muted); }
.gal-empty a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) { .gal-wall { columns: 2; } }
@media (max-width: 600px) {
  .gal-wall { columns: 1; padding-left: 18px; padding-right: 18px; }
  .gal-head { padding: 26px 18px 18px; }
  .gal-h1 { font-size: 24px; }
  /* 손가락으로는 hover 가 없다 — 설명을 항상 보여준다 */
  .gal-item .gal-cap { opacity: 1; }
}

/* ── 샘플 표시 ───────────────────────────────────────────────
   실제 사례가 등록되기 전까지만 쓰인다. 기존 색·글꼴만 사용한다. */
.sample-note { max-width: 640px; margin: 16px 0 0; font-size: 12.5px;
               line-height: 1.8; color: var(--muted); }
.case-sample { position: absolute; left: 12px; top: 12px; z-index: 2;
               font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
               padding: 5px 8px; border-radius: 999px;
               background: rgba(23,23,26,.55); color: #FFF; }
.sample-tag { font-style: normal; font-size: 10.5px; letter-spacing: .04em;
              color: var(--muted); margin-left: 5px; }
