/* 영웅자동문 — autodoor.hero-online.co.kr
 *
 * 아트 디렉션: «유리와 강철 위의 센서 빛 한 줄».
 *   바탕은 따뜻한 회백(종이), 글은 먹색, 강조는 자동문 센서의 주황 하나.
 *   강조색은 단추 · 선 · 점에만 쓰고 면으로는 전화 띠 하나만.
 *   큰 진한 면은 반전 구역(#flip) · 연락(#contact) · 바닥 셋뿐.
 * 인라인 style="" 은 CSP 에 막힙니다 — 전부 여기에.
 */

:root {
  --paper:   #f4f3ef;
  --paper-2: #ebe9e3;
  --white:   #ffffff;
  --ink:     #14171c;
  --ink-2:   #2b3038;
  --mute:    #646c77;
  --mute-2:  #9aa1ab;
  --line:    rgba(20, 23, 28, .12);
  --line-2:  rgba(20, 23, 28, .07);
  --accent:  #ff5a1f;
  --accent-d:#d9430c;
  --accent-t:#fff1ea;
  --glass:   #d8e6ee;
  --steel:   #8a939e;
  --r:       10px;
  --wrap:    1200px;
  --gut:     clamp(18px, 4vw, 40px);
  --sec:     clamp(76px, 10vw, 140px);
  --head-h:  68px;
  --ease:    cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
svg { flex: none; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.number { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(760px + var(--gut) * 2); }

/* ── 단추 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(255, 90, 31, .7); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: var(--white); margin-top: 26px; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-sms { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn-sms:hover { border-color: #fff; }
.btn-wide { width: 100%; }

/* ── 머리 ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 239, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand-sub { font-size: 11.5px; color: var(--mute); font-weight: 500; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2); border-radius: 8px; }
.nav a:hover { background: rgba(20, 23, 28, .05); color: var(--ink); }
.nav .nav-call { margin-left: 10px; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; padding: 10px 16px; font-variant-numeric: tabular-nums; }
.nav .nav-call:hover { background: var(--accent); color: #fff; }
.nav-call svg, .head-call svg { width: 16px; height: 16px; fill: currentColor; }
.head-call, .nav-toggle { display: none; }

@media (max-width: 1020px) {
  .head-call {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 14px; border-radius: 8px;
    background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none;
  }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav .nav-call { margin: 14px 0 0; justify-content: center; border-radius: var(--r); border: 0; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ── 첫 화면 ───────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: min(calc(100svh - var(--head-h)), 860px);
}
.hero-copy {
  padding: clamp(48px, 8vw, 110px) clamp(24px, 5vw, 72px) clamp(56px, 7vw, 96px) max(var(--gut), calc((100vw - var(--wrap)) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--mute); margin-bottom: 26px; }
.hero-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 90, 31, .15); }
.hero h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.18; }
.hero-kw { display: block; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: var(--accent-d); letter-spacing: -0.01em; margin-bottom: 14px; }
.hero-line { display: block; font-size: clamp(36px, 5vw, 62px); }
.hero-line em { font-style: normal; color: var(--mute-2); }
.hero-lead { margin-top: 26px; max-width: 30em; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .btn-primary { font-size: 18px; padding: 0 28px; min-height: 58px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--mute); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 14px; height: 1.5px; background: var(--accent); }

.hero-media { position: relative; min-height: 420px; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 28, 0) 55%, rgba(20, 23, 28, .35)); pointer-events: none; }
.hero-cap { position: absolute; right: 18px; top: 18px; z-index: 2; font-size: 12px; font-weight: 600; color: #fff; background: rgba(20, 23, 28, .55); padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px); }

/* 시연 — 센서가 사람을 보면 문이 열립니다(9초 한 바퀴, 끝 그림은 닫힌 문) */
.demo {
  position: absolute; z-index: 3; left: clamp(-60px, -4vw, -24px); bottom: clamp(24px, 5vw, 56px);
  width: min(330px, 78%);
  background: var(--white); border-radius: 14px; padding: 16px 16px 14px;
  box-shadow: 0 30px 60px -28px rgba(20, 23, 28, .55), 0 0 0 1px var(--line-2);
}
.demo svg { width: 100%; height: auto; }
.demo-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--mute); line-height: 1.4; }
.demo-cap b { color: var(--ink); font-weight: 700; }
.dm-leaf-l, .dm-leaf-r, .dm-beam, .dm-man, .dm-led { transform-box: fill-box; }
.dm-man { opacity: 0; }   /* 움직임이 없으면 닫힌 문만 — 사람이 문 한가운데 서 있는 그림이 되지 않게 */
.js-motion .dm-leaf-l { animation: dm-l 9s var(--ease) infinite; }
.js-motion .dm-leaf-r { animation: dm-r 9s var(--ease) infinite; }
.js-motion .dm-beam   { animation: dm-beam 9s linear infinite; }
.js-motion .dm-led    { animation: dm-led 9s linear infinite; }
.js-motion .dm-man    { animation: dm-man 9s var(--ease) infinite; }
@keyframes dm-man  { 0% { transform: translateX(-120px); opacity: 0; } 8% { opacity: 1; } 30% { transform: translateX(0); } 52% { transform: translateX(0); } 70% { transform: translateX(120px); opacity: 1; } 78%, 100% { transform: translateX(120px); opacity: 0; } }
@keyframes dm-beam { 0%, 20% { opacity: .15; } 24%, 60% { opacity: 1; } 66%, 100% { opacity: .15; } }
@keyframes dm-led  { 0%, 20% { fill: #9aa1ab; } 24%, 60% { fill: #ff5a1f; } 66%, 100% { fill: #9aa1ab; } }
@keyframes dm-l    { 0%, 26% { transform: translateX(0); } 38%, 62% { transform: translateX(-46px); } 76%, 100% { transform: translateX(0); } }
@keyframes dm-r    { 0%, 26% { transform: translateX(0); } 38%, 62% { transform: translateX(46px); } 76%, 100% { transform: translateX(0); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 5 / 4; }
  .hero-copy { padding: 34px var(--gut) 56px; }
  .demo { left: 12px; bottom: 12px; width: min(214px, 56%); padding: 9px 9px 7px; border-radius: 12px; }
  .demo-cap { font-size: 11.5px; }
  .hero-eyebrow { margin-bottom: 18px; }
}
@media (max-width: 520px) {
  .hero-media { aspect-ratio: 4 / 3.4; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ── 공통 구역 ─────────────────────────────────────── */
.section { padding: var(--sec) 0; }
.section-alt { background: var(--white); }
.section-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.22; letter-spacing: -0.035em; }
.section-lead { margin-top: 18px; color: var(--mute); max-width: 34em; font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: calc(var(--head-h) + 32px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
}
.kicker { font-size: 14px; font-weight: 700; color: var(--accent-d); margin-bottom: 14px; letter-spacing: 0; }

/* 사실 띠 */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; font-size: 15px; color: var(--ink-2); border-left: 1px solid var(--line); line-height: 1.5; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts li b { display: block; font-size: 16.5px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--line-2); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(odd) { padding-left: 0; }
}

/* ── 증상으로 찾기(#check) ─────────────────────────── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 22px; }
.tab {
  font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer;
  padding: 11px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel[hidden] { display: none; }
.sym { border-top: 1px solid var(--ink); }
.sym li { border-bottom: 1px solid var(--line); }
.sym a {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 28px; gap: 18px; align-items: center;
  padding: 20px 4px; text-decoration: none; transition: background-color .2s, padding .25s var(--ease);
}
.sym a:hover { background: var(--white); padding-left: 14px; }
.sym-say { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.sym-say::before { content: "“"; color: var(--accent); margin-right: 2px; }
.sym-say::after { content: "”"; color: var(--accent); margin-left: 1px; }
.sym-why { font-size: 15px; color: var(--mute); line-height: 1.6; }
.sym-why b { color: var(--ink-2); font-weight: 600; }
.sym svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; transition: transform .25s var(--ease); }
.sym a:hover svg { transform: translateX(4px); stroke: var(--accent); }
.check-photo { margin-top: 30px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.check-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-note { margin-top: 18px; font-size: 14.5px; color: var(--mute); }
@media (max-width: 640px) {
  .sym a { grid-template-columns: 1fr 22px; gap: 4px 12px; padding: 16px 0; }
  .sym-say { grid-column: 1; }
  .sym-why { grid-column: 1; grid-row: 2; }
  .sym svg { grid-column: 2; grid-row: 1 / span 2; }
  .check-photo { display: none; }
}

/* ── 반전(#flip) — 화면에서 가장 큰 제목 ─────────────── */
.flip { background: var(--ink); color: #fff; padding: var(--sec) 0; position: relative; overflow: hidden; }
.flip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: .9; }
.flip-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.flip-q { font-size: clamp(18px, 1.7vw, 21px); color: var(--mute-2); font-weight: 600; margin-bottom: 18px; }
.flip h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 700; line-height: 1.12; letter-spacing: -0.045em; }
.flip h2 em { font-style: normal; color: var(--accent); }
.flip-lead { margin-top: 26px; color: #c7ccd3; max-width: 32em; font-size: 17.5px; }
.flip-photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.flip-photo img { width: 100%; height: 100%; object-fit: cover; }
.flip-photo figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .92); padding: 8px 12px; border-radius: 8px; line-height: 1.45; }
.flip-rows { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .16); }
.flip-rows a { display: block; padding: 26px 26px 6px 0; text-decoration: none; border-right: 1px solid rgba(255, 255, 255, .1); margin-right: 26px; transition: color .2s; }
.flip-rows a:last-child { border-right: 0; margin-right: 0; }
.flip-part { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.flip-part::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); }
.flip-rows h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.4; }
.flip-rows p { margin-top: 8px; font-size: 15px; color: #aeb4bd; line-height: 1.65; }
.flip-go { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.flip-rows a:hover .flip-go { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-photo { aspect-ratio: 16 / 10; }
  .flip-rows { grid-template-columns: 1fr; }
  .flip-rows a { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
}

/* ── 전화 띠 ───────────────────────────────────────── */
.callband { background: var(--accent); color: #fff; }
.callband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.callband p { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.callband p span { display: block; font-size: 15px; font-weight: 500; opacity: .9; letter-spacing: -0.01em; margin-top: 2px; }
.callband .btn { background: #fff; color: var(--ink); font-size: 18px; min-height: 56px; }
.callband .btn:hover { background: var(--ink); color: #fff; }
.callband-ink { background: var(--ink-2); }
.callband-ink .btn { background: var(--accent); color: #fff; }
.callband-ink .btn:hover { background: #fff; color: var(--ink); }

/* ── 하는 일(#service) — 줄을 고르면 왼쪽 사진이 바뀜 ──── */
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.svc-stage { position: sticky; top: calc(var(--head-h) + 28px); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.svc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.svc-stage img.is-on { opacity: 1; transform: scale(1); }
.svc-stage-cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 99px; }
.svc-list { border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 26px 0; text-decoration: none; }
.svc-name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; transition: color .2s; }
.svc-desc { grid-column: 1; font-size: 16px; color: var(--mute); line-height: 1.65; max-width: 30em; }
.svc-parts { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc-parts span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.svc-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.svc-arrow svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
.svc a:hover .svc-name, .svc.is-on .svc-name { color: var(--accent-d); }
.svc a:hover .svc-arrow, .svc.is-on .svc-arrow { background: var(--ink); border-color: var(--ink); transform: rotate(-45deg); }
.svc a:hover .svc-arrow svg, .svc.is-on .svc-arrow svg { stroke: #fff; }
.svc-thumb { display: none; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .svc a { grid-template-columns: 96px 1fr; gap: 4px 16px; padding: 20px 0; }
  .svc-thumb { display: block; grid-column: 1; grid-row: 1 / span 3; width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
  .svc-name, .svc-desc, .svc-parts { grid-column: 2; }
  .svc-arrow { display: none; }
  .svc-desc { font-size: 15px; }
}

/* ── 나눠 부르면 vs 한 팀(#why) ─────────────────────── */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.vs-col { padding: clamp(24px, 3vw, 36px); }
.vs-bad { background: var(--paper); }
.vs-good { background: var(--ink); color: #fff; }
.vs-head { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--mute); }
.vs-good .vs-head { color: var(--accent); }
.vs-col li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.6; }
.vs-good li { border-top-color: rgba(255, 255, 255, .1); }
.vs-col li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 1.5px; background: var(--mute-2); }
.vs-good li::before { background: var(--accent); width: 14px; }
.vs-bad li { color: var(--mute); }
@media (max-width: 700px) { .versus { grid-template-columns: 1fr; } }

/* ── 현장(#field) — 가로로 넘기기 ───────────────────── */
.field-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.snap-ctl { display: flex; gap: 8px; }
.snap-ctl button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.snap-ctl button:hover { background: var(--ink); border-color: var(--ink); }
.snap-ctl button:hover svg { stroke: #fff; }
.snap-ctl svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; }
.snap {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 28vw, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  padding: 34px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 8px;
  scrollbar-width: none;
}
.snap::-webkit-scrollbar { display: none; }
.snap figure { scroll-snap-align: start; }
.snap .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.snap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.snap figure:hover img { transform: scale(1.04); }
.snap figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.snap figcaption b { display: block; font-size: 13px; color: var(--accent-d); font-weight: 700; margin-bottom: 2px; }
.snap-bar { height: 2px; background: var(--line); margin-top: 24px; border-radius: 2px; overflow: hidden; }
.snap-bar i { display: block; height: 100%; width: 20%; background: var(--ink); transform-origin: left; transition: width .15s linear; }
@media (max-width: 640px) { .snap { grid-auto-columns: 74vw; } .snap-ctl { display: none; } }

/* ── 진행(#process) — 쌓이는 단계 ───────────────────── */
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px 26px; position: sticky; top: calc(var(--head-h) + 24px); }
.steps li:nth-child(2) { top: calc(var(--head-h) + 36px); }
.steps li:nth-child(3) { top: calc(var(--head-h) + 48px); }
.steps li:nth-child(4) { top: calc(var(--head-h) + 60px); background: var(--white); }
.section:not(.section-alt) .steps li { background: var(--white); }
.step-no { font-size: 44px; font-weight: 300; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.steps h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.4; }
.steps p { margin-top: 6px; font-size: 15.5px; color: var(--mute); line-height: 1.7; }
@media (max-width: 640px) { .steps li { grid-template-columns: 44px 1fr; padding: 20px; position: static; } .step-no { font-size: 34px; } }

/* ── 문자 견적 만들기(#quote) ───────────────────────── */
.quote-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 4vw, 56px); align-items: start; }
.q-step + .q-step { margin-top: 28px; }
.q-label { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.q-label small { font-size: 13px; color: var(--mute); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; cursor: pointer; padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-input { width: 100%; max-width: 380px; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.q-input:focus { outline: none; border-color: var(--ink); }
.q-out { position: sticky; top: calc(var(--head-h) + 24px); background: var(--ink); color: #fff; border-radius: 14px; padding: 26px; }
.q-out-head { font-size: 14px; color: var(--mute-2); font-weight: 600; display: flex; justify-content: space-between; }
.q-msg { margin: 14px 0 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px 12px 12px 4px; padding: 16px 18px; font-size: 15.5px; line-height: 1.75; white-space: pre-line; min-height: 128px; }
.q-note { font-size: 13px; color: var(--mute-2); margin-top: 12px; line-height: 1.6; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .q-out { position: static; } }

/* ── 출장 지역(#area) ──────────────────────────────── */
.area-head-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.area-head-row .section-lead { margin-top: 0; }
@media (max-width: 900px) { .area-head-row { grid-template-columns: 1fr; gap: 14px; } }
.areachips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.areachips a { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.areachips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.regionlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: 14.5px; color: var(--mute); }
.regionlinks a { text-decoration: none; }
.regionlinks a:hover { color: var(--ink); text-decoration: underline; }

/* ── 비용(#cost) ──────────────────────────────────── */
.costlist { margin-top: 40px; border-top: 1px solid var(--ink); }
.costlist > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.costlist dt { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.costlist dd { margin: 0; font-size: 15.5px; color: var(--mute); line-height: 1.7; }
@media (max-width: 640px) { .costlist > div { grid-template-columns: 1fr; } }

/* ── 자주 묻는 질문(#faq) ──────────────────────────── */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.5; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2314171c' stroke-width='1.6'/%3E%3C/svg%3E"); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-t); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16px; line-height: 1.8; }

/* ── 연락(#contact) ───────────────────────────────── */
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-lead { color: #b8bec6; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.shoot-tips { margin-top: 32px; display: grid; gap: 2px; }
.shoot-tips li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 16px; color: #d4d8de; display: flex; gap: 14px; align-items: baseline; }
.shoot-tips li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.shoot-tips b { color: #fff; }
.callbox { background: #1e232a; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; }
.callbox-label { font-size: 14px; color: var(--mute-2); font-weight: 600; }
.callbox-num { font-size: clamp(32px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; line-height: 1.15; margin-bottom: 10px; }
.callbox-num:hover { color: var(--accent); }
.callbox-note { font-size: 13.5px; color: var(--mute-2); line-height: 1.6; margin-top: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── 키워드 · 지역 쪽 ─────────────────────────────── */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--mute); margin-bottom: 28px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span[aria-hidden] { color: var(--mute-2); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; line-height: 1.15; letter-spacing: -0.04em; }
.page-hero .lead-intro { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 32em; line-height: 1.75; }
.page-hero .hero-actions { margin-top: 30px; }
.page-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-photo figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; background: rgba(255, 255, 255, .92); padding: 5px 10px; border-radius: 99px; font-weight: 600; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-photo { aspect-ratio: 16 / 10; order: -1; } }

.kwchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.kwchips a { padding: 9px 15px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.kwchips a:hover, .kwchips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

.qa { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.qa article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 10px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.qa h2 { font-size: clamp(20px, 2vw, 25px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.qa p { font-size: 16.5px; color: var(--ink-2); line-height: 1.85; }
@media (max-width: 760px) { .qa article { grid-template-columns: 1fr; } }

.spec { margin-top: 48px; }
.spec h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; padding-left: 16px; border-left: 3px solid var(--accent); line-height: 1.4; }
.spec p { color: var(--ink-2); margin-top: 12px; }
.story-lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); line-height: 1.8; }
.howto { margin: 28px 0 0; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; }
.section-alt .howto { background: var(--paper); }
.howto img { width: 100%; }
.howto figcaption { font-size: 13.5px; color: var(--mute); margin-top: 8px; padding: 0 4px; }

.triage { margin-top: 40px; }
.triage h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.tri-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tri-table th, .tri-table td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); line-height: 1.65; }
.tri-table thead th { font-size: 13px; color: var(--mute); font-weight: 600; border-bottom: 1px solid var(--ink); }
.tri-table tbody th { font-weight: 700; white-space: nowrap; }
.tri-now tbody th, .tri-now th { color: var(--accent-d); }
.tri-call { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--accent-d); text-decoration: none; }

.near { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.near a { font-size: 14.5px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; background: var(--white); }
.near a:hover { border-color: var(--ink); }

.sidecall { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 20; width: 200px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 20px 40px -24px rgba(20, 23, 28, .4); display: none; }
.sidecall p { font-size: 13px; color: var(--mute); line-height: 1.5; }
.sidecall a { display: block; font-size: 20px; font-weight: 800; text-decoration: none; margin: 4px 0 12px; letter-spacing: -0.02em; }
.sidecall .btn { min-height: 44px; font-size: 15px; width: 100%; padding: 0 12px; margin: 0; color: #fff; }
@media (min-width: 1500px) { .sidecall { display: block; } }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 24px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul { list-style: disc; padding-left: 20px; }

/* ── 바닥 ─────────────────────────────────────────── */
.site-footer { background: #0e1014; color: #b8bec6; padding: 72px 0 40px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-info { line-height: 1.8; }
.footer-info a { color: #fff; }
.footer-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.footer-call svg { width: 20px; height: 20px; fill: var(--accent); }
.footer-col-head { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col:last-child ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7d848e; }
.footer-bottom a { color: #b8bec6; }
.footer-admin { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-admin svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* 휴대폰 아래 고정 바 · PC 둥근 전화 */
.mbar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 9px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
  .mbar svg { width: 18px; height: 18px; fill: currentColor; }
  .mbar-call { background: var(--accent); }
  .mbar-sms { background: #2b3038; }
}
.call-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-decoration: none; box-shadow: 0 16px 32px -12px rgba(255, 90, 31, .8); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.call-fab svg { width: 24px; height: 24px; fill: currentColor; }
.call-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.call-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.call-fab.is-on::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 640px) { .call-fab { display: none; } }

/* ── 스크롤하면 나타나기(motion-init.js 가 html.js-motion 을 단 때만) ── */
.js-motion .rv { opacity: 0; transform: translateY(22px); }
.js-motion .rv.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-motion .hero-line, .js-motion .hero-kw, .js-motion .hero-lead, .js-motion .hero-actions { animation: up .9s var(--ease) both; }
.js-motion .hero-line:nth-of-type(2) { animation-delay: .08s; }
.js-motion .hero-lead { animation-delay: .18s; }
.js-motion .hero-actions { animation-delay: .26s; }
.js-motion .hero-media > img { animation: slow-zoom 2.4s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
