:root {
  --cream: #f7f5ec;
  --paper: #fffef8;
  --ink: #122f30;
  --muted: #48615c;
  --deep: #153d3c;
  --teal: #0c564b;
  --line: #d9e0d7;
  --gold: #f4cf65;
  --soft: #e7efe5;
  font: 100%/1.65 "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; word-break: keep-all; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 6.2vw, 5.8rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.3vw, 3.5rem); font-weight: 850; }
h3 { font-size: 1.4rem; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #915500; outline-offset: 4px; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shell { width: min(1180px, calc(100% - 84px)); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 3; background: var(--cream); border-bottom: 1px solid var(--line); }
.top { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.17rem; letter-spacing: -.045em; font-weight: 850; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; flex: none; object-fit: contain; }
.top nav { display: flex; align-items: center; gap: clamp(15px, 4vw, 46px); font-weight: 700; }
.top nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px; border-radius: 9px; background: var(--teal); color: white; font-weight: 800; text-align: center; }
.button:hover { background: #07473d; }
.button.compact { min-height: 42px; font-size: .94rem; padding-inline: 16px; white-space: nowrap; }
.button.yellow { background: var(--gold); color: var(--ink); }
.button.yellow:hover { background: #efbe41; }
.hero { min-height: 590px; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(25px, 5vw, 78px); align-items: center; padding-block: 54px 66px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 800; color: var(--teal); margin-bottom: 15px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.intro { max-width: 32ch; color: var(--muted); line-height: 1.65; margin-top: 22px; font-size: 1.14rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 27px; }
.text-link { color: var(--teal); font-weight: 760; }
.hero-photo { position: relative; height: clamp(350px, 43vw, 532px); border-radius: 22px; overflow: hidden; background: var(--soft); }
.hero-photo img { object-position: 50% 52%; }
.section { padding-block: clamp(52px, 7vw, 91px); }
.work { background: var(--soft); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.services article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.services p { color: var(--muted); margin-top: 10px; }
#case-title { font-size: clamp(2.45rem, 5.4vw, 4.5rem); }
.case-gallery { max-width: 920px; display: grid; gap: clamp(34px, 5vw, 62px); margin-top: clamp(23px, 4vw, 42px); }
.case-group h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 13px; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.comparison + .comparison { margin-top: clamp(10px, 2vw, 22px); }
.comparison figure, .case-extra { position: relative; overflow: hidden; border-radius: 12px; background: var(--soft); }
.comparison img { height: auto; }
.comparison figcaption, .case-extra figcaption { position: absolute; inset: 10px auto auto 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: .94rem; }
.case-group .after-label { background: var(--teal); color: white; }
.floor-comparison img { aspect-ratio: 6 / 5; object-position: center 10%; }
.trench-comparison img, .trench-after::after { transform: scale(1.07); transform-origin: 55% 50%; }
.trench-comparison figcaption { z-index: 1; }
.trench-before img { filter: contrast(1.045) saturate(1.12); }
.trench-after::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(50% 0%, 63.6% 0%, 66% 87.6%, 44.5% 87.2%);
  background: url("photos/drain-after-retouched.webp") center / 100% 100% no-repeat;
}
.case-extra { margin-top: clamp(10px, 2vw, 22px); }
.case-extra img { height: auto; aspect-ratio: 2 / 1; object-position: center 62%; }
.hall-overview img { aspect-ratio: 5 / 3; object-position: center 57%; }
.hall-before::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  mask-image: linear-gradient(transparent 14%, #000 22% 39%, transparent 62%);
  background: url("photos/hall-floor-before-retouched.webp") center / 100% 100% no-repeat;
}
.quote { background: var(--deep); color: var(--paper); }
.quote .eyebrow { color: var(--gold); }
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px 56px; align-items: start; }
.quote-intro { margin-top: 15px; color: #e1f0e8; font-size: 1.06rem; }
.call { font-weight: 760; text-decoration: underline; text-underline-offset: 5px; }
.quote-form { min-width: 0; padding: clamp(18px, 3.5vw, 30px); background: var(--paper); color: var(--ink); border-radius: 14px; }
.quote-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-weight: 760; }
.form-row label span { margin-left: 4px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.form-row :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #aabbb2; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.form-row textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-privacy { font-size: .9rem; }
.quote-consent { display: flex; gap: 8px; align-items: baseline; font-size: .94rem; margin: 4px 0 16px; cursor: pointer; }
.quote-consent input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--teal); transform: translateY(2px); }
.quote-form button { width: 100%; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.quote-form button:disabled { opacity: .7; cursor: wait; }
.form-note, #quote-status { color: var(--muted); font-size: .94rem; margin-top: 11px; }
.form-note a { font-weight: 760; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
#quote-status:empty { display: none; }
#quote-status[data-error="true"] { color: #902c37; }
.lead-page { padding-block: 36px 68px; }
.lead-page > a, .lead a { color: var(--teal); font-weight: 760; text-decoration: underline; }
.lead-page h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-block: 12px; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 22px; }
.lead { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; }
.lead h2 { font-size: 1.22rem; margin-bottom: 8px; }
.lead-note { white-space: pre-wrap; margin-top: 6px; }
.faq { max-width: 830px; }
.faq h2 { margin-bottom: 23px; }
details { border-top: 1px solid var(--line); padding-block: 14px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
details p { margin-top: 8px; color: var(--muted); }
footer { background: var(--soft); padding-bottom: 56px; }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-block: 25px; }
.foot span { color: var(--muted); font-size: .9rem; }
.floating-kakao {
  position: fixed; z-index: 4; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .55rem .9rem;
  border-radius: 1.5rem; background: #fee500; color: #211b07;
  font-weight: 800; box-shadow: 0 .25rem 1.05rem #102a3540;
}
.floating-kakao:hover { background: #f4d900; }
.floating-kakao-icon { display: inline-block; position: relative; width: 1.12rem; height: .9rem; border-radius: 50%; background: currentColor; }
.floating-kakao-icon::after { content: ""; position: absolute; width: .4rem; height: .4rem; bottom: -.1rem; left: .14rem; background: currentColor; transform: skew(-23deg); }
.mobile-call { display: none; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 34px); }
  .top { min-height: 61px; }
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 25px; padding-block: 36px 34px; }
  .intro { margin-top: 15px; }
  .actions { margin-top: 19px; gap: 12px 18px; }
  .hero-photo { height: clamp(275px, 72vw, 480px); border-radius: 15px; }
  .services, .quote-grid { grid-template-columns: 1fr; }
  .services { gap: 10px; }
  .services article { padding: 19px; }
  .comparison figcaption, .case-extra figcaption { inset: 7px auto auto 7px; max-width: calc(100% - 14px); padding: 4px 6px; font-size: .86rem; }
  footer { padding-bottom: calc(11rem + env(safe-area-inset-bottom)); }
  .floating-kakao { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .mobile-call { position: fixed; z-index: 4; bottom: 0; inset-inline: 0; display: block; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
  .mobile-call .button { min-height: 45px; width: 100%; }
}
@media (max-width: 430px) {
  .form-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
