/* 구매사 기능 쪽 시작 장면 (buyer-flow.js) — 스크롤로 진행, 흰 바탕, 와이어프레임 비율 */
.bf { position: relative; height: 340vh; margin: 0 calc(50% - 50vw); }
.bf__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: #fff; }
.bf__inner { width: min(1152px, calc(100vw - 64px)); }
.bf__title {
  margin: 0 0 clamp(32px, 6vh, 72px); font-size: clamp(32px, 3.9vw, 56px); font-weight: 600; line-height: 1.28;
  letter-spacing: -.01em; color: #1c1f25;
}
.bf__stage { position: relative; aspect-ratio: 1600 / 680; }
.bf__stage figure { position: absolute; margin: 0; opacity: 0; will-change: opacity, transform, filter; }
.bf__card { overflow: hidden; border-radius: clamp(14px, 1.9vw, 26px); background: #eef0f3; }
.bf__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf__card--a { left: 0; top: 22.8%; width: 24.4%; height: 74.2%; }
.bf__union { left: 29%; top: 0; width: 42.2%; height: 100%; }
.bf__union svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bf__card--c { left: 75.6%; top: 4.4%; width: 24.4%; height: 74.2%; }
.bf figcaption {
  position: absolute; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9);
  font-size: 14px; font-weight: 500; color: #4e535c; transition: background .3s, color .3s;
}
.bf__card figcaption { left: 16px; top: 16px; }
.bf__cap1 { left: 4%; top: 4%; }
.bf__cap2 { right: 4%; bottom: 4%; opacity: 0; }
.bf figcaption.is-on { background: #7517d6; color: #fff; }
/* 넓어지는 창: 사진은 화면 크기로 고정, clip-path 로 창만 키운다 */
.bf__zoom { position: absolute; inset: 0; visibility: hidden; background-size: cover; background-position: center; }
.bf.is-static { height: auto; }
.bf.is-static .bf__sticky { position: relative; height: auto; padding: 120px 0 80px; }
@media (max-width: 760px) {
  .bf { height: 300vh; }
  .bf__stage { aspect-ratio: 1600 / 900; }
  .bf figcaption { font-size: 12px; padding: 4px 8px; }
}
/* 11-20: 구매 이력 이름표는 사람 얼굴을 가리지 않게 카드 아래 왼쪽(검수 카드와 겹치지 않는 자리) */
.bf__cap1 { top: auto; bottom: 30%; }
/* 11-20 다시: 모서리 더 줄이고, 카드를 크게(제목은 무대 왼쪽 위 빈자리로), 넓어지는 창은 카드 그림을 그대로 이어받는다 */
.bf__card { border-radius: clamp(8px, 1vw, 14px); }
.bf__zoom { background: none; overflow: hidden; }
.bf__zoom img { position: absolute; max-width: none; display: block; }
@media (min-width: 761px) {
  .bf__inner { position: relative; width: min(1600px, calc(100vw - 64px), calc((100svh - 96px) * 1600 / 680)); }
  .bf__title { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; font-size: clamp(26px, 2.5vw, 40px); }
}
@media (min-width: 761px) {
  .bf__title { max-width: 27%; font-size: clamp(22px, 2.1vw, 34px); }
}
@media (min-width: 761px) {
  .bf__title { max-width: none; white-space: nowrap; font-size: clamp(20px, 1.9vw, 32px); }
}
@media (min-width: 761px) { .bf__title { font-size: clamp(18px, 1.7vw, 30px); } }
/* 하위 쪽 공용 h2 규칙(.subpage .page-content h2)을 이긴다 */
@media (min-width: 761px) {
  .subpage .page-content .bf__title { margin: 0; white-space: nowrap; font-size: clamp(20px, 2.5vw, 38px); line-height: 1.3; }
}
/* 11-20: 제목을 홈 첫 화면 제목과 같게 — 글자 크기·굵기·자간, 왼쪽 끝은 홈 제목과 같은 선(가로 1280 틀에서 양옆 64px 안쪽).
   제목은 다시 카드 위에, 카드 무대도 같은 양옆 선 안에 */
@media (min-width: 761px) {
  .bf__inner { width: min(1152px, calc(100vw - 128px), calc((100svh - 2.6 * min(6vw, 6.1vh, 64px) - 120px) * 1600 / 680)); }
  .subpage .page-content .bf__title {
    position: static; max-width: none; white-space: nowrap;
    margin: 0 0 clamp(24px, 4vh, 48px);
    font-size: clamp(18px, min(6vw, 6.1vh), 64px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; color: #000;
  }
}
/* 11-20: 사진 위 이름표(칩) 없음 */
.bf figcaption { display: none; }
/* 11-20: 넓어진 사진 위 흰 제목 — 홈 첫 화면 제목과 같은 크기·굵기·자간, 같은 왼쪽 선, 세로 가운데 */
.bf__over {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%);
}
.bf__over-text {
  width: min(1152px, calc(100vw - 128px)); margin: 0 auto; color: #fff; white-space: nowrap;
  font-size: clamp(18px, min(6vw, 6.1vh), 64px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em;
}
.subpage .page-content .bf__over-text { margin: 0 auto; font-size: clamp(18px, min(6vw, 6.1vh), 64px); line-height: 1.3; color: #fff; }
@media (max-width: 760px) { .bf__over-text { width: calc(100vw - 40px); white-space: normal; } }
/* 하위 쪽 공용 문단 규칙(폭 920·굵기)을 이긴다 */
.subpage .page-content .bf__over .bf__over-text { max-width: none; width: min(1152px, calc(100vw - 128px)); margin: 0 auto; padding: 0; font-weight: 600; text-align: left; }
/* 11-20: 카드 네 장을 서로 떼고 크게 — 카드 묶음은 홈 여백 선을 따르지 않고 화면을 넓게 쓴다(양옆 24px). 제목만 홈 선에 */
@media (min-width: 761px) {
  .bf__inner { width: min(calc(100vw - 48px), calc((100svh - 2.6 * min(6vw, 6.1vh, 64px) - 120px) / .37)); }
  .subpage .page-content .bf__title { width: min(1152px, calc(100vw - 128px)); margin-left: auto; margin-right: auto; }
  .bf__stage { aspect-ratio: 100 / 37; }
  .bf__stage .bf__card { width: 23%; height: 82.9%; }
  .bf__card--1 { left: 0; top: 12%; }
  .bf__card--2 { left: 25.67%; top: 0; }
  .bf__card--3 { left: 51.33%; top: 17%; }
  .bf__card--4 { left: 77%; top: 5%; }
}
@media (max-width: 760px) {
  .bf__stage { aspect-ratio: 100 / 80; }
  .bf__stage .bf__card { width: 48%; height: 48%; }
  .bf__card--1 { left: 0; top: 0; } .bf__card--2 { left: 52%; top: 4%; }
  .bf__card--3 { left: 0; top: 52%; } .bf__card--4 { left: 52%; top: 56%; }
}
/* 11-20: 넓어진 사진 위 글은 왼쪽 위로(세로 가운데 대신), 그 아래 입력창 */
.bf__over { align-items: flex-start; padding-top: clamp(96px, 16vh, 180px); }
.bf__over-in { width: calc(100vw - 2 * max(48px, (100vw - 1280px) / 2)); margin: 0 auto; }
.subpage .page-content .bf__over .bf__over-text { width: auto; margin: 0; }
.bf__ask {
  display: inline-flex; align-items: center; gap: 4px; margin-top: clamp(20px, 3.5vh, 36px);
  min-width: min(560px, 80vw); padding: 20px 26px; border-radius: 14px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .25);
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; color: #191f28; white-space: nowrap; min-height: 1.4em;
}
.bf__ask-caret { width: 2px; height: 1.2em; background: #191f28; animation: bf-caret 1s steps(1) infinite; }
@keyframes bf-caret { 50% { opacity: 0; } }
/* 11-20: 카드 이름은 칩 없이 사진 위 흰 글자(왼쪽 아래) */
.bf__name {
  position: absolute; left: clamp(16px, 1.6vw, 28px); bottom: clamp(14px, 1.4vw, 24px); z-index: 1;
  color: #fff; font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.bf__card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .28)); pointer-events: none; }
/* 11-20: 카드 이름 크게, 굵기는 한 단계 낮춰(랜딩 규칙: 큰 글씨 최대 600 — 사진 위 짧은 이름이라 500) */
.bf__name { font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
/* 11-20: 카드 세 장(비교 견적·검수·증빙·재고 관리) — 한 장을 더 크게 */
@media (min-width: 761px) {
  .bf__inner { width: min(calc(100vw - 48px), calc((100svh - 2.6 * min(6vw, 6.1vh, 64px) - 120px) / .45)); }
  .bf__stage { aspect-ratio: 100 / 45; }
  .bf__stage .bf__card { width: 30%; height: 88.9%; }
  .bf__card--1 { left: 0; top: 8%; }
  .bf__card--2 { left: 35%; top: 0; }
  .bf__card--3 { left: 70%; top: 11%; }
}
@media (max-width: 760px) {
  .bf__stage { aspect-ratio: 100 / 70; }
  .bf__stage .bf__card { width: 31%; height: 86%; }
  .bf__card--1 { left: 0; top: 6%; } .bf__card--2 { left: 34.5%; top: 0; } .bf__card--3 { left: 69%; top: 10%; }
}
/* 11-20: 머리와 제목 사이를 넓히고(위에서부터 쌓음), 제목 한 줄, 카드 묶음도 제목과 같은 양옆 선(홈 여백 구조).
   카드 등장은 스크롤이 아니라 저절로라서 장면 길이를 줄인다 */
.subpage .page-content section.bf, .bf { height: 260vh; }
@media (min-width: 761px) {
  .bf__sticky { place-items: start center; padding-top: clamp(120px, 17vh, 176px); }
  .bf__inner { width: min(1152px, calc(100vw - 128px), calc((100svh - clamp(120px, 17vh, 176px) - 1.3 * min(6vw, 6.1vh, 64px) - 96px) / .45)); }
  .subpage .page-content .bf__title { width: auto; margin: 0 0 clamp(32px, 5vh, 56px); }
}
/* 제목과 카드 왼쪽 끝을 홈 제목 선에 고정. 세로가 낮은 화면에서는 폭을 줄이지 않고 카드 높이만 줄인다 */
@media (min-width: 761px) {
  .bf__inner { width: min(1152px, calc(100vw - 128px)); }
  .bf__stage { max-height: calc(100svh - clamp(120px, 17vh, 176px) - 1.3 * min(6vw, 6.1vh, 64px) - clamp(32px, 5vh, 56px) - 40px); width: 100%; }
}
/* 쪽 맨 위에서는 장면이 머리(약 92px) 아래에서 시작한다 — 위 여백과 카드 높이 계산에 머리 높이를 넣는다 */
@media (min-width: 761px) {
  .bf__sticky { padding-top: clamp(64px, 9vh, 112px); }
  .bf__stage { max-height: calc(100svh - 92px - clamp(64px, 9vh, 112px) - 1.3 * min(6vw, 6.1vh, 64px) - clamp(32px, 5vh, 56px) - 32px); }
}
/* 11-20: 카드 묶음은 여백 선에 묶이지 않는다 — 제목은 홈 선, 카드는 화면 양옆 24px까지. 엇갈림은 줄여 높이를 더 쓴다 */
@media (min-width: 761px) {
  .bf__stage {
    width: calc(100vw - 48px);
    margin-left: calc(24px - (100vw - min(1152px, calc(100vw - 128px))) / 2);
  }
  .bf__stage .bf__card { width: 31.5%; height: 94%; }
  .bf__card--1 { left: 0; top: 4%; }
  .bf__card--2 { left: 34.25%; top: 0; }
  .bf__card--3 { left: 68.5%; top: 6%; }
}
/* 11-20: 넓어진 사진 위 글이 다 뜬 뒤 화면을 한동안 멈춰 둔다(스크롤해도 바로 넘어가지 않음) */
.subpage .page-content section.bf, .bf { height: 380vh; }
/* 11-20: 제목 가운데 정렬. 쪽마다 들어가는 한 마디(하는 일)는 보라색으로, 쪽이 열릴 때 그 말만 살짝 늦게 떠오른다 */
@media (min-width: 761px) { .subpage .page-content .bf__title { text-align: center; } }
.bf__title { text-align: center; }
.bf__word { font-style: normal; color: #7517d6; display: inline-block; animation: bf-word .7s cubic-bezier(.2, .7, .2, 1) .35s both; }
@keyframes bf-word { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .bf__word { animation: none; } }
/* 사진 위 제목과 겹치는 첫 섹션 제목 — 화면에서만 감춤 */
.subpage .page-content .bf-dup { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 11-20: 큰 글씨는 자간을 좁혀 둬서 낱말 사이가 붙어 보인다 — 띄어쓰기 칸만 조금 넓힌다 */
.subpage .page-content .bf__title, .subpage .page-content .bf__over .bf__over-text, .bf__name, .bf__ask { word-spacing: .12em; }
/* 11-20: 입력창 그림자 없음, 오른쪽 전송 단추. 전송하면 입력창이 사라지고 견적서가 하나씩 자동으로 들어온다 */
.bf__ask { box-shadow: none; position: relative; padding-right: 72px; transition: opacity .35s, transform .35s; }
.bf__send {
  position: absolute; right: 12px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: grid; place-items: center; background: #d1d6db; color: #fff; transition: background .25s, transform .25s;
}
.bf__ask:has(.bf__ask-text:not(:empty)) .bf__send { background: #7517d6; }
.bf__over-in.is-sent .bf__send { transform: scale(.88); }
.bf__over-in.is-sent .bf__ask { opacity: 0; transform: translateY(-8px); pointer-events: none; transition-delay: .15s; }
.bf__quotes { position: relative; display: flex; gap: 16px; margin-top: calc(-1 * (40px + 2 * 20px)); pointer-events: none; }
.bf__quote {
  width: clamp(200px, 18vw, 260px); padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .94);
  opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.bf__over-in.is-sent .bf__quote { opacity: 1; transform: none; transition-delay: calc(.55s + var(--i) * .22s); }
.subpage .page-content .bf__quote p { margin: 0; max-width: none; color: #191f28; word-spacing: .08em; }
.subpage .page-content .bf__quote .bf__quote-name { font-size: 16px; font-weight: 500; line-height: 1.4; }
.subpage .page-content .bf__quote .bf__quote-meta { margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.5; color: #6b7684; }
.subpage .page-content .bf__quote .bf__quote-price { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* 11-20: 카드 이름 없음(사진만). 카드는 세로로 길게 — 양옆에 따로 조금 여백(80px), 카드 폭을 줄이고 사이를 넓힘 */
.bf__name, .bf__card::after { display: none; }
@media (min-width: 761px) {
  .bf__stage {
    width: calc(100vw - 160px);
    margin-left: calc(80px - (100vw - min(1152px, calc(100vw - 128px))) / 2);
  }
  .bf__stage .bf__card { width: 27%; }
  .bf__card--1 { left: 0; }
  .bf__card--2 { left: 36.5%; }
  .bf__card--3 { left: 73%; }
}
/* 11-20: 카드 사이는 붙여서(약 24px) 가운데로 모은다 — 세로로 긴 모양은 그대로 */
@media (min-width: 761px) {
  .bf__card--1 { left: 7.5%; }
  .bf__card--2 { left: 36.5%; }
  .bf__card--3 { left: 65.5%; }
}
/* 11-20: 견적서는 세로로 한 줄씩 — 입력창과 같은 폭, 왼쪽에 업체·조건, 오른쪽에 금액 */
.bf__quotes { flex-direction: column; gap: 10px; width: min(560px, 80vw); }
.bf__quote {
  width: auto; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 24px; align-items: center;
  padding: 16px 22px; transform: translateY(12px);
}
.subpage .page-content .bf__quote .bf__quote-name { grid-column: 1; grid-row: 1; }
.subpage .page-content .bf__quote .bf__quote-meta { grid-column: 1; grid-row: 2; margin-top: 2px; }
.subpage .page-content .bf__quote .bf__quote-price { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
/* 11-20: 이전·다음 화살표는 카드 장면 양옆(카드 높이 가운데) */
.sp-flow .page-content .bf__sticky > a.sp-flow-nav { position: absolute; z-index: 6; top: calc(50% + 15px); }
.sp-flow .page-content .bf__sticky > a.sp-flow-nav--prev { left: 24px; right: auto; }
.sp-flow .page-content .bf__sticky > a.sp-flow-nav--next { right: 24px; left: auto; }
/* 밝은 사진(모니터·창가) 위에서도 흰 제목이 읽히게 왼쪽을 조금 더 어둡게 */
.bf__over { background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.26) 45%, rgba(0,0,0,0) 72%); }
.bf__over-text { text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
