/* ============================================================
   집수리 전문 시공 — 랜딩 페이지
   Palette: warm off-white / near-black / amber accent (light)
   ------------------------------------------------------------
   포인트 컬러를 바꾸고 싶다면 --accent 와 --accent-rgb 두 줄만
   같은 색으로 맞춰 수정하면 페이지 전체에 반영됩니다.
   ============================================================ */

:root {
  --bg:          #FAF8F5;   /* 따뜻한 오프화이트 */
  --bg-2:        #F3EFEA;
  --bg-3:        #ECE6DF;
  --surface:     #FFFFFF;   /* 카드·입력칸 */
  --fg:          #1C1814;
  --fg-soft:     #3A332D;
  --muted:       #6E665E;
  --muted-2:     #9A9189;
  --accent:      #F26414;   /* 버튼·강조 배경 */
  --accent-rgb:  242, 100, 20;
  --accent-text: #C4520E;   /* 밝은 배경 위 주황 글자 (가독성용으로 한 톤 진하게) */
  --ink:         #1C1814;   /* 주황 배경 위에 올라가는 글자색 */
  --line:        rgba(28, 24, 20, 0.12);
  --line-soft:   rgba(28, 24, 20, 0.07);

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Apple SD Gothic Neo', Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.011em;
  word-break: keep-all;        /* 한글 단어가 중간에서 잘리지 않게 */
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: normal; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-2%, -3%); }
  33%  { transform: translate(3%, -1%); }
  50%  { transform: translate(-1%, 2%); }
  66%  { transform: translate(2%, 3%); }
  83%  { transform: translate(-3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--pad);
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: dotPulse 2.6s var(--ease-io) infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}
.nav__brand-en {
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  margin-left: 0.15rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.nav__cta svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.nav__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.nav__cta:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--pad) 5rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(var(--accent-rgb), 0.11) 0%,
              rgba(var(--accent-rgb), 0.035) 38%,
              transparent 68%);
  pointer-events: none;
  animation: glowDrift 14s var(--ease-io) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translateX(-54%) scale(1);    opacity: 0.85; }
  to   { transform: translateX(-46%) scale(1.12); opacity: 1; }
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: ripple 2.4s var(--ease-io) infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero__title {
  font-size: clamp(2.75rem, 9.2vw, 8.25rem);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.045em;
  margin-bottom: clamp(0.85rem, 1.8vw, 1.5rem);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordUp 1.15s var(--ease) forwards;
}
.hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.10s; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.19s; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.28s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.37s; }
@keyframes wordUp {
  to { transform: translateY(0); opacity: 1; }
}
/* 한글 강조: 라틴 세리프 이탤릭은 한글에서 가짜 기울임으로 깨지므로 컬러로만 강조 */
.accent { color: var(--accent-text); }

/* 영문 전용 세리프 이탤릭 */
.hero__en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.75rem);
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.hero__desc {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 46ch;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.hero__link svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.hero__link:hover { border-bottom-color: var(--accent); color: var(--accent-text); }
.hero__link:hover svg { transform: translateY(4px); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--muted-2), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 1px; height: 50%;
  background: var(--accent);
  animation: scrollDrop 2.2s var(--ease-io) infinite;
}
@keyframes scrollDrop {
  0%   { top: -50%; }
  100% { top: 100%; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scrollX 34s linear infinite;
}
.marquee__track span {
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--fg);
}
.marquee__track i {
  color: var(--accent-text);
  font-style: normal;
  font-size: 0.8rem;
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.25rem, 7.5vw, 6rem) var(--pad);
}

.section__head { margin-bottom: clamp(1.6rem, 3.2vw, 2.5rem); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.04em;
  max-width: 20ch;
}
.section__title em {
  color: var(--accent-text);
  background-image: linear-gradient(to top, rgba(var(--accent-rgb), 0.22) 0.12em, transparent 0.12em);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn--solid {
  background: var(--accent);
  color: var(--ink);
}
.btn--solid:hover {
  transform: translateY(-2px);
  background: #E0560C;
}
.btn--solid:hover svg { transform: translate(2px, -2px); }
.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- hero trust badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.badges li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.badges strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}
.badges span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   PAIN
   ============================================================ */
.pain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.pain li {
  background: var(--bg);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.5s var(--ease);
}
.pain li:hover { background: var(--bg-2); }
.pain__mark {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 700;
  flex: none;
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease),
              color 0.5s var(--ease);
}
.pain li:hover .pain__mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.pain p {
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  color: var(--fg-soft);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.pain__answer {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.5;
  max-width: 44ch;
}
.pain__answer em {
  color: var(--accent-text);
  background-image: linear-gradient(to top, rgba(var(--accent-rgb), 0.22) 0.12em, transparent 0.12em);
}

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  transition: background-color 0.55s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.09), transparent 58%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.card:hover { background: var(--bg-3); }
.card:hover::before { opacity: 1; }

.card__num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  transition: color 0.45s var(--ease);
}
.card:hover .card__num { color: var(--accent-text); }

.card h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.68;
  flex: 1;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.card__tags span {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease);
}
.card:hover .card__tags span { border-color: rgba(var(--accent-rgb), 0.3); color: var(--fg); }

.card__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: -0.01em;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   WORK
   ============================================================ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0.85rem 1.1rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.04);
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.6;
}
.notice__badge {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 3px;
  padding: 0.18rem 0.5rem;
  margin-top: 0.15rem;
}
.notice strong { color: var(--fg); font-weight: 600; }

.work { border-top: 1px solid var(--line); }

.notice--setup {
  border-style: solid;
  border-color: var(--line);
  background: var(--bg-2);
}

.work__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) clamp(140px, 17vw, 260px);
  grid-template-areas: "idx body vis";
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease);
}
.work__item::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.work__item:hover::after { transform: scaleX(1); }

.work__index {
  grid-area: idx;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  padding-top: 0.5rem;
  transition: color 0.45s var(--ease);
}
.work__item:hover .work__index { color: var(--accent-text); }

.work__body { grid-area: body; }

.work__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 1.4rem;
}
.work__body h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.work__cat {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.work__detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 62ch;
}
.work__detail > div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.work__detail dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.work__detail dd {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.66;
}

.work__results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work__results span {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
}
.work__results b {
  color: var(--accent-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 시공 전/후 비주얼 (임시 그래픽 — 실제 사진으로 교체) ---------- */
.work__visual {
  grid-area: vis;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.7s var(--ease);
}
.work__item:hover .work__visual { transform: scale(1.03); }

.ba {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem 0.85rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.ba--before {
  background: linear-gradient(135deg, #2B2724 0%, #17130F 100%);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.75s var(--ease);
}
.ba--before::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(48deg, rgba(0,0,0,0.35) 0 12px, transparent 12px 26px),
    radial-gradient(circle at 30% 65%, rgba(90, 80, 70, 0.55), transparent 60%);
  pointer-events: none;
}
.ba--before span, .ba--before { z-index: 2; }

/* 실제 사진이 들어간 경우 */
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ba__label { position: relative; z-index: 1; }
.ba--before:has(img)::after { display: none; }

/* ---------- 실제 사례: 세로 사진 2장 (보수 부위 / 문 전체) ---------- */
.work__item--feature {
  grid-template-columns: 4.5rem minmax(0, 1fr) clamp(300px, 38vw, 540px);
}
.work__gallery {
  grid-area: vis;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.work__shot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.work__shot figcaption {
  font-size: 0.78rem;
  color: var(--muted-2);
}
.work__item--feature .work__visual { aspect-ratio: 3 / 4; }
.work__item.is-flipped .ba--before,
.work__item--feature.is-flipped .ba--before { clip-path: inset(0 0 0 0); }

.work__hint {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.work__hint--touch { display: none; }
@media (hover: none) {
  .work__hint--mouse { display: none; }
  .work__hint--touch { display: block; }
  .work__gallery { cursor: pointer; }
}
.work__item:hover .ba--before { clip-path: inset(0 0 0 0); }

.work__visual[data-visual="1"] .ba--after {
  background:
    radial-gradient(circle at 76% 24%, rgba(var(--accent-rgb), 0.5), transparent 58%),
    linear-gradient(135deg, #2A211A 0%, #120E0A 100%);
}
.work__visual[data-visual="2"] .ba--after {
  background:
    radial-gradient(circle at 28% 72%, rgba(90, 160, 220, 0.45), transparent 60%),
    linear-gradient(135deg, #151E26 0%, #0A0E12 100%);
}
.work__visual[data-visual="3"] .ba--after {
  background:
    radial-gradient(circle at 58% 34%, rgba(214, 188, 150, 0.45), transparent 60%),
    linear-gradient(135deg, #241E17 0%, #100D0A 100%);
}
.work__visual[data-visual="4"] .ba--after {
  background:
    radial-gradient(circle at 38% 30%, rgba(120, 190, 150, 0.4), transparent 60%),
    linear-gradient(135deg, #17221C 0%, #0A0F0C 100%);
}


/* ============================================================
   CAREER TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: clamp(1.5rem, 4vw, 3rem); }

.timeline__line {
  position: absolute;
  left: 0; top: 0.75rem; bottom: 0.75rem;
  width: 1px;
  background: var(--line);
}
.timeline__line i {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.15s linear;
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 180px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.tl:last-of-type { border-bottom: none; }
.tl::before {
  content: '';
  position: absolute;
  left: calc(clamp(1.5rem, 4vw, 3rem) * -1);
  top: calc(clamp(1.75rem, 3vw, 2.5rem) + 0.55rem);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted-2);
  transform: translateX(-3px);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.tl:hover::before { background: var(--accent); border-color: var(--accent); }

.tl__year {
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.tl__body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
.tl__org {
  font-size: 0.85rem;
  color: var(--accent-text);
  margin-bottom: 0.7rem;
}
.tl__body > p:last-child {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.68;
  max-width: 58ch;
}

/* ---------- 약속 3가지 ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.promise li {
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  padding-left: 3.1rem;
  transition: background-color 0.5s var(--ease);
}
.promise li::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 1.85rem;
  width: 0.85rem; height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.promise li:hover { background: var(--bg-2); }
.promise strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.promise span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: clamp(1.25rem, 2.4vw, 1.85rem) 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: color 0.35s var(--ease);
}
.faq__q:hover { color: var(--accent-text); }

.faq__icon {
  position: relative;
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
              transform 0.5s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0.65rem; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q:hover .faq__icon { border-color: var(--accent); }
.faq__q[aria-expanded='true'] .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: rotate(180deg);
}
.faq__q[aria-expanded='true'] .faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq__q[aria-expanded='true'] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 68ch;
  padding-bottom: clamp(1.25rem, 2.4vw, 1.85rem);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(var(--accent-rgb), 0.10), transparent 62%),
    var(--bg);
  padding: clamp(3.25rem, 7.5vw, 6rem) var(--pad);
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.contact__title {
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.contact__title em {
  color: var(--accent-text);
  background-image: linear-gradient(to top, rgba(var(--accent-rgb), 0.22) 0.12em, transparent 0.12em);
}
.contact__desc {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* ---------- 문의 폼 ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 760px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field__label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.field__label b { color: var(--accent-text); font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.65; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238C8781' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.field select option { background: var(--surface); color: var(--fg); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #D93636; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form__hint {
  font-size: 0.8rem;
  color: var(--muted-2);
}
.form__error {
  font-size: 0.85rem;
  color: #C62828;
}

/* ---------- 연락 채널 ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.channels__item {
  background: var(--bg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.channels__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.channels__value {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.channels__item.is-empty .channels__value {
  color: var(--muted-2);
  font-weight: 400;
  font-style: italic;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad) 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.footer__row a { transition: color 0.4s var(--ease); }
.footer__row a:hover { color: var(--accent-text); }
.footer__note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 70ch;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 130%);
  z-index: 300;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* 시공 사진은 모바일에서 더 중요하므로 숨기지 않고 본문 위로 올린다 */
  .work__item {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-areas:
      "vis  vis"
      "idx  body";
    gap: 1.25rem;
  }
  .work__visual { aspect-ratio: 16 / 9; }
  .work__index { padding-top: 0.25rem; }
  .work__gallery { max-width: 560px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .nav__brand-en { display: none; }

  .hero { min-height: 92svh; padding-top: 7.5rem; }
  .hero__scroll { display: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .badges { gap: 0.9rem 1.75rem; }

  .work__item {
    grid-template-columns: 1fr;
    grid-template-areas: "vis" "idx" "body";
    gap: 0.9rem;
  }
  .work__index { padding-top: 0; }
  .work__detail > div { grid-template-columns: 1fr; gap: 0.2rem; }

  .tl { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl::before { top: calc(clamp(1.75rem, 3vw, 2.5rem) + 0.3rem); }

  .form__foot { flex-direction: column; align-items: stretch; }
  .form__foot .btn { justify-content: center; }
}

/* 터치 기기: hover가 없으므로 BEFORE 레이어를 항상 절반 노출해 비교가 보이게 한다 */
@media (hover: none) {
  .ba--before { clip-path: inset(0 0 0 55%); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__title .word { transform: none; opacity: 1; }
  .hero__scroll { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .grain { animation: none; }

  /* FAQ 펼침은 기능이므로 즉시 전환되도록만 남긴다 */
  .faq__a { transition: none; }
  .ba--before { clip-path: inset(0 0 0 55%); }
}

/* 실제 사진 사례는 전·후 촬영 위치가 조금씩 달라 반반 분할이 어색하다.
   터치 기기·모션 최소화 환경에서도 AFTER 전체를 먼저 보여주고, 탭하면 BEFORE로 전환한다. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .work__item--feature .ba--before { clip-path: inset(0 0 0 100%); }
  .work__item--feature.is-flipped .ba--before { clip-path: inset(0 0 0 0); }
}

.work__note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.work__lead {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60ch;
}
.work__lead .work__hint { display: block; margin-top: 0.35rem; }
.work__lead .work__hint--touch { display: none; }
@media (hover: none) {
  .work__lead .work__hint--mouse { display: none; }
  .work__lead .work__hint--touch { display: block; }
}

/* ---------- 시공 항목 보충 문구 / 출장 지역 ---------- */
.services__more,
.area__recent {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.92rem;
  color: var(--muted);
}
#area .promise { margin-top: 0; }

/* ============================================================
   공사 종류 타일 (시공 항목 — build.js 가 생성)
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.cat {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), background-color 0.45s var(--ease);
}
.cat:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(28, 24, 20, 0.35); }
.cat__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.cat__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.cat:hover .cat__img img { transform: scale(1.05); filter: none; }
.cat__body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.95rem 1rem 1.1rem; }
.cat__name { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.025em; }
.cat__meta { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   시공 사례 필터 + 카드 목록 (build.js 가 생성)
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.filter b { font-weight: 600; font-size: 0.75rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--fg); border-color: rgba(var(--accent-rgb), 0.45); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.filter.is-active b { color: var(--ink); opacity: 0.7; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.case[hidden] { display: none !important; }
.case__card { position: relative; display: flex; flex-direction: column; gap: 0.9rem; height: 100%; }
.case__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  transition: transform 0.6s var(--ease);
}
.case:hover .case__visual { transform: translateY(-4px); }
.case:hover .ba--before { clip-path: inset(0 0 0 0); }
.case__info { display: flex; flex-direction: column; gap: 0.25rem; }
.case__cat { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--accent-text); }
.case__title { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.35; }
.case__open { text-align: left; transition: color 0.3s var(--ease); }
.case__open::after { content: ''; position: absolute; inset: 0; z-index: 3; cursor: zoom-in; }
.case:hover .case__open { color: var(--accent-text); }
.case__meta { font-size: 0.8rem; color: var(--muted); }

.grid__more { display: flex; justify-content: center; margin-top: clamp(1.4rem, 2.6vw, 2rem); }

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case__visual { aspect-ratio: 4 / 5; }
}
/* 터치 기기: 카드는 AFTER만, 누르면 크게 보기에서 전후 비교 */
@media (hover: none) {
  .case .ba--before { clip-path: inset(0 0 0 100%); }
}

/* ============================================================
   크게 보기 (dialog)
   ============================================================ */
.lb {
  width: min(1100px, 94vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.lb[open] { display: flex; flex-direction: column; animation: lbIn 0.45s var(--ease); }
.lb::backdrop { background: rgba(28, 22, 16, 0.55); backdrop-filter: blur(6px); animation: fadeIn 0.3s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.lb__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.lb__count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: auto; order: -1; padding-left: 0.4rem; }
.lb__nav, .lb__close {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.lb__nav svg, .lb__close svg { width: 15px; height: 15px; }
.lb__nav:hover, .lb__close:hover { border-color: var(--accent); color: var(--accent-text); }
.lb__nav:disabled { opacity: 0.3; pointer-events: none; }

.lb__body { overflow-y: auto; padding: clamp(1.25rem, 3vw, 2rem); overscroll-behavior: contain; }
.lb__head { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.25rem; }
.lb__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.25; }
.lb__body .work__detail { margin-bottom: 1.5rem; }
.lb__pairs { display: flex; flex-direction: column; gap: 1.25rem; }
.lb__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.lb__pair figure { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.lb__pair img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.lb__pair figcaption {
  position: absolute; left: 0.6rem; top: 0.6rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 0.25rem 0.55rem; border-radius: 3px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
}
.lb__pair figure:last-child figcaption { background: var(--accent); color: var(--ink); }

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .case .ba--before { clip-path: inset(0 0 0 100%); }
  .case:hover .ba--before { clip-path: inset(0 0 0 0); }
  .lb[open], .lb::backdrop { animation: none; }
}

/* 휴대폰: 필터 버튼을 한 줄로, 옆으로 밀어서 보기 */
@media (max-width: 720px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

/* ============================================================
   시공 사례 카드: BEFORE로 시작 → 화면에 보이면 자동으로 AFTER
   (main.js 가 .is-after 를 붙였다 뗌. 위쪽의 이전 규칙들보다 뒤에 있어야 함)
   ============================================================ */
.case .ba--before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.case.is-after .ba--before { clip-path: inset(0 0 0 100%); }

/* 넘어가는 경계에 얇은 빛 줄 */
.case .case__visual::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  z-index: 2;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8);
  opacity: 0;
  pointer-events: none;
}
.case.is-after .case__visual::after { animation: wipeLine 1.1s var(--ease-io); }
@keyframes wipeLine {
  0%   { left: 0;    opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* PC: AFTER로 넘어간 뒤 마우스를 올리면 BEFORE를 다시 보여줌 */
@media (hover: hover) {
  .case.is-after:hover .ba--before { clip-path: inset(0 0 0 0); transition-duration: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
  .case .ba--before { transition: none; }
  .case.is-after .case__visual::after { animation: none; }
}

/* ============================================================
   출장 지역 목록 (build.js 가 content.json 의 areas 로 생성)
   ============================================================ */
.area__lead { margin: -1.5rem 0 clamp(2rem, 4vw, 2.75rem); }
.area__legend {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.area__legend i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.areas { border-top: 1px solid var(--line); }
.area__row {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 180px) minmax(0, 1fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.area__head { display: flex; flex-direction: column; gap: 0.2rem; }
.area__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.area__head span { font-size: 0.8rem; color: var(--muted); }

.area__groups { display: flex; flex-direction: column; gap: 0.7rem; }
.area__group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.area__group li {
  position: relative;
  font-size: 0.86rem;
  color: var(--fg-soft);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 0.28rem 0.8rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.area__group li:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--fg); }
.area__group li.has-case {
  padding-left: 1.45rem;
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--fg);
  font-weight: 600;
}
.area__group li.has-case::before {
  content: '';
  position: absolute;
  left: 0.65rem; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 720px) {
  .area__lead { margin-top: -1rem; }
  .area__legend { display: flex; margin: 0.5rem 0 0; }
  .area__row { grid-template-columns: 1fr; }
  .area__head { flex-direction: row; align-items: baseline; gap: 0.6rem; }
}

/* .btn 등에서 display 를 지정하면 hidden 속성이 무시되므로 전역으로 한 번 더 못박음 */
[hidden] { display: none !important; }

/* ============================================================
   지역 페이지 (예: /cheonan/)
   ============================================================ */
.region__hero { padding-top: clamp(6.5rem, 11vw, 8.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.region__hero .hero__eyebrow { margin-bottom: 0.8rem; }
.region__title { margin-bottom: 0.9rem; }

/* 지역·공사 페이지 상단: 글 왼쪽, 대표 사진 오른쪽 */
.region__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .region__hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .region__hero-grid .hero__portrait { max-width: 220px; }
  .region__hero-grid .hero__portrait img { aspect-ratio: 1 / 1; }
}
.region__hero .work__lead { margin-bottom: 1.35rem; max-width: 62ch; }
.region__cats li b { color: var(--accent-text); font-weight: 600; margin-left: 0.2rem; }
.area__group li b { color: var(--accent-text); font-weight: 600; margin-left: 0.2rem; }
.area__group a { display: block; }

/* 공사 종류 페이지 — 작업 방법 표 */
.cat__spec {
  display: grid; gap: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.cat__spec > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: 1rem 1.25rem; border-top: 1px solid var(--line);
}
.cat__spec > div:first-child { border-top: 0; }
.cat__spec dt {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text); padding-top: 0.1rem;
}
.cat__spec dd {
  margin: 0; font-size: 0.95rem; line-height: 1.7;
  color: var(--fg); word-break: keep-all;
}
@media (max-width: 640px) {
  .cat__spec > div { grid-template-columns: 1fr; gap: 0.3rem; padding: 0.9rem 1rem; }
}

/* 수리 순서 — 펼쳐진 상태로 보여준다 */
.howto {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.howto__head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.97rem; font-weight: 600; color: var(--fg);
}
.howto + .howto { margin-top: 0.8rem; }
.howto__name {
  font-weight: 650; color: var(--fg); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
.howto__name:hover { border-bottom-color: var(--accent-text); }
.howto__time { font-size: 0.82rem; color: var(--muted); margin-left: auto; }
.howto__toggle-n {
  font-size: 0.8rem; font-weight: 500;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1); color: var(--accent-text);
}
.howto__lead {
  margin: 0; padding: 0 1.25rem 0.9rem;
  font-size: 0.88rem; line-height: 1.7; color: var(--muted); word-break: keep-all;
}
.howto__steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem; margin: 0; padding: 0 1.25rem 1.25rem; list-style: none;
}
.howto__step figure { margin: 0; }
.howto__step img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; background: var(--bg); display: block;
}
.howto__step figcaption {
  display: flex; align-items: center; gap: 0.45rem;
  margin-top: 0.5rem; font-size: 0.86rem; color: var(--fg); word-break: keep-all; line-height: 1.45;
}
.howto__step figcaption b {
  display: grid; place-items: center; flex: none;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
}
@media (max-width: 640px) {
  .howto__head { padding: 0.9rem 1rem 0.45rem; font-size: 0.93rem; }
  .howto__lead { padding: 0 1rem 0.8rem; }
  .howto__steps { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.7rem; padding: 0 1rem 1rem; }
}

/* 사진 크게 보기 안의 수리 순서 */
.lb__howto { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.lb__howto-t {
  margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 650; color: var(--fg);
  display: flex; align-items: center; gap: 0.5rem;
}
.lb__howto-t span {
  font-size: 0.78rem; font-weight: 500; color: var(--accent-text);
  padding: 0.12rem 0.45rem; border-radius: 999px; background: rgba(var(--accent-rgb), 0.1);
}
.lb__howto-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem; margin: 0; padding: 0; list-style: none;
}
.lb__howto-steps li { margin: 0; }
.lb__howto-steps img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; background: var(--bg); display: block;
}
.lb__howto-steps span {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.4rem; font-size: 0.8rem; color: var(--fg); word-break: keep-all; line-height: 1.4;
}
.lb__howto-steps b {
  display: grid; place-items: center; flex: none;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700;
}
@media (max-width: 640px) {
  .lb__howto-steps { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.6rem; }
}

/* 비용 안내 */
.cost { display: grid; gap: 0.7rem; margin: 0 0 2rem; }
.cost__item {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: 1rem; align-items: start;
  padding: 1.15rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.cost__no {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent-text);
  font-size: 0.85rem; font-weight: 700;
}
.cost__t {
  margin: 0.15rem 0 0.35rem; font-size: 1.02rem; font-weight: 650;
  color: var(--fg); word-break: keep-all; line-height: 1.45;
}
.cost__d { margin: 0; font-size: 0.93rem; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.cost__factors { padding-top: 0.4rem; }
.cost__factors-t {
  margin: 0 0 0.7rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--accent-text);
}
@media (max-width: 640px) {
  .cost__item { grid-template-columns: 1.8rem 1fr; gap: 0.8rem; padding: 1rem 1.1rem; }
  .cost__no { width: 1.8rem; height: 1.8rem; font-size: 0.78rem; }
  .cost__t { font-size: 0.97rem; }
}

/* ============================================================
   히어로 대표 사진
   ============================================================ */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 340px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.hero__text { min-width: 0; }
.hero__portrait {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px -34px rgba(28, 24, 20, 0.55);
}
.hero__portrait img {
  width: 100%;
  height: auto;          /* img 의 height 속성이 비율을 덮어쓰지 않게 */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.hero__portrait:hover img { transform: scale(1.03); }
.hero__portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.75rem 1rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 15, 11, 0.82), transparent);
}
.hero__grid .badges { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 260px; }
  .hero__portrait img { aspect-ratio: 1 / 1; }
}

/* ============================================================
   전화 · 문자
   ============================================================ */
.btn svg, .nav__cta svg { flex: none; }
.nav__cta--call { font-variant-numeric: tabular-nums; }
.nav__cta--call svg { width: 14px; height: 14px; }

.callto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.9rem;
}
.callto__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  transition: color 0.3s var(--ease);
}
.callto__num svg { width: 0.8em; height: 0.8em; }
.callto__num:hover { color: var(--accent); }
.callto__hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 60ch;
}

/* 휴대폰 하단 고정 바 */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .callbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--line);
  }
  .callbar__btn svg { width: 16px; height: 16px; }
  .callbar__btn--call { background: var(--accent); color: var(--ink); border-color: var(--accent); }
  body { padding-bottom: 4.5rem; }
  .toast { bottom: 5.5rem; }
}

/* ============================================================
   PC 안내 창 (전화·문자는 휴대폰에서)
   ============================================================ */
.pcguide {
  width: min(460px, 92vw);
  margin: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  text-align: left;
  position: relative;
}
.pcguide[open] { animation: lbIn 0.4s var(--ease); }
.pcguide::backdrop { background: rgba(28, 22, 16, 0.55); backdrop-filter: blur(6px); }

.pcguide__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pcguide__close svg { width: 14px; height: 14px; }
.pcguide__close:hover { border-color: var(--accent); color: var(--accent-text); }

.pcguide__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.7rem;
}
.pcguide__title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.pcguide__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pcguide__num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  cursor: copy;
}
.pcguide__num svg { width: 0.8em; height: 0.8em; }

.pcguide__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pcguide__actions .btn { flex: 1 1 auto; justify-content: center; }
.pcguide__hint {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.6;
}

.channels__note {
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.5;
  margin-top: 0.15rem;
}


/* ============================================================
   엘리트홈케어 ― 디자인 덮어쓰기
   구조(틀)는 styles.css 와 같고, 색·글꼴·모서리만 다르게 한다.
   styles.css 다음에 불러오므로 여기 규칙이 이긴다.
   ============================================================ */

:root {
  /* 차가운 회백색 바탕 + 깊은 청록 강조 (기존 사이트는 따뜻한 베이지 + 주황) */
  --bg:          #F6F8F9;
  --bg-2:        #EDF1F3;
  --bg-3:        #E982EC;            /* 쓰이지 않지만 값이 비면 안 되는 자리 */
  --surface:     #FFFFFF;
  --fg:          #11191F;
  --fg-soft:     #2B3942;
  --muted:       #5E6E79;
  --muted-2:     #8C9AA3;
  --accent:      #0E6E63;            /* 깊은 청록 */
  --accent-rgb:  14, 110, 99;
  --accent-text: #0B5A51;
  --ink:         #FFFFFF;            /* 청록 배경 위 글자는 흰색 */
  --line:        rgba(17, 25, 31, 0.14);
  --line-soft:   rgba(17, 25, 31, 0.08);

  /* 라틴 세리프 이탤릭을 쓰지 않는다 — 전부 고딕으로 간결하게 */
  --font-serif: var(--font-sans);
}
:root { --bg-3: #E2E8EB; }

/* 모서리를 각지게 — 기존 사이트는 둥글다 */
.btn, .nav__cta, .filter, .cat, .case__card, .lb, .howto, .cost__item,
.cat__spec, .area__group li, .channels__item, .field input, .field select,
.field textarea, .hero__portrait, .howto__step img, .lb__howto-steps img,
.case__visual, .grid__more .btn {
  border-radius: 4px !important;
}
.nav__cta, .callbar__btn, .btn--solid { border-radius: 4px !important; }
.howto__step figcaption b, .cost__no, .lb__howto-steps b,
.nav__dot, .pulse { border-radius: 50% !important; }

/* 그림자 대신 선으로 — 또렷한 인상 */
.case__card { box-shadow: none; border: 1px solid var(--line); }
.hero__portrait { box-shadow: none; border: 1px solid var(--line); }

/* 제목 — 기울임을 빼고 밑줄 강조로 바꾼다 */
.section__title em, .hero__title em, .contact__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-text);
  background-image: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.05em;
}

/* 글자를 조금 더 조이고 굵게 */
.section__title, .hero__title, .contact__title {
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* 상단 바 — 바탕과 구분되게 */
.nav { background: rgba(246, 248, 249, 0.92); border-bottom: 1px solid var(--line); }

/* 종이결 질감은 끄고 깔끔하게 */
.grain { display: none; }

/* 태그·칩 — 네모난 라벨 */
.tag {
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* 버튼 */
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-text); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }

/* BEFORE / AFTER 라벨 */
.ba__label { border-radius: 3px; letter-spacing: 0.06em; }

/* 하단 고정 바 */
.callbar { border-top: 1px solid var(--line); background: rgba(246, 248, 249, 0.96); }


/* ============================================================
   엘리트홈케어 ― 배치 바꾸기
   색만 다르면 같은 사이트로 보인다. 짜임새 자체를 바꾼다.
   ============================================================ */

/* ── 1. 상단 바: 가운데 정렬 → 왼쪽으로 몰고, 메뉴를 대문자 간격으로 ── */
.nav { justify-content: flex-start; gap: 2.5rem; }
.nav__links { gap: 1.5rem; margin-right: auto; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.nav__links a::after { display: none; }                 /* 밑줄 애니메이션 제거 */
.nav__links a:hover { color: var(--accent-text); }

/* ── 2. 히어로: 글 왼쪽 + 사진 오른쪽 → 사진 왼쪽 + 글 오른쪽 ── */
.hero__grid {
  grid-template-columns: clamp(220px, 26vw, 330px) minmax(0, 1fr);
  align-items: center;
}
.hero__portrait { grid-column: 1; grid-row: 1; }
.hero__text { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { grid-column: 1; grid-row: 2; }      /* 모바일은 글 먼저 */
  .hero__text { grid-column: 1; grid-row: 1; }
}

/* ── 3. 섹션 제목: 네모 라벨 → 왼쪽 세로선 ── */
.section__head { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.tag {
  background: none;
  color: var(--accent-text);
  padding: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── 4. 시공 사례: 3단 → 2단, 세로 카드 → 가로로 넓은 카드 ── */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.case__visual { aspect-ratio: 4 / 3; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

/* ── 5. 전후 사진: 작업 전으로 시작해 작업 후로 바뀜 (반반 나란히 아님) ── */
.ba--before::after { display: none; }                    /* 빗금 오버레이 제거 */
.ba--before { background: none; }
.ba__label { left: 0.6rem; right: auto; }                /* 한 번에 한 장만 보이므로 라벨은 왼쪽 */
.ba__label {
  position: absolute; bottom: 0.6rem;
  background: rgba(17, 25, 31, 0.78);
  color: #fff; padding: 0.2rem 0.45rem; font-size: 0.6rem;
}

/* ── 6. 공사 종류 필터: 알약 칩 → 네모 버튼 한 줄 ── */
.filters { gap: 0; border: 1px solid var(--line); background: var(--surface); padding: 0.35rem; }
.filter { border: 0; background: none; padding: 0.42rem 0.7rem; font-size: 0.78rem; }
.filter.is-active { background: var(--accent); color: #fff; }

/* ── 7. 시공 항목 타일: 카드 → 목록형 ── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; }
.cat {
  border: 0; border-top: 1px solid var(--line);
  padding: 0.85rem 0.9rem;
  border-radius: 0 !important;
}
.cat:hover { background: var(--bg-2); }

/* ── 8. 작업 방법 표: 2열 → 라벨을 위로 올린 블록 ── */
.cat__spec > div { grid-template-columns: 1fr; gap: 0.25rem; }
.cat__spec dt { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── 9. 수리 순서: 격자 → 가로로 흐르는 띠 ── */
.howto__steps { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.howto { border-left: 3px solid var(--accent); }

/* ── 10. 비용 안내: 번호 동그라미 → 왼쪽 선 ── */
.cost__item { grid-template-columns: 1fr; gap: 0.3rem; border-left: 3px solid var(--accent); }
.cost__no { display: none; }
