/* ==========================================================================
   유일 디자인 랜딩 — 화이트 리디자인
   팔레트는 실제 시공 사진에서 추출: 종이흰색 / 오트 / 잉크 / 브랜드 딥그린 / 테라코타
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #faf8f5;
  --oat: #f2ede4;
  --oat-2: #e9e2d6;
  --line: #e7e1d7;
  --line-2: #d9d2c5;

  --ink: #1a1a18;
  --ink-2: #3d3d39;
  --muted: #7c7970;
  --muted-2: #a29e94;

  --deep: #17261d;      /* 유일 브랜드 딥그린 */
  --deep-2: #22382a;
  --clay: #b0522f;      /* 사진에서 뽑은 테라코타 포인트 */
  --clay-soft: #f3e6de;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Malgun Gothic', sans-serif;

  --bar-h: 72px;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --sec-y: clamp(96px, 12vw, 176px);
  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  letter-spacing: -.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg { display: block; max-width: 100%; }
/* display를 지정한 블록들이 hidden 속성을 이기지 못하도록 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-sec { padding-block: var(--sec-y); }

/* ---------- 타이포 ---------- */
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(29px, 4.1vw, 54px);
  line-height: 1.32;
  letter-spacing: -.025em;
  word-break: keep-all;
}
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow.light { color: rgba(255, 255, 255, .72); }
.body-lg {
  font-size: clamp(15.5px, 1.28vw, 17.5px); color: var(--ink-2);
  line-height: 1.85; word-break: keep-all; max-width: 46ch;
}

/* ---------- 상단 바 ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--bar-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.bar.solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.bar-in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  height: 100%; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .32; }
.brand-mark .arch, .brand-mark .sill {
  fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round;
}
.brand-name {
  display: flex; flex-direction: column; line-height: 1.12;
  font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
}
.brand-name small {
  font-family: var(--sans); font-weight: 600; font-size: 8.5px;
  letter-spacing: .22em; color: var(--muted); margin-top: 3px;
}
.bar nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.bar nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.bar nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--clay); transition: right .3s var(--ease);
}
.bar nav a:hover { color: var(--ink); }
.bar nav a:hover::after { right: 0; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.bar-cta {
  font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  background: var(--deep); color: #fff; transition: transform .2s var(--ease), background .2s;
}
.bar-cta:hover { background: var(--deep-2); transform: translateY(-1px); }
.bar-login { font-size: 12.5px; color: var(--muted); }
.bar-login:hover { color: var(--ink); }
.hamburger {
  display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.hamburger span:last-child { width: 14px; }

/* 히어로 위에서는 바를 밝게 */
.bar:not(.solid) { color: #fff; }
.bar:not(.solid) .brand-name small,
.bar:not(.solid) nav a,
.bar:not(.solid) .bar-login { color: rgba(255, 255, 255, .78); }
.bar:not(.solid) .bar-cta { background: rgba(255, 255, 255, .96); color: var(--ink); }
.bar:not(.solid) .hamburger span { background: #fff; }
.bar:not(.solid) .brand-mark rect { stroke: rgba(255, 255, 255, .5); opacity: 1; }
.bar:not(.solid) .brand-mark .arch, .bar:not(.solid) .brand-mark .sill { stroke: #fff; }

/* ---------- 01. 히어로 스크럽 필름 ---------- */
/* 높이가 곧 재생 길이다 — 짧으면 프레임이 훅훅 넘어가 글을 읽을 수 없다 */
.film { position: relative; height: 760vh; background: var(--paper); }
.film-pin {
  position: sticky; top: 0; height: 100svh; width: 100%;
  display: grid; place-items: center;
}
.film-stage {
  position: relative; overflow: hidden;
  width: calc(100% - var(--fx, 5vw) * 2);
  height: calc(100svh - var(--fy, 76px) * 2);
  border-radius: var(--fr, 24px);
  background: #ded8d0;
  box-shadow: 0 50px 110px -60px rgba(26, 26, 24, .55);
  will-change: width, height, border-radius;
}
#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 18, 16, .44) 0%, rgba(18, 18, 16, 0) 30%),
    linear-gradient(0deg, rgba(18, 18, 16, .78) 0%, rgba(18, 18, 16, .52) 26%, rgba(18, 18, 16, .18) 48%, rgba(18, 18, 16, 0) 68%);
}
.film-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(84px, 12vh, 132px);
  padding-inline: clamp(24px, 5vw, 68px); color: #fff;
}
.beat {
  position: absolute; left: clamp(24px, 5vw, 68px); right: clamp(24px, 5vw, 68px); bottom: 0;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
.beat h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1.26; letter-spacing: -.03em;
  margin-top: 16px; word-break: keep-all;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.beat h1 em { font-style: normal; color: #f0d3c3; }
.beat-sub { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .8); letter-spacing: .02em; }
.beat-line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(23px, 3.2vw, 42px); line-height: 1.42; letter-spacing: -.025em;
  margin-top: 16px; word-break: keep-all; text-shadow: 0 2px 26px rgba(0, 0, 0, .35);
}
.film-foot {
  position: absolute; left: clamp(24px, 5vw, 68px); right: clamp(24px, 5vw, 68px);
  bottom: clamp(28px, 4vh, 44px); display: flex; align-items: center; gap: 22px;
}
.film-cta {
  flex: none; font-size: 13.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); padding: 11px 20px; border-radius: 999px;
  backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.film-cta:hover { background: rgba(255, 255, 255, .96); color: var(--ink); border-color: transparent; transform: translateY(-1px); }
.film-rail { flex: 1; height: 1.5px; background: rgba(255, 255, 255, .26); border-radius: 2px; overflow: hidden; }
.film-rail i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }

.cue {
  position: absolute; top: calc(100svh - 52px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; z-index: 3;
  font-size: 10px; letter-spacing: .28em; color: var(--muted-2);
  transition: opacity .4s;
}
.cue span { display: block; width: 1px; height: 20px; background: linear-gradient(180deg, var(--line-2), transparent); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 공통 섹션 헤더 ---------- */
.sec-head { max-width: 720px; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: none; }
.sec-head.center { max-width: 760px; margin-inline: auto; text-align: center; }
.head-note { font-size: 14px; color: var(--muted); line-height: 1.8; text-align: right; flex: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ---------- 02. 소개 ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-lead .display { margin: 18px 0 26px; }
.area-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.area-list li { font-size: 13.5px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.area-list li:first-child { border: 0; padding: 0 6px 0 0; color: var(--muted); font-weight: 600; }
.about-film { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--oat); box-shadow: 0 40px 80px -60px rgba(26,26,24,.5); }
.about-film video { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.about-film figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 26px 24px; color: #fff;
  background: linear-gradient(0deg, rgba(18,18,16,.72), rgba(18,18,16,0));
}
.about-film figcaption b { display: block; font-family: var(--serif); font-size: 18px; }
.about-film figcaption span { display: block; font-size: 13px; color: rgba(255,255,255,.76); margin-top: 5px; }

/* ---------- 03. 시공 분야 ---------- */
.services { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 58px; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px 32px; transform-style: preserve-3d;
  transition: box-shadow .4s var(--ease), border-color .4s, transform .35s var(--ease);
}
.svc-art { height: 118px; display: grid; place-items: center; margin-bottom: 22px; }
.svc-art svg { width: 168px; height: 120px; overflow: visible; }
.svc-art .draw path {
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset .9s var(--ease), stroke .4s, opacity .4s;
  transition-delay: var(--d, 0s);
}
.svc-art .draw path.thin { stroke-width: 1.15; opacity: .45; }
.svc-art .draw path.fillish { fill: var(--clay-soft); stroke: var(--clay); }
.svc-art .draw path.hatch { stroke: var(--clay); opacity: .55; }
.svc.visible .svc-art .draw path { stroke-dashoffset: 0; }
.svc-no { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--clay); }
.svc-txt h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 8px 0 10px; letter-spacing: -.02em; }
.svc-txt p { font-size: 14.2px; color: var(--muted); line-height: 1.8; word-break: keep-all; }

@media (hover: hover) and (pointer: fine) {
  .svc { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .svc:hover { box-shadow: 0 30px 60px -40px rgba(26, 26, 24, .38); border-color: var(--line-2); }
  .svc:hover .svc-art .draw path { stroke: var(--clay); }
  .svc:hover .svc-art .draw path.thin { opacity: .8; }
}

/* ---------- 04. 시공 사례 ---------- */
.works { background: var(--paper); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; align-items: start; }
.g-item {
  position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--oat); cursor: zoom-in;
  will-change: transform;
}
.g-item.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.g-item.tall { aspect-ratio: 3 / 4.3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 20px 18px; color: #fff;
  background: linear-gradient(0deg, rgba(18,18,16,.66), rgba(18,18,16,0));
  opacity: 0; transform: translateY(8px); transition: .45s var(--ease);
}
.g-item figcaption span { display: block; font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.g-item figcaption b { display: block; font-family: var(--serif); font-size: 17px; margin-top: 3px; }
.g-item:hover img { transform: scale(1.045); }
.g-item:hover figcaption { opacity: 1; transform: none; }
.g-item:nth-child(3n+2) { margin-top: clamp(0px, 3vw, 40px); }

/* 라이트박스 */
.lb {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(16, 16, 14, .93); padding: clamp(16px, 5vw, 56px);
  animation: lbIn .3s var(--ease);
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lb-fig img { max-height: 78svh; width: auto; object-fit: contain; border-radius: 8px; }
.lb-fig figcaption { color: rgba(255,255,255,.8); font-size: 13.5px; letter-spacing: .01em; }
.lb-x, .lb-nav {
  position: absolute; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 20px; line-height: 1; transition: background .2s;
}
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-x { top: 22px; right: 22px; font-size: 15px; }
.lb-prev { left: clamp(10px, 3vw, 36px); }
.lb-next { right: clamp(10px, 3vw, 36px); }

/* ---------- 05. 무드 필름 벨트 ---------- */
.belt-sec {
  padding-top: var(--sec-y); padding-bottom: clamp(56px, 7vw, 92px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--oat) 30%, var(--oat) 72%, var(--paper) 100%);
  overflow: hidden;
}
.belt { margin-top: 54px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.belt-track { display: flex; gap: 20px; width: max-content; animation: roll 46s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.belt-track figure { width: clamp(260px, 30vw, 400px); flex: none; }
.belt-track video {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md);
  background: var(--oat-2); box-shadow: 0 26px 50px -38px rgba(26,26,24,.55);
}
.belt-track figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); letter-spacing: -.01em; }
.belt-note { margin-top: 26px; text-align: center; font-size: 12px; color: var(--muted-2); }

/* ---------- 06. 유일의 방식 ---------- */
.way { background: var(--paper); padding-top: clamp(64px, 8vw, 112px); }
.way-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.way-side { position: sticky; top: calc(var(--bar-h) + 48px); }
.way-side .display { margin-top: 18px; }
.way-list { display: grid; gap: 4px; }
.way-list li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 34px 0; border-top: 1px solid var(--line); }
.way-list li:last-child { border-bottom: 1px solid var(--line); }
.way-no { font-family: var(--serif); font-size: 15px; color: var(--clay); letter-spacing: .06em; padding-top: 4px; }
.way-list h3 { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; word-break: keep-all; }
.way-list p { font-size: 15px; color: var(--muted); line-height: 1.85; word-break: keep-all; max-width: 48ch; }

/* ---------- 07. 예상견적 ---------- */
.quote-sec { padding-block: var(--sec-y); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 22%, var(--paper-2) 100%); }
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(26px, 4vw, 54px); box-shadow: 0 50px 100px -70px rgba(26, 26, 24, .5);
}
.q-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; flex-wrap: wrap; }
.q-head .display { margin: 14px 0 8px; }
.q-note { font-size: 13px; color: var(--muted); }
.q-steps { display: flex; gap: 10px; }
.q-steps li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); transition: color .3s; }
.q-steps li span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; transition: .3s;
}
.q-steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--line-2); }
.q-steps li.active { color: var(--ink); }
.q-steps li.active span { background: var(--deep); border-color: var(--deep); color: #fff; }

.q-loading { padding: 70px 0; display: grid; place-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.q-loading span { width: 26px; height: 26px; border: 2px solid var(--line-2); border-top-color: var(--deep); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.quote-step { display: none; padding-top: 38px; margin-top: 34px; border-top: 1px solid var(--line); }
.quote-step.active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step-title span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--clay); }
.step-title h3 { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; margin: 8px 0 6px; letter-spacing: -.02em; }
.step-title p { font-size: 14px; color: var(--muted); word-break: keep-all; }

.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.f-grid > .full { grid-column: 1 / -1; }
.f-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.f-grid label > span { color: var(--ink-2); font-weight: 500; }
.f-grid label > span b { color: var(--clay); }
.f-grid input, .f-grid select, .f-grid textarea {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 13px 15px; font-size: 15px; min-height: 50px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.f-grid textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.f-grid input:focus, .f-grid select:focus, .f-grid textarea:focus {
  outline: 0; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(23, 38, 29, .08);
}
.f-grid fieldset { border: 0; }
.f-grid legend { font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.suffix { position: relative; }
.suffix i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13.5px; color: var(--muted-2); }
.suffix input { padding-right: 40px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips span {
  display: grid; place-items: center; min-width: 92px; min-height: 50px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--ink-2);
  transition: .22s var(--ease);
}
.chips label:hover span { border-color: var(--line-2); }
.chips input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

/* 공사 선택 */
.price-options { margin-top: 28px; display: grid; gap: 30px; }
.price-space > h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: -.02em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.price-item { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: center; padding: 14px 0; }
.price-item > div:first-child b { display: block; font-size: 15px; font-weight: 600; }
.price-item > div:first-child small { display: block; font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.grade-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.grade-choices label { cursor: pointer; }
.grade-choices input { position: absolute; opacity: 0; width: 0; height: 0; }
.grade-choices span {
  display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  transition: .22s var(--ease); height: 100%;
}
.grade-choices span b { display: block; font-size: 14px; font-weight: 600; }
.grade-choices span small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }
.grade-choices label:hover span { border-color: var(--line-2); background: var(--paper-2); }
.grade-choices input:checked + span { border-color: var(--deep); background: var(--deep); }
.grade-choices input:checked + span b { color: #fff; }
.grade-choices input:checked + span small { color: rgba(255, 255, 255, .68); }
.grade-choices input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.sticky-sum { position: sticky; bottom: 12px; z-index: 5; margin-top: 26px; }
.sticky-sum > div {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--deep); color: #fff; border-radius: 16px; padding: 18px 24px;
  box-shadow: 0 20px 40px -26px rgba(23, 38, 29, .8);
}
.sticky-sum span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.sticky-sum span small { font-size: 11px; opacity: .7; }
.sticky-sum b { font-size: clamp(17px, 2.2vw, 23px); font-weight: 700; letter-spacing: -.02em; }

/* 금액 */
.amount {
  margin-top: 30px; padding: clamp(28px, 4vw, 48px) 26px; border-radius: 20px;
  background: linear-gradient(165deg, var(--oat) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); text-align: center;
}
.amount-cap { font-size: 13px; color: var(--muted); }
.amount strong {
  display: block; margin: 12px 0 6px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 5.4vw, 52px); line-height: 1.25; letter-spacing: -.035em; color: var(--deep);
  word-break: keep-all;
}
.amount-kor { font-size: clamp(14px, 1.6vw, 17px); color: var(--clay); font-weight: 600; letter-spacing: -.01em; min-height: 1.4em; }
.amount-vat { margin-top: 10px; font-size: 12.5px; color: var(--muted-2); }
.amount-warn { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.75; max-width: 52ch; margin-inline: auto; word-break: keep-all; }

.sum-list { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sum-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--paper); padding: 15px 20px; font-size: 13.5px; }
.sum-list > div > span:first-child { color: var(--ink-2); }
.sum-list > div > span:last-child { color: var(--muted); }
.sum-list b { color: var(--ink); }

.consult { margin-top: 34px; padding-top: 32px; border-top: 1px solid var(--line); }
.consult > header span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--clay); }
.consult > header h4 { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; margin-top: 8px; letter-spacing: -.02em; }
.privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.privacy input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--deep); }
.privacy b { display: block; font-size: 14px; font-weight: 600; }
.privacy small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; word-break: keep-all; }
.f-error { margin-top: 14px; color: #b3261e; font-size: 13.5px; min-height: 1.2em; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.q-done, .q-down { padding: 64px 24px; text-align: center; }
.q-done span {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--deep); color: #fff; font-size: 24px;
}
.q-done h3, .q-down h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.q-done p, .q-down p { margin: 12px auto 24px; max-width: 46ch; font-size: 14.5px; color: var(--muted); line-height: 1.8; word-break: keep-all; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: -.01em;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
}
.btn.primary { background: var(--deep); color: #fff; box-shadow: 0 16px 30px -20px rgba(23, 38, 29, .9); }
.btn.primary:hover { background: var(--deep-2); transform: translateY(-2px); }
.btn.primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.light { background: #fff; color: var(--deep); }
.btn.light:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .6); }
.step-go { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.step-go .btn { flex: 1 1 220px; }
.step-go .btn.ghost { flex: 0 1 auto; }

/* ---------- 08. 클로징 ---------- */
.closing { background: var(--deep); color: #fff; padding-block: clamp(96px, 13vw, 168px); }
.closing-in { text-align: center; }
.closing .display { margin: 18px 0 34px; color: #fff; }

/* ---------- 푸터 ---------- */
.foot { background: #101a14; color: rgba(255, 255, 255, .72); padding-top: 64px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: start; padding-bottom: 44px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.foot .brand-mark rect { stroke: rgba(255, 255, 255, .35); opacity: 1; }
.foot .brand-mark .arch, .foot .brand-mark .sill { stroke: #e6b79f; }
.foot .brand-name small { color: rgba(255, 255, 255, .45); }
.foot-name { font-size: 15px; font-weight: 600; color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 13.5px; }
.foot-temp { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .42); }
.to-top { width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.to-top:hover { background: rgba(255, 255, 255, .12); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 11.5px; color: rgba(255, 255, 255, .45); }

/* ---------- 플로팅 CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 20px 40px -20px rgba(23, 38, 29, .85);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.float-cta.on { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .way-grid { grid-template-columns: 1fr; }
  .way-side { position: static; }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --bar-h: 62px; }
  .bar nav {
    position: fixed; inset: var(--bar-h) 0 auto; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px);
    padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .bar.menu-open nav { transform: none; opacity: 1; pointer-events: auto; }
  .bar:not(.solid) nav a { color: var(--ink-2); }
  .bar nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .bar nav a::after { display: none; }
  .bar-right { display: none; }
  .hamburger { display: flex; }
  .bar.menu-open .hamburger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .bar.menu-open .hamburger span:last-child { width: 22px; transform: translateY(-3.75px) rotate(-45deg); }
  .bar.menu-open:not(.solid) .hamburger span { background: var(--ink); }
  .bar.menu-open:not(.solid) .brand-name { color: var(--ink); }
  .bar.menu-open:not(.solid) .brand-mark .arch, .bar.menu-open:not(.solid) .brand-mark .sill { stroke: var(--clay); }
  .bar.menu-open:not(.solid) { background: rgba(255,255,255,.98); color: var(--ink); }

  .film { height: 600vh; }
  .film-stage { --fx: 0px; }
  .cue { display: none; }   /* 모바일은 CTA·진행바만으로 충분 */
  .sec-head.row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .head-note { text-align: left; }

  .gal { grid-template-columns: 1fr; gap: 16px; }
  .g-item, .g-item.wide, .g-item.tall { grid-column: span 1; aspect-ratio: 4 / 3.2; }
  .g-item:nth-child(3n+2) { margin-top: 0; }
  .g-item figcaption { opacity: 1; transform: none; }

  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 18px; padding: 22px; }
  .svc-art { height: auto; margin: 0; }
  .svc-art svg { width: 84px; height: 63px; }

  .f-grid { grid-template-columns: 1fr; }
  .price-item { grid-template-columns: 1fr; gap: 12px; }
  .grade-choices { grid-template-columns: 1fr; }
  .way-list li { grid-template-columns: 1fr; gap: 10px; }
  .step-go .btn, .step-go .btn.ghost { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .to-top { justify-self: start; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
}

@media (max-width: 480px) {
  .film-copy { bottom: clamp(96px, 16vh, 140px); }
  .film-cta { padding: 10px 16px; font-size: 12.5px; }
  .quote-card { padding: 22px 18px; border-radius: 20px; }
  .q-steps { width: 100%; }
  .q-steps li b { display: none; }
  .q-steps li { flex: 1; }
  .q-steps li + li::before { flex: 1; width: auto; }
}

/* ==========================================================================
   견적 전용 페이지 (quote.html)
   ========================================================================== */
.page-quote { padding-top: var(--bar-h); }
.bar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.bar nav a[aria-current="page"]::after { right: 0; }
.bar-cta.ghost-cta { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.bar-cta.ghost-cta:hover { background: var(--paper-2); color: var(--ink); }

.q-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); background: var(--paper); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 26px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb b { color: var(--ink-2); font-weight: 600; }
.q-hero .display { margin: 16px 0 18px; }
.q-hero-lead { font-size: clamp(15px, 1.3vw, 17px); color: var(--ink-2); line-height: 1.85; word-break: keep-all; }

.q-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.q-facts li {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-direction: column; gap: 5px;
}
.q-facts span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--clay); }
.q-facts b { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.q-facts small { font-size: 13px; color: var(--muted); word-break: keep-all; }

/* 견적 페이지에서는 카드가 주인공이라 위 여백을 줄인다 */
.page-quote .quote-sec { padding-top: clamp(20px, 3vw, 36px); }

.q-done-go { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.q-after { padding-block: clamp(72px, 9vw, 128px); background: var(--paper); }
.q-after-in { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.q-after-copy .display { margin: 16px 0 18px; }
.q-after-copy p { font-size: 15px; color: var(--muted); line-height: 1.85; word-break: keep-all; margin-bottom: 26px; }
.q-after-shot { border-radius: var(--r-lg); overflow: hidden; background: var(--oat); box-shadow: 0 40px 80px -60px rgba(26,26,24,.5); }
.q-after-shot img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

@media (max-width: 860px) {
  .q-facts { grid-template-columns: 1fr; gap: 0; }
  .q-facts li { padding: 16px 0; }
  .q-after-in { grid-template-columns: 1fr; }
  .q-after-shot { order: -1; }
  .page-quote .bar nav a[aria-current="page"] { color: var(--clay); }
}

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .svc-art .draw path { stroke-dashoffset: 0; }
  .belt-track { animation: none; }
}
