/* =========================================================
   /b2b/ 문의 폼 (2026-11-03) — css/style.css 토큰·부품(tag·hl·dot·btn·bubble·sticker) 위에 이 페이지 것만.
   ========================================================= */

/* 변형 문구: <html data-b2b="…"> 와 맞는 data-v 만 보인다 (head 인라인 스크립트가 정함) */
[data-v] { display: none; }
html[data-b2b="cafe"] [data-v~="cafe"],
html[data-b2b="festival"] [data-v~="festival"],
html[data-b2b="tourism"] [data-v~="tourism"],
html[data-b2b="other"] [data-v~="other"],
html:not([data-b2b]) [data-v~="other"] { display: inline; }

/* ---------- 히어로 ---------- */
.b2b-hero { padding: 28px 0 36px; border-bottom: 1.5px solid var(--black); }
.b2b-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.b2b-hero__copy, .b2b-hero__more { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.b2b-hero__title { font-size: clamp(34px, 9vw, 64px); font-weight: 900; line-height: 1.16; letter-spacing: -0.04em; }
.b2b-hero__title .hl { white-space: normal; }

.b2b-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; width: 100%; margin: 4px 0 0; border: 1.5px solid var(--black); border-radius: 14px; background: var(--white); overflow: hidden; }
.b2b-stats > div { padding: 12px 12px 10px; border-left: 1.5px solid var(--ink-12); }
.b2b-stats > div:first-child { border-left: 0; }
.b2b-stats dt { font-size: 12px; font-weight: 700; color: var(--ink-55); }
.b2b-stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.b2b-stats dd.is-orange { color: var(--orange); }
.b2b-stats dd.is-small { font-size: 16px; line-height: 1.6; }

/* 실적 배지 (2026-11-07) */
.b2b-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0; padding: 0; list-style: none; }
.b2b-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; }
.b2b-badges b { color: var(--orange); font-weight: 900; }

.b2b-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.b2b-hero__cta .btn { height: 50px; padding: 0 26px; font-size: 16px; }
.b2b-hero__cta .stores__note { width: auto; font-size: 13px; padding-left: 4px; }

/* 실제 사례로 보는 만드는 과정 (2026-11-23): 폰 화면 영상 + 단계 4개(영상 시간에 맞춰 켜짐). 모바일은 폰 왼쪽·단계 오른쪽 */
.b2b-demo { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0 6px; }
.b2b-demo__phone { position: relative; width: min(44vw, 188px); padding: 6px; border-radius: 26px; background: var(--black);
  box-shadow: 0 24px 44px -22px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .1); }   /* 기울이지 않는다(2026-11-23 사용자 요청: 0도 고정) */
.b2b-demo__phone video { display: block; width: 100%; aspect-ratio: 432 / 936; border-radius: 20px; object-fit: cover; background: #fff6de; }
.b2b-demo__pin { left: -10px; top: -16px; font-size: 11px; }
.b2b-demo__steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: demo; }
.b2b-demo__steps li { counter-increment: demo; }
.b2b-demo__steps button { position: relative; display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 10px 12px 11px 44px; overflow: hidden;
  border: 1.5px solid var(--ink-12); border-radius: 14px; background: var(--white); color: var(--black); font: inherit; text-align: left; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease; }
.b2b-demo__steps button::before { content: counter(demo); position: absolute; left: 11px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--ink-06); color: var(--ink-55); font-size: 13px; font-weight: 900; transition: background .2s ease, color .2s ease; }
.b2b-demo__steps b { font-size: 15px; font-weight: 900; letter-spacing: -0.02em; }
.b2b-demo__steps span { font-size: 12px; line-height: 1.35; color: var(--ink-55); }
.b2b-demo__steps i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--orange); }
.b2b-demo__steps button.is-on { background: var(--black); border-color: var(--black); color: var(--white); }
.b2b-demo__steps button.is-on::before { background: var(--orange); color: var(--white); }
.b2b-demo__steps button.is-on span { color: rgba(255, 255, 255, .72); }
.b2b-demo__steps button:not(.is-on) i { display: none; }
.b2b-demo__steps button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.b2b-pin {
  position: absolute; left: -6px; top: -14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 800; white-space: nowrap; transform: rotate(-3deg);
}
.b2b-pin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

[data-zoom] { cursor: zoom-in; }


/* ---------- 폼 ---------- */
.b2b-form-section { padding: 32px 0 48px; background: #f6f6f6; }
.b2b-form-section__inner { max-width: 640px; }
.b2b-card { position: relative; background: var(--white); border: 1.5px solid var(--black); border-radius: 20px; padding: 24px 18px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
.b2b-form { display: flex; flex-direction: column; gap: 16px; }
.b2b-form[hidden] { display: none; }   /* 접수 성공 뒤 form.hidden — display:flex 가 hidden 속성을 이기지 않게 */
.b2b-form__title { font-size: clamp(24px, 6vw, 32px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.b2b-form__sub { margin-top: -10px; font-size: 14px; color: var(--ink-55); }
.b2b-form__sub b, .b2b-field b { color: var(--orange); }
.b2b-form__error { padding: 12px 14px; border-radius: 12px; background: rgba(255, 90, 71, .1); border: 1.5px solid var(--orange); font-size: 14px; font-weight: 700; color: var(--black); }
.b2b-form__alt { font-size: 13px; color: var(--ink-55); text-align: center; }
.b2b-form__alt a { color: var(--black); font-weight: 700; text-decoration: underline; }

.b2b-row { display: grid; gap: 16px; }
.b2b-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.b2b-field > span, .b2b-field legend { font-size: 14px; font-weight: 800; padding: 0; }
.b2b-field i { font-style: normal; font-weight: 600; color: var(--ink-40); margin-left: 4px; }
.b2b-field input, .b2b-field select, .b2b-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ink-20); background: var(--white);
  font: inherit; font-size: 16px; color: var(--black); appearance: none; -webkit-appearance: none;   /* 16px: iOS 확대 방지 */
}
.b2b-field select { background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.b2b-field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.b2b-field input::placeholder, .b2b-field textarea::placeholder { color: var(--ink-40); }
.b2b-field input:focus, .b2b-field select:focus, .b2b-field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(255, 90, 71, .25); }
.b2b-form.is-checked .b2b-field input:invalid, .b2b-form.is-checked .b2b-field textarea:invalid { border-color: var(--orange); }

/* 유형 선택 칩 */
.b2b-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.b2b-chips label { position: relative; }
.b2b-chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.b2b-chips span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--ink-20); font-size: 15px; font-weight: 800; text-align: center; transition: background .12s ease; }
.b2b-chips--3 { grid-template-columns: repeat(3, 1fr); }
.b2b-chips[hidden] { display: none; }
.b2b-contact > input { margin-top: 4px; }
.b2b-chips input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.b2b-chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.b2b-form.is-checked .b2b-chips:has(input:invalid) span { border-color: var(--orange); }

/* 접힘 */
.b2b-more { border-top: 1.5px dashed var(--ink-20); border-bottom: 1.5px dashed var(--ink-20); }
.b2b-more summary { display: flex; align-items: center; gap: 6px; min-height: 48px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.b2b-more summary::-webkit-details-marker { display: none; }
.b2b-more summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 600; }
.b2b-more[open] summary::after { content: "−"; }
.b2b-more summary i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink-40); }
.b2b-more__body { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 18px; }
.b2b-count { margin-left: auto !important; }

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

.b2b-agree { display: flex; flex-direction: column; gap: 10px; }
.b2b-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-70); cursor: pointer; }
.b2b-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.b2b-check b { color: var(--black); }
.b2b-check a { color: var(--black); font-weight: 700; text-decoration: underline; }
.b2b-form.is-checked .b2b-check input:invalid + span { color: var(--orange); }

.b2b-submit { width: 100%; height: 56px; font-size: 17px; }
.b2b-submit[disabled] { opacity: .55; cursor: progress; transform: none; }

/* 접수 완료 */
.b2b-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0 4px; outline: none; }
.b2b-done[hidden] { display: none; }
.b2b-done__stamp { position: absolute; right: 18px; top: -26px; width: 84px; font-size: 15px; }
.b2b-done__id { font-size: 14px; color: var(--ink-55); }
.b2b-done__id b { color: var(--black); font-size: 18px; }
.b2b-done__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
.b2b-done__cta .stores__note { width: auto; font-size: 13px; padding-left: 4px; }

/* 3단계 */
.b2b-how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.b2b-how > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }   /* min-width 0: 안 주면 사진 줄(.b2b-flow)이 칸을 밀어 늘려 옆으로 안 넘어간다 */
.b2b-how__title { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.b2b-steps { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.b2b-steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 60px; background: var(--white); border: 1.5px solid var(--black); border-radius: 14px; }
.b2b-steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.b2b-steps b { font-size: 17px; font-weight: 900; }
.b2b-steps li > span { font-size: 13px; color: var(--ink-55); }

/* ---------- 폼 위 섹션 (2026-11-07): 실적 · 예시 · 3단계 · 자주 묻는 질문 ---------- */
.b2b-sec { padding: 48px 0; border-bottom: 1.5px solid var(--black); }
.b2b-sec__inner { display: grid; gap: 28px; }
.b2b-sec__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.b2b-sec__title { margin-top: 12px; font-size: clamp(28px, 7.4vw, 44px); font-weight: 900; line-height: 1.2; letter-spacing: -0.04em; }
.b2b-sec__copy .b2b-sec__title { margin-top: 0; }
.b2b-sec__desc { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-55); }
.b2b-sec__copy .b2b-sec__desc { margin-top: 0; }
.b2b-jump { margin-top: 24px; height: 50px; padding: 0 24px; font-size: 16px; }
.b2b-sec__copy .b2b-jump { margin-top: 6px; }

.b2b-bignums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 4px 0 0; }
.b2b-bignums > div { padding: 14px 16px; border: 1.5px solid var(--black); border-radius: 14px; background: var(--white); }
.b2b-bignums dt { font-size: 13px; font-weight: 700; color: var(--ink-55); }
.b2b-bignums dd { margin: 2px 0 0; font-size: 34px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; }
.b2b-bignums dd small { font-size: 18px; margin-left: 2px; }
.b2b-bignums dt small { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--ink-40); }
.b2b-badges small { margin-left: 2px; font-size: 10px; font-weight: 600; opacity: .6; }
.b2b-bignums dd.is-orange { color: var(--orange); }

.b2b-proof__pair { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 18px 0 10px; }
.b2b-proof__img { position: relative; width: min(42vw, 230px); margin: 0; transform: rotate(-3deg); }
.b2b-proof__img--b { margin: 40px 0 0 -6%; transform: rotate(4deg); }
.b2b-proof__img img { display: block; width: 100%; height: auto; border-radius: 6px; border: 5px solid var(--white); background: var(--white); box-shadow: var(--shadow-card); }
.b2b-proof__img--b .b2b-pin { left: auto; right: -6px; top: auto; bottom: -14px; }

.b2b-gallery__hint { font-size: 13px; color: var(--ink-40); }

.b2b-faq__list { display: flex; flex-direction: column; margin-top: 20px; border-top: 1.5px solid var(--black); }
.b2b-faq__list details { border-bottom: 1.5px solid var(--ink-12); }
.b2b-faq__list summary { display: flex; align-items: center; min-height: 56px; font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.b2b-faq__list summary::-webkit-details-marker { display: none; }
.b2b-faq__list summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 22px; font-weight: 600; }
.b2b-faq__list details[open] summary::after { content: "−"; }
.b2b-faq__list p { padding: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }

/* 손님 흐름 그림 (2026-11-07): 모바일은 옆으로 넘기기, 데스크톱은 3칸 */
.b2b-flow { display: grid; grid-auto-flow: column; grid-auto-columns: 70vw; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; list-style: none; counter-reset: flow;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.b2b-flow li { counter-increment: flow; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.b2b-flow__pic { position: relative; margin: 0 0 8px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--black); background: #fbe9ea; }
.b2b-flow__pic::before { content: counter(flow); position: absolute; left: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.b2b-flow__pic > img { width: 100%; height: 100%; object-fit: cover; }
.b2b-flow__pic--phone { display: flex; align-items: center; justify-content: center; }
.b2b-phone { display: block; width: 52%; padding: 7px; border-radius: 22px; background: var(--black); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.b2b-phone img { display: block; width: 100%; border-radius: 15px; }
.b2b-flow__sticker { position: absolute; right: 12%; top: 14%; width: 64px; font-size: 13px; }
.b2b-flow b { font-size: 17px; font-weight: 900; }
.b2b-flow li > span { font-size: 13px; color: var(--ink-55); }

/* 폼 도움말 */
.b2b-field__hint { margin: 2px 0 0; font-size: 13px; color: var(--ink-55); }
.b2b-field__hint.is-error { color: var(--orange); font-weight: 700; }
.b2b-form__safe { margin-bottom: -6px; font-size: 13px; font-weight: 700; color: var(--ink-55); text-align: center; }
.b2b-done__alt { font-size: 13px; color: var(--ink-55); padding-left: 4px; }
.b2b-done__alt a { color: var(--black); font-weight: 700; text-decoration: underline; }
html:not(.os-other) .b2b-done__alt { display: none; }   /* 폰은 OS 스토어로 바로 가므로 PC 에서만 */

/* 사진 확대 */
.b2b-zoom { max-width: min(92vw, 520px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: var(--white); overflow: hidden; }
.b2b-zoom::backdrop { background: rgba(0, 0, 0, .7); }
.b2b-zoom img { display: block; width: 100%; max-height: calc(92vh - 56px); object-fit: contain; }
.b2b-zoom__close { width: 100%; height: 56px; border: 0; border-top: 1.5px solid var(--ink-12); background: var(--white); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }

/* 모바일 고정 버튼 */
.b2b-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1.5px solid var(--black);
  transform: translateY(110%); transition: transform .25s ease;
}
.b2b-sticky.is-visible { transform: none; }
.b2b-sticky .btn { width: 100%; height: 50px; font-size: 16px; }

@media (min-width: 560px) {
  .b2b-row { grid-template-columns: 1fr 1fr; }
  .b2b-chips { grid-template-columns: repeat(4, 1fr); }
  .b2b-chips--3 { grid-template-columns: repeat(3, 1fr); }
  .b2b-card { padding: 32px 32px 28px; }
}
@media (min-width: 900px) {
  .b2b-hero { padding: 56px 0 64px; }
  .b2b-hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "copy demo" "more demo"; column-gap: 48px; row-gap: 20px; align-items: start; }
  .b2b-hero__copy { grid-area: copy; align-self: end; }
  .b2b-hero__more { grid-area: more; }
  .b2b-demo { grid-area: demo; align-self: center; gap: 22px; padding: 0; }
  .b2b-demo__phone { width: 262px; padding: 8px; border-radius: 34px; }
  .b2b-demo__phone video { border-radius: 26px; }
  .b2b-demo__steps { gap: 10px; }
  .b2b-demo__steps button { padding: 13px 14px 14px 50px; }
  .b2b-demo__steps button::before { left: 13px; }
  .b2b-demo__steps b { font-size: 17px; }
  .b2b-demo__steps span { font-size: 13px; }
  .b2b-hero__title { font-size: 56px; }
  .b2b-stats { max-width: 520px; }
  .b2b-stats dd { font-size: 32px; }
  .b2b-proof__img { width: 250px; }
  .b2b-form-section { padding: 64px 0 80px; }
    .b2b-sec { padding: 80px 0; }
  .b2b-sec__title { font-size: 44px; }
  .b2b-proof { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .b2b-gallery__hint { display: none; }
  .b2b-how { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
  .b2b-flow { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 4px 0 0; overflow: visible; }
  .b2b-sticky { display: none; }
}
@media (prefers-reduced-motion: reduce) { .b2b-sticky { transition: none; } }

/* 영상 창: 9:16, 화면 높이에 맞춘다 */
.b2b-video { width: min(92vw, calc((88vh - 56px) * 9 / 16)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; background: var(--black); overflow: hidden; }
.b2b-video::backdrop { background: rgba(0, 0, 0, .8); }
.b2b-video__frame { aspect-ratio: 9 / 16; background: var(--black); }
.b2b-video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.b2b-video__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.b2b-video__bar { display: flex; height: 56px; background: var(--white); }
.b2b-video__bar > * { flex: 1; display: flex; align-items: center; justify-content: center; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 800; color: var(--black); text-decoration: none; cursor: pointer; }
.b2b-video__yt { border-right: 1.5px solid var(--ink-12) !important; }

@media (prefers-reduced-motion: reduce) { .b2b-demo__steps button, .b2b-demo__steps button::before { transition: none; } }

/* ---------- 업종별 실제 사례 (#cases) ----------
   2026-11-23 스크롤로 바뀌는 무대 → 2026-11-24 사용자 요청으로 세 업종을 한 열로 이어 붙임. 글·영상 자리는 번갈아(매장 글-영상 · 축제 영상-글 · 지자체 글-영상).
   장면마다 그 업종 실제 사진 벽(b2b.js 가 data-imgs 로 기둥을 만든다) + 반투명 검정. 위아래 끝은 같은 검정으로 녹여 이음매가 안 보이고, 이음매마다 굵은 글자 테이프 두 줄이 엇갈려 지나간다.
   .is-live(b2b.js, 모션 최소화·데이터 절약이면 안 붙음) = 화면에 들어오면 카드가 3D 로 뒤집혀 들어오고 도장·종이 조각, 비눗방울이 떠오르고, 스크롤에 따라 카드가 살짝 돌고 사진 벽이 흐른다 */
.b2b-story { padding-bottom: 44px; }
.b2b-story__list { --seam: #0d0c0f; margin-top: 64px; background: var(--seam); }
.has-stage .b2b-story__list { position: relative; z-index: 2; }   /* 3D 무대(떠다니는 카드)보다 위 */
.b2b-scene { --bg: #1c0b10; --fg: #fff; --sub: rgba(255, 255, 255, .74); --accent: #ff5a47; --line: rgba(255, 255, 255, .24);
  position: relative; padding: 104px var(--gutter) 96px; color: var(--fg); }
.b2b-scene[data-cat="festival"] { --bg: #0c1846; --accent: #ffd400; }
.b2b-scene[data-cat="tourism"] { --bg: #241a02; --accent: #ffc21a; }
.b2b-scene__bg { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
/* 사진 벽: 비스듬한 기둥들이 위아래로 엇갈려 천천히 흐르고, 스크롤에 따라 벽 전체가 조금 밀린다(--py) */
.b2b-scene__wall { position: absolute; inset: -30% -18%; display: flex; gap: 12px; rotate: -8deg; translate: 0 calc(var(--py, 0) * 1px); }
.b2b-wall__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.b2b-wall__col img { display: block; width: 100%; height: auto; border-radius: 10px; background: #222; }
/* 반투명 검정: 가운데는 조금 밝게, 위아래 끝은 이음매 색으로 녹인다 */
.b2b-scene__shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--seam) 0%, transparent 18%, transparent 78%, var(--seam) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 35%, rgba(0, 0, 0, .45) 100%), rgba(0, 0, 0, .62); }
.b2b-deco { position: absolute; left: var(--x); top: var(--y); width: calc(56px * var(--s)); height: calc(56px * var(--s)); }
.b2b-deco--ring { border-radius: 50%; border: 3px solid var(--accent); box-shadow: inset 0 0 0 9px rgba(0, 0, 0, .55), inset 0 0 0 12px var(--accent), 0 0 24px rgba(255, 90, 71, .45); }
.b2b-deco--star svg { width: 100%; height: 100%; fill: var(--accent); }
/* 이음매 테이프: 장면 윗변을 가운데로 두 줄(강조색 띠 · 흰 띠)이 엇갈린다. 상자가 가로를 잘라 페이지가 옆으로 안 밀린다 */
.b2b-scene__tapes { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 300px; translate: 0 -50%; overflow: hidden; pointer-events: none; }
.b2b-tape { position: absolute; left: -10%; right: -10%; top: 50%; display: block; overflow: hidden; padding: .16em 0 .2em; white-space: nowrap;
  font-size: clamp(22px, 6vw, 28px); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; color: #111;
  background: var(--accent); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .75), inset 0 3px 0 rgba(0, 0, 0, .14), inset 0 -3px 0 rgba(0, 0, 0, .14);
  translate: 0 -105%; rotate: -4deg; transition: opacity .4s ease, transform .8s cubic-bezier(.2, .9, .25, 1.1); }
.b2b-tape--b { translate: 0 5%; rotate: 3deg; background: #fff; }
.b2b-tape:empty { display: none; }
.b2b-tape > span { display: inline-block; animation: b2b-tape 26s linear infinite paused; }
.b2b-tape--b > span { animation-duration: 32s; animation-direction: reverse; }
.b2b-tape b { font-weight: 900; }
.b2b-tape b::after { content: ""; display: inline-block; width: .62em; height: .62em; margin: 0 .55em; vertical-align: .08em; background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes b2b-tape { to { transform: translateX(-50%); } }
/* 카드·글 */
.b2b-scene__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.b2b-scene__text { order: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 520px; width: 100%; text-align: center; }
.b2b-scene__card { order: 2; position: relative; display: block; width: min(66vw, 280px); color: inherit; text-decoration: none; perspective: 1200px; }
.b2b-scene[data-cat="festival"] .b2b-scene__card { order: 0; }   /* 가운데 장면은 영상이 먼저 */
.b2b-scene__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 3px solid #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
.b2b-scene__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-scene__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0, 0, 0, .7); border: 2px solid #fff; transition: scale .15s ease, background .15s ease; }
.b2b-scene__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -6px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.b2b-scene__card:hover .b2b-scene__play, .b2b-scene__card:focus-visible .b2b-scene__play { scale: 1.1; background: var(--orange); }
.b2b-scene__card:focus-visible { outline: none; }
.b2b-scene__card:focus-visible .b2b-scene__media { outline: 3px solid var(--accent); outline-offset: 4px; }
.b2b-scene__stamp { position: absolute; right: -16px; top: 18px; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #111; font-size: 15px; font-weight: 900; letter-spacing: .08em;
  transform: rotate(9deg); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); }
.b2b-scene[data-cat="festival"] .b2b-scene__stamp { right: auto; left: -16px; transform: rotate(-9deg); }
.b2b-scene__kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 800; color: var(--fg); background: rgba(0, 0, 0, .25); }
.b2b-scene__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.b2b-scene__title { font-size: clamp(26px, 7vw, 40px); font-weight: 900; line-height: 1.2; letter-spacing: -0.04em; color: var(--fg); }
.b2b-scene__desc { font-size: 15px; line-height: 1.65; color: var(--sub); }
.b2b-scene__more { font-size: 14px; font-weight: 800; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.b2b-story .b2b-jump { margin-top: 36px; }

/* ---- 움직임 (.is-live) ---- */
.b2b-story.is-live .b2b-wall__col { animation: b2b-wall var(--wd, 60s) linear var(--wdl, 0s) infinite; }
.b2b-story.is-live .b2b-wall__col:nth-child(even) { animation-direction: reverse; }
@keyframes b2b-wall { to { transform: translateY(calc(-50% - 6px)); } }   /* 같은 목록 두 벌, 한 벌 + 간격 반만큼 */
.b2b-story.is-live .b2b-scene.is-vis .b2b-tape > span { animation-play-state: running; }
.b2b-story.is-live .b2b-scene:not(.is-vis) .b2b-wall__col, .b2b-story.is-live .b2b-scene:not(.is-vis) .b2b-bubble,
.b2b-story.is-live .b2b-scene:not(.is-vis) .b2b-bubble i { animation-play-state: paused; }   /* 화면 밖 장면은 멈춘다 */
/* 테이프: 이음매가 화면에 들어오면 쭉 펴진다 */
.b2b-story.is-live .b2b-scene:not(.is-seen) .b2b-tape { opacity: 0; transform: scaleX(.3); }
.b2b-story.is-live .b2b-scene.is-seen .b2b-tape--b { transition-delay: .1s; }
/* 카드: 들어올 때 3D 로 뒤집히며(영상 쪽에서), 들어온 뒤엔 스크롤(--tilt·--rot)에 따라 살짝 돈다 */
.b2b-story.is-live .b2b-scene__card { opacity: 0; transform: translateX(var(--from, 40%)) rotateY(var(--ry, -70deg)) scale(.82);
  transition: transform .9s cubic-bezier(.2, .9, .25, 1.12), opacity .45s ease; }
.b2b-story.is-live .b2b-scene[data-cat="festival"] .b2b-scene__card { --from: -40%; --ry: 70deg; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__card { opacity: 1; transform: translateX(0) rotateY(var(--tilt, 0deg)) rotate(var(--rot, -2deg)) scale(1); }
.b2b-story.is-live .b2b-scene.is-on.is-settled .b2b-scene__card { transition: transform .25s ease-out, opacity .45s ease; }
.b2b-story.is-live .b2b-scene__text > * { opacity: 0; translate: 0 26px; transition: opacity .45s ease, translate .6s cubic-bezier(.2, .9, .25, 1.1); }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__text > * { opacity: 1; translate: 0 0; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__text > :nth-child(1) { transition-delay: .12s; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__text > :nth-child(2) { transition-delay: .2s; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__text > :nth-child(3) { transition-delay: .28s; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__text > :nth-child(4) { transition-delay: .36s; }
.b2b-story.is-live .b2b-scene.is-on .b2b-scene__stamp { animation: b2b-stamp .7s cubic-bezier(.2, .9, .3, 1.4) .35s both; }
@keyframes b2b-stamp { 0% { scale: 0; rotate: -40deg; } 70% { scale: 1.25; rotate: 6deg; } 100% { scale: 1; rotate: 0deg; } }
/* 장식: 들어오면 튀어나오고, 별은 반짝인다 */
.b2b-story.is-live .b2b-deco { opacity: 0; scale: 0; transition: opacity .3s ease, scale .6s cubic-bezier(.2, .9, .3, 1.5); }
.b2b-story.is-live .b2b-scene.is-on .b2b-deco { opacity: 1; scale: 1; transition-delay: .2s; }
.b2b-story.is-live .b2b-deco--star svg { animation: b2b-twinkle 1.6s ease-in-out infinite alternate; }
.b2b-story.is-live .b2b-deco--star:nth-of-type(odd) svg { animation-delay: -.8s; }
@keyframes b2b-twinkle { from { opacity: .45; rotate: -8deg; } to { opacity: 1; rotate: 10deg; } }
/* 비눗방울: 아래에서 흔들리며 떠오르고 위에서 사라진다(b2b.js 가 크기·위치·속도를 섞어 만든다). 에셋은 수식으로 그린 투명 PNG */
.b2b-scene__bubbles { position: absolute; inset: 0; container-type: size; }
.b2b-bubble { position: absolute; left: var(--x); top: 100%; width: var(--s); height: var(--s); opacity: 0; animation: b2b-rise var(--d, 14s) linear var(--dl, 0s) infinite; }
.b2b-bubble i { display: block; width: 100%; height: 100%; background: url(/assets/img/b2b-bubble-a.webp) center / contain no-repeat;
  animation: b2b-sway var(--sd, 3s) ease-in-out var(--dl, 0s) infinite alternate; }
.b2b-bubble--b i { background-image: url(/assets/img/b2b-bubble-b.webp); }
@keyframes b2b-rise {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: var(--o, .9); }
  82% { opacity: var(--o, .9); }
  100% { opacity: 0; transform: translateY(-115vh); transform: translateY(calc(-100cqh - 130%)); }
}
@keyframes b2b-sway { from { transform: translateX(calc(var(--sw, 14px) * -1)) scale(1.04, .96); } to { transform: translateX(var(--sw, 14px)) scale(.96, 1.04); } }
/* 장면이 들어올 때 카드 자리에서 터지는 종이 조각 (b2b.js 가 자리를 잡고 만들고 지운다) */
.b2b-scene__burst { position: absolute; left: var(--bx, 50%); top: var(--by, 50%); width: 0; height: 0; }
.b2b-confetti { position: absolute; left: 0; top: 0; width: var(--w, 10px); height: var(--h, 14px); border-radius: var(--br, 2px); background: var(--c);
  animation: b2b-confetti 1.15s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes b2b-confetti {
  0% { translate: 0 0; rotate: 0deg; opacity: 1; scale: .4; }
  60% { opacity: 1; }
  100% { translate: var(--dx) var(--dy); rotate: var(--r); opacity: 0; scale: 1; }
}
@media (min-width: 900px) {
  .b2b-story__list { margin-top: 84px; }
  .b2b-scene { display: flex; align-items: center; min-height: min(100vh, 900px); padding: 150px var(--gutter) 140px; }
  .b2b-scene__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; width: 100%; }
  .b2b-scene__text { flex: 1; align-items: flex-start; text-align: left; max-width: 540px; }
  .b2b-scene[data-cat="festival"] .b2b-scene__text { padding-left: 24px; }
  .b2b-scene__card { flex: none; width: auto; height: min(68vh, 620px); aspect-ratio: 9 / 16; }
  .b2b-scene__media { height: 100%; }
  .b2b-scene__title { font-size: 48px; }
  .b2b-scene__desc { font-size: 17px; }
  .b2b-scene__tapes { height: 360px; }
  .b2b-tape { font-size: clamp(30px, 3.4vw, 50px); rotate: -3deg; }
  .b2b-tape--b { rotate: 2.4deg; }
  .b2b-scene__wall, .b2b-wall__col { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .b2b-scene__play { transition: none; } }
