/* ZIPchk — apple.com/kr 레이아웃 문법 + 집크 주황 */

:root {
  --text: #1d1d1f;
  --muted: #56565b;
  --faint: #76767c;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  /* 브랜드 색: 바꾸려면 아래 다섯 줄만 수정 */
  --brand: #d9431a;
  --brand-hover: #bf3a15;
  --brand-ink: #c23a14;
  --brand-soft: #fff1ec;
  --brand-on-dark: #ff7a52;
  --logo: #ff5a2e; /* 로고 괄호 색 */
  --nav-h: 58px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* 휴대폰 다크모드가 페이지 색을 강제로 뒤집지 않게 (meta color-scheme과 함께) */
:root { color-scheme: only light; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; background: #fff; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.018em;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.nw { white-space: nowrap; }
sup { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 2px; }

.eyebrow { font-size: 19px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
h2 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lead {
  margin-top: 20px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
  max-width: 680px;
}

/* ───── 내비게이션 ───── */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.gnav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.gnav-inner {
  max-width: 1100px; height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  position: relative; display: inline-flex; align-items: center;
  height: 32px; padding: 0 12px;
  font-family: "Pretendard Variable", Pretendard, var(--font);
  font-size: 22px; line-height: 1; letter-spacing: -0.045em; color: #1b1b1b; font-weight: 400;
}
.logo b { font-weight: 900; letter-spacing: -0.06em; margin-right: 0.04em; }
.logo::before, .logo::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  border: 3.5px solid var(--logo);
}
.logo::before { left: 0; border-right: 0; }
.logo::after { right: 0; border-left: 0; }
.foot-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0 4px; }
.foot-brand .logo { height: 28px; font-size: 19px; padding: 0 11px; }
.foot-brand .logo::before, .foot-brand .logo::after { width: 6px; border-width: 3px; }
.slogan { font-size: 12.5px; letter-spacing: .32em; color: var(--faint); }
.slogan span { letter-spacing: -0.01em; margin-left: .4em; }
.gnav-links { display: flex; margin-left: auto; }
.gnav-links a {
  display: block; padding: 0 13px;
  font-size: 16px; font-weight: 500; color: rgba(0, 0, 0, .82);
  line-height: var(--nav-h);
}
.gnav-links a:hover { color: var(--brand-ink); text-decoration: none; }
.gnav-cta {
  font-size: 16px; font-weight: 600;
  color: #fff; background: var(--brand);
  padding: 8px 18px; border-radius: 980px;
  transition: background .2s;
}
.gnav-cta:hover { background: var(--brand-hover); text-decoration: none; }
.gnav-toggle { display: none; }

.ribbon { background: var(--bg-alt); text-align: center; padding: 14px var(--gutter); }
.ribbon p { font-size: 17px; color: var(--text); letter-spacing: -0.01em; }

/* ───── 버튼 ───── */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-block; min-width: 132px; text-align: center;
  font-size: 18px; font-weight: 600;
  padding: 13px 26px; border-radius: 980px;
  border: 1.5px solid var(--brand);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-fill { background: var(--brand); color: #fff; }
.btn-fill:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-line { color: var(--brand-ink); }
.btn-line:hover { background: var(--brand); color: #fff; }

/* ───── 히어로 ───── */
.hero { text-align: center; padding: 80px var(--gutter) 48px; }
.hero .eyebrow { color: var(--brand-ink); }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-sub { margin-top: 20px; font-size: clamp(21px, 2.5vw, 30px); font-weight: 500; }

/* 평면도 */
.plan { max-width: 1040px; margin: 56px auto 0; }
.plan-stage, .plan-canvas { position: relative; }
.plan-stage svg { width: 100%; height: auto; overflow: visible; }
.pl-glass { fill: rgba(176, 206, 226, .38); stroke: rgba(120, 150, 172, .75); stroke-width: 1.4; }
.pl-mull { fill: none; stroke: rgba(120, 150, 172, .75); stroke-width: 1.4; }
.pl-label { font-family: var(--font); font-size: 21px; font-weight: 600; fill: #8b8b91; text-anchor: middle; letter-spacing: -0.02em; }
.plan figcaption { margin-top: 26px; font-size: 16px; color: var(--faint); }

.spot { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.spot .dot {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0, 0, 0, .28);
  transition: transform .35s var(--ease);
}
.spot .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--brand);
  animation: ping 2.6s var(--d, 0s) infinite var(--ease);
}
.spot .tag {
  position: absolute; top: -18px; left: 22px;
  white-space: nowrap;
  font-size: 15px; font-weight: 600; line-height: 1;
  color: #fff; background: rgba(29, 29, 31, .86);
  padding: 10px 14px; border-radius: 980px;
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.spot[data-side="left"] .tag { left: auto; right: 22px; }
.spot:hover .dot, .spot.on .dot { transform: scale(1.18); }
.spot:hover .tag, .spot.on .tag { background: var(--brand); }
@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.tip {
  position: absolute; z-index: 5; width: 300px;
  background: #fff; border-radius: 20px; overflow: hidden; text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2), 0 2px 8px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden;
  transform: translate(calc(-50% + var(--sx, 0px)), calc(-100% - 30px)) scale(.94);
  transform-origin: 50% 100%;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.tip.below { transform: translate(calc(-50% + var(--sx, 0px)), 30px) scale(.94); transform-origin: 50% 0; }
.tip.show { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), transform .45s var(--ease), left .45s var(--ease), top .45s var(--ease); transform: translate(calc(-50% + var(--sx, 0px)), calc(-100% - 30px)); }
.tip.below.show { transform: translate(calc(-50% + var(--sx, 0px)), 30px); }
.tip-img { position: relative; }
.tip.swap .tip-img img, .tip.swap .tip-body { animation: tipin .45s var(--ease); }
@keyframes tipin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tip-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ececef; }
.tip-badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); padding: 4px 9px; border-radius: 980px; }
.tip-body { padding: 16px 20px 20px; }
.tip-room { font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.tip h4 { margin-top: 2px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.tip-desc { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ───── 1일 1세대 (검정 섹션) ───── */
.statement { background: #000; color: #f5f5f7; padding: 130px 0; text-align: center; margin-top: 64px; }
.statement .eyebrow { color: var(--brand-on-dark); }
.statement h2 { font-size: clamp(46px, 8vw, 100px); letter-spacing: -0.045em; }
.statement .lead { color: #b4b4ba; margin: 28px auto 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 84px; border-top: 1px solid #333; }
.stats div { padding: 36px 8px 0; }
.stats div + div { border-left: 1px solid #333; }
.stats dt { font-size: 16px; color: #9a9aa0; }
.stats dd { font-size: clamp(44px, 5.4vw, 70px); font-weight: 700; letter-spacing: -0.04em; margin-top: 8px; line-height: 1; }
.stats small { font-size: .32em; font-weight: 600; letter-spacing: -0.01em; margin-left: 4px; color: #b4b4ba; }
.stats .hl dd { color: var(--brand-on-dark); }

/* ───── 타일 ───── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile {
  background: var(--bg-alt);
  min-height: 620px;
  padding: 60px 32px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.tile h3 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.14; }
.tile > p:not(.eyebrow) { margin-top: 14px; font-size: 20px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.tile .incl { margin-top: 16px; display: grid; gap: 8px; justify-items: center; }
.tile .incl li { font-size: 18px; color: var(--text); font-weight: 500; }
.tile .incl b { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 980px; margin-right: 8px; vertical-align: 2px; }
.tile .incl .basic b { background: var(--brand); color: #fff; }
.tile .incl .opt b { background: #e3e3e8; color: var(--text); }
.tile-art { width: min(360px, 94%); margin: auto 0 44px; transition: transform .8s var(--ease); }
.tile:hover .tile-art { transform: translateY(-6px) scale(1.02); }
.tile-art text { font-family: var(--font); }
.tile-art .b { fill: var(--brand); }
.tile-art .bs { stroke: var(--brand); }
.tile-art .bt { fill: var(--brand-soft); }
.tile-art .bd { fill: var(--brand-ink); }

/* ───── 점검 범위 ───── */
.scope { padding: 140px 0 120px; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.scope-grid li { padding: 30px 24px 32px 0; border-bottom: 1px solid var(--line); }
.scope-grid h4 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.scope-grid p { margin-top: 6px; font-size: 18px; color: var(--muted); }

/* ───── 사진 자리 ───── */
.ph {
  position: relative;
  background: repeating-linear-gradient(-45deg, #ececf0 0 12px, #f3f3f6 12px 24px);
  border-radius: 18px;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
}
.ph span { font-size: 15px; font-weight: 600; color: var(--faint); background: rgba(255, 255, 255, .88); padding: 6px 14px; border-radius: 980px; text-align: center; }

/* ───── 현장 기록 갤러리 ───── */
.field { background: var(--bg-alt); padding: 130px 0 110px; overflow: hidden; }
.field-note { margin-top: 10px; font-size: 15px; color: var(--faint); }
.gallery {
  --edge: max(var(--gutter), calc((100vw - 1000px) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 380px);
  gap: 20px; margin-top: 52px;
  padding: 4px var(--edge) 24px;
  scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.dragging * { pointer-events: none; }
.shot {
  scroll-snap-align: start;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e9ec; }
.shot figcaption { padding: 18px 22px 24px; }
.shot .room { display: block; font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.shot .what { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; }
.gbtn {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #e3e3e8; color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, opacity .25s, transform .25s var(--ease);
}
.gbtn:hover { background: #d5d5db; }
.gbtn:active { transform: scale(.94); }
.gbtn:disabled { opacity: .35; cursor: default; }
.gbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───── 가격 ───── */
.price { padding: 140px 0; text-align: center; }
.price .lead { margin-left: auto; margin-right: auto; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.card {
  background: var(--bg-alt); border-radius: 24px;
  padding: 42px 18px 38px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.card .size { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.card .pyeong { font-size: 17px; color: var(--muted); margin-top: 2px; }
.card .amount { margin-top: 28px; font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.card .amount span { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-left: 2px; }
.price-foot { margin: 44px auto 0; display: grid; gap: 10px; font-size: 18px; color: var(--muted); max-width: 760px; }
.price-foot strong { color: var(--text); font-weight: 700; }

/* ───── 진행 절차 ───── */
.process { background: var(--bg-alt); padding: 140px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.steps li { background: #fff; border-radius: 24px; padding: 32px 26px 36px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .07); }
.steps .num { font-size: 16px; font-weight: 800; color: var(--brand-ink); }
.steps h4 { margin-top: 30px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.steps p { margin-top: 10px; font-size: 17px; color: var(--muted); line-height: 1.6; }

/* ───── 대표 소개 ───── */
.about { padding: 140px 0; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.ph-portrait { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--nav-h) + 24px); }
.cv { margin-top: 48px; }
.cv h4 { font-size: 15px; font-weight: 700; color: var(--faint); margin-top: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cv h4:first-child { margin-top: 0; }
.cv li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid #ececf0; font-size: 18px; }
.cv time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 17px; padding-top: 1px; }
.cv span { font-weight: 600; }
.cv em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
.certs { margin-top: 44px; }
.certs h4 { font-size: 15px; font-weight: 700; color: var(--faint); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cert-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; margin-top: 16px; }
.cert { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.cert img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cert:hover img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .12); }
.cert-cap { display: block; margin-top: 8px; font-size: 13px; color: var(--faint); line-height: 1.35; }
.cert-cap b { display: block; font-size: 15px; color: var(--text); font-weight: 700; }
.tile .incl .note { font-size: 15px; color: var(--muted); }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .82);
  display: grid; place-items: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: lbin .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(760px, 100%); max-height: 100%; border-radius: 8px; background: #fff; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.certs p { margin-top: 12px; font-size: 15px; color: var(--faint); }

/* ───── FAQ ───── */
.faq { background: var(--bg-alt); padding: 140px 0; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 0; font-size: 23px; font-weight: 700; letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 30px; font-size: 19px; color: var(--muted); line-height: 1.65; }
.faq details ol { list-style: decimal; padding-left: 1.2em; display: grid; gap: 8px; }
.mini-price { margin-top: 16px; border-collapse: collapse; width: 100%; max-width: 480px; font-size: 18px; }
.mini-price th, .mini-price td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.mini-price td { text-align: right; color: var(--text); font-weight: 700; }

/* ───── 문의 ───── */
.contact { padding: 160px 0; text-align: center; }
.contact h2 { font-size: clamp(38px, 5.8vw, 66px); }
.contact .lead { margin: 22px auto 0; }
.phone { margin-top: 46px; display: grid; gap: 8px; justify-items: center; }
.phone .num { font-size: clamp(40px, 6vw, 66px); font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.phone span:not(.num) { font-size: 17px; color: var(--muted); }
.mail { margin-top: 14px; font-size: 22px; font-weight: 600; color: var(--brand-ink); }

/* 평면도 안내: 마우스 / 터치 */
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* ───── 맨 위로 ───── */
.to-top {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .12);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s, background .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s; }
.to-top:hover { background: var(--brand-hover); }
.to-top svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* 현장 기록 게이지 */
.gallery-nav { align-items: center; }
.gallery-gauge { display: flex; gap: 6px; margin-right: auto; flex-wrap: wrap; }
.gseg { width: 30px; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.gseg i { display: block; height: 4px; border-radius: 4px; background: #d5d5db; position: relative; overflow: hidden; }
.gseg b { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.gseg.done b { transform: scaleX(1); }
.gseg.on { width: 54px; }
.gseg { transition: width .4s var(--ease); }
.gseg.on b { animation: gbar var(--t, 2350ms) linear forwards; }
.gallery-gauge.paused .gseg.on b { animation-play-state: paused; }
@keyframes gbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .gseg.on b { animation: none; transform: scaleX(1); } }

/* 카카오톡 오픈채팅 */
.btn-kakao { position: relative; background: #fee500; border-color: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; border-color: #f5dc00; }
.qr-pop {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 5;
  width: 200px; padding: 14px 14px 12px; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  pointer-events: none;
}
.qr-pop img { width: 100%; aspect-ratio: 1; padding: 6px; background: #fff; }
.qr-pop em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.btn-kakao:hover .qr-pop, .btn-kakao:focus-visible .qr-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s var(--ease), transform .25s var(--ease); }
@media (hover: none) { .qr-pop { display: none; } }
.to-top-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  white-space: nowrap; font-size: 15px; font-weight: 600;
  color: #fff; background: rgba(29, 29, 31, .9);
  padding: 8px 12px; border-radius: 10px;
  opacity: 0; transform: translate(6px, -50%); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top:hover .to-top-tip, .to-top:focus-visible .to-top-tip { opacity: 1; transform: translate(0, -50%); }
.to-top.pop { animation: pop .42s var(--ease) forwards; pointer-events: none; }
.to-top.pop .to-top-tip { opacity: 0; }
@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}
.burst {
  position: fixed; z-index: 61; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--brand); pointer-events: none;
  animation: burst .6s var(--ease) forwards;
}
@keyframes burst {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--bx), var(--by)) scale(.2); opacity: 0; }
}
@media (hover: none) { .to-top-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .to-top.pop { animation: none; opacity: 0; } .burst { display: none; } }

/* ───── 푸터 ───── */
.foot { background: var(--bg-alt); color: var(--muted); font-size: 14.5px; line-height: 1.5; padding: 24px 0 26px; }
.footnotes { list-style: decimal; padding: 0 0 18px 1.4em; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.foot-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 0; }
.foot-dir h5 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.foot-dir a, .foot-dir span { display: block; color: var(--muted); margin-bottom: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-more { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.foot-more a { color: var(--brand-ink); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; }
.biz span + span::before { content: "|"; margin: 0 9px; color: #c4c4ca; }

/* ───── 스크롤 등장 ───── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
.plan.reveal { transform: translateY(40px) scale(.96); }
.plan.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .plan.reveal { opacity: 1; transform: none; transition: none; }
  .spot .dot::after { animation: none; opacity: 0; }
}

/* ───── 반응형 ───── */
@media (max-width: 1068px) {
  .price-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { margin-top: 30px; border-top: 1px solid #333; }
}
@media (max-width: 1000px) {
  :root { --gutter: 20px; }
  .gnav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; padding: 16px 32px 32px;
    background: #fbfbfd;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .gnav.open .gnav-links { opacity: 1; transform: none; pointer-events: auto; }
  .gnav-links a { font-size: 28px; font-weight: 700; line-height: 1.2; padding: 12px 0; color: var(--text); }
  .gnav-cta { margin-left: auto; }
  .gnav-toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .gnav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .gnav.open .gnav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .gnav.open .gnav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
@media (max-width: 833px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 560px; padding-top: 52px; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .ph-portrait { position: static; max-width: 380px; }
  .pl-label { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --nav-h: 56px; }
  .gnav-cta { font-size: 15px; padding: 7px 14px; }
  .ribbon p { font-size: 16px; }
  .hero { padding-top: 52px; }
  .plan { margin: 36px calc(var(--gutter) * -1) 0; }
  .plan figcaption { padding: 0 var(--gutter); font-size: 15px; }
  .spot .tag { display: none; }
  .spot::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; }
  .spot .dot { left: -8px; top: -8px; width: 16px; height: 16px; box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0, 0, 0, .28); }
  /* 모바일: 툴팁 대신 평면도 아래 고정 카드 */
  .tip {
    position: relative; left: auto !important; top: auto !important;
    width: auto; margin: 14px var(--gutter) 0;
    display: grid; grid-template-columns: 44% 1fr; align-items: stretch;
    opacity: 1; visibility: visible; transform: none !important;
    border-radius: 18px; box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
  }
  .tip-img img { height: 100%; aspect-ratio: auto; min-height: 128px; }
  .tip-badge { left: 8px; top: 8px; font-size: 11px; padding: 3px 7px; }
  .tip-body { padding: 14px 16px 16px; }
  .tip-room { font-size: 14px; }
  .tip h4 { font-size: 18px; }
  .tip-desc { font-size: 14.5px; line-height: 1.5; }
  .statement { padding: 96px 0; }
  .stats dt { font-size: 15px; }
  .price-grid, .steps { grid-template-columns: 1fr; }
  .steps li { padding: 24px 22px 26px; }
  .steps h4 { margin-top: 12px; font-size: 22px; }
  .tile { min-height: 0; padding: 48px 20px 0; }
  .tile h3 { font-size: 30px; }
  .tile > p:not(.eyebrow) { font-size: 18px; }
  .tile .incl li { font-size: 17px; }
  .tile-art { margin: 28px 0 32px; }
  .card { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 26px 24px; }
  .card .amount { grid-row: 1 / 3; grid-column: 2; margin-top: 0; font-size: 40px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope, .price, .process, .about, .faq { padding: 100px 0; }
  .field { padding: 100px 0 90px; }
  .gallery { grid-auto-columns: 82%; }
  .gallery-nav .gbtn { display: none; }
  .gallery-gauge { gap: 4px; margin: 4px auto 0; }
  .gseg { width: 22px; }
  .gseg.on { width: 40px; }
  .contact { padding: 110px 0; }
  .contact .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
  .cert-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .cert-row::-webkit-scrollbar { display: none; }
  .cert { scroll-snap-align: start; }
  .faq summary { font-size: 20px; }
  .faq details > div { font-size: 18px; }
  .foot-dir { grid-template-columns: 1fr; gap: 0; }
  .foot-dir div { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .foot-legal { flex-direction: column; }
  .biz { display: grid; gap: 2px; }
  .biz span + span::before { content: none; }
}

/* ───── 대표 사진 ───── */
.portrait { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: 18px; overflow: hidden; background: #fff; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ───── 점검 장비 ───── */
.tools { background: var(--bg-alt); padding: 130px 0 120px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin-top: 56px; }
.tool-grid .ph { aspect-ratio: 4 / 3; background-color: #fff; }
.tool-grid h4 { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tool-grid p { margin-top: 4px; font-size: 17px; color: var(--muted); }

/* ───── 리포트 샘플 (제공 자료 타일) ───── */
.report-stack { position: relative; width: min(360px, 92%); height: 330px; margin: auto 0 36px; }
.report-stack .rp { position: absolute; top: 0; width: 54%; }
.report-stack .rp img { box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
.report-stack .rp-1 { left: 4%; transform: rotate(-5deg); z-index: 1; }
.report-stack .rp-2 { right: 4%; top: 18px; transform: rotate(5deg); }
.rp-tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--brand-ink); background: #fff; padding: 6px 12px; border-radius: 980px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); z-index: 2; }

@media (max-width: 833px) {
  .portrait { position: static; max-width: 380px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tools { padding: 100px 0 90px; }
  .tool-grid h4 { font-size: 19px; }
  .tool-grid p { font-size: 15px; }
  .report-stack { height: 290px; }
}

/* 상단 띠 강조 */
.ribbon b { font-weight: 800; color: var(--brand-ink); }

/* 크게 보기: 돋보기 커서 대신 확대 아이콘 */
.cert { cursor: pointer; position: relative; }
.cert::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070C0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cert:hover::after, .cert:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .cert::after { opacity: 1; transform: none; width: 28px; height: 28px; background-size: 15px; } }
.lightbox img { max-width: min(500px, 100%); max-height: 66vh; width: auto; height: auto; }

/* 이메일 복사 */
.copy-mail.done { background: var(--brand); color: #fff; }

/* ───── 1일 1세대 문단: PC에서 두 줄 ───── */
.statement .lead-2 { max-width: 980px; }
@media (max-width: 1068px) { .pc-br { display: none; } .statement .lead-2 { max-width: 680px; } }

/* ───── 점검 장비 안내 ───── */
.tool-note { margin-top: 28px; font-size: 16px; color: var(--muted); text-align: center; }
.tool-note::before { content: "※ "; }

/* ───── 메뉴: 지금 보고 있는 구역 표시 ───── */
.gnav-links a.on { color: var(--brand-ink); font-weight: 700; }

/* ───── 이메일 복사: 오른쪽 위로 튀는 물방울 ───── */
.copy-mail { position: relative; }
.splash {
  position: fixed; z-index: 61; pointer-events: none;
  width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 35% 30%, #ffd2c2 0 18%, var(--c) 45%);
  animation: splash var(--t) cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes splash {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  60% { transform: translate(var(--bx), var(--by)) scale(1); opacity: 1; }
  100% { transform: translate(calc(var(--bx) * 1.12), calc(var(--by) + 22px)) scale(.5); opacity: 0; }
}
.splash-ring {
  position: fixed; z-index: 61; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid var(--brand); animation: splash-ring .5s ease-out forwards;
}
@keyframes splash-ring { to { transform: scale(3.4); opacity: 0; border-width: 1px; } }
@media (prefers-reduced-motion: reduce) { .splash, .splash-ring { display: none; } }

/* ───── 점검 장비 사진 ───── */
.tool-ph { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 18px; overflow: hidden; }
.tool-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .8s ease, transform 3s ease; }
.tool-ph[data-swap] img { opacity: 0; transform: scale(1.03); }
.tool-ph[data-swap] img.on { opacity: 1; transform: none; }
.tool-ph:not([data-swap]) img { transition: transform .5s var(--ease); }
.tool-grid li:hover .tool-ph:not([data-swap]) img { transform: scale(1.04); }
.swap-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.swap-dots b { width: 7px; height: 7px; border-radius: 50%; background: #d2d2d7; transition: background .4s, width .4s; }
.swap-dots b.on { width: 18px; border-radius: 4px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .tool-ph img { transition: none; } }
