/* BLUE CMS 소개 페이지. 공용 GNB·문의·푸터는 건드리지 않고 #bcm 안만 꾸민다. */
.bcm-page {
    background: #f5f6fa;
}

.bcm-page.bcm-pinned .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bcm {
    --bcm-navy: #070c1d;
    --bcm-navy-2: #0e1631;
    --bcm-ink: #10162e;
    --bcm-text: #3c4459;
    --bcm-muted: #5b6479;
    --bcm-blue: #4562e8;
    --bcm-blue-deep: #3047c4;
    --bcm-blue-hi: #7d93ff;
    --bcm-ice: #c3cdff;
    --bcm-paper: #f5f6fa;
    --bcm-warm: #f3efe8;
    --bcm-line: #dde2ee;
    --bcm-live: #0e8a52;
    --bcm-live-bg: #e3f6ec;
    --bcm-hdr: 72px;
    --bcm-mono: 'JetBrains Mono', ui-monospace, monospace;
    --bcm-display: 'Space Grotesk', 'Pretendard Variable', Pretendard, sans-serif;
    position: relative;
    display: block;
    overflow-x: clip;
    color: var(--bcm-ink);
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bcm-paper);
}

:where(.bcm) :where(h1, h2, h3, p, ol, ul, li, figure, dl, dd) {
    margin: 0;
    padding: 0;
}

:where(.bcm) :where(ol, ul) {
    list-style: none;
}

:where(.bcm) :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(.bcm) :where(a) {
    color: inherit;
    text-decoration: none;
}

:where(.bcm) :where(h1, h2, h3) {
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
    letter-spacing: -0.035em;
}

:where(.bcm) :where(p, li, summary, dd) {
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.bcm-skip {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--bcm-ink);
    font-weight: 700;
}

.bcm-skip:not(:focus) {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.bcm-wrap {
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
}

.bcm-eyebrow {
    font-family: var(--bcm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--bcm-blue);
    margin-bottom: 14px;
}

.bcm h2 {
    font-size: clamp(32px, 4.4vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    color: inherit;
}

.bcm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bcm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bcm-btn:hover {
    transform: translateY(-2px);
}

.bcm-btn:focus-visible {
    outline: 3px solid var(--bcm-blue-hi);
    outline-offset: 3px;
}

.bcm-btn--light {
    background: #fff;
    color: var(--bcm-navy);
}

.bcm-btn--light:hover {
    background: var(--bcm-ice);
}

.bcm-btn--ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.bcm-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- 고정 장면 공통: JS가 .is-live 를 켜야만 트랙이 길어진다 ---------- */
.bcm-track {
    position: relative;
}

.bcm-stage {
    position: relative;
}

.bcm.is-live .bcm-track {
    height: calc(var(--len, 300) * 1vh);
    height: calc(var(--len, 300) * 1svh);
}

.bcm.is-live .bcm-stage {
    position: sticky;
    top: var(--bcm-hdr);
    height: calc(100vh - var(--bcm-hdr));
    height: calc(100svh - var(--bcm-hdr));
    overflow: hidden;
}

/* 좌우로 나뉜 장면의 제목은 한 줄이 칼럼 폭 안에 들어오는 크기로 맞춘다 */
.bcm-flip h2,
.bcm-write h2,
.bcm-undo h2,
.bcm-pop h2,
.bcm-design h2 {
    font-size: clamp(30px, 3.3vw, 46px);
}

/* ================= 01 HERO FILM ================= */
.bcm-film {
    background: var(--bcm-navy);
    color: #fff;
}

.bcm-film-stage {
    position: relative;
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--bcm-hdr));
    overflow: hidden;
    isolation: isolate;
}

.bcm-film-video,
.bcm-film-poster,
.bcm-film-poster img,
.bcm-film-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bcm-film-poster img,
.bcm-film-video {
    object-fit: cover;
}

.bcm-film-video {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bcm-film.is-ready .bcm-film-video {
    opacity: 1;
}

.bcm-film-shade {
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background:
        linear-gradient(90deg, rgba(7, 12, 29, 0.92) 0%, rgba(7, 12, 29, 0.72) 36%, rgba(7, 12, 29, 0.12) 68%, rgba(7, 12, 29, 0) 100%),
        linear-gradient(0deg, rgba(7, 12, 29, 0.7) 0%, rgba(7, 12, 29, 0) 34%);
}

.bcm-film-intro {
    position: relative;
    z-index: 3;
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 56px 0 120px;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

/* 영상이 도는 동안에는 소개를 걷어 화면 전체를 보여 주고, 멈추면 다시 보여 준다 */
.bcm-film.has-video:not(.is-intro):not(.is-paused) .bcm-film-intro {
    opacity: 0;
    transform: translateY(-28px);
    visibility: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s 0.7s;
}

.bcm-film.has-video:not(.is-intro):not(.is-paused) .bcm-film-shade {
    opacity: 0.25;
}

.bcm-film-intro > * {
    max-width: 640px;
}

.bcm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(195, 205, 255, 0.35);
    background: rgba(7, 12, 29, 0.45);
    font-size: 14px;
    font-weight: 700;
    color: var(--bcm-ice);
    margin-bottom: 22px;
}

.bcm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc8f;
    box-shadow: 0 0 0 4px rgba(61, 220, 143, 0.18);
}

.bcm-film-intro h1 {
    font-size: clamp(31px, 8.4vw, 92px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #fff;
    margin-bottom: 24px;
    max-width: none;
}

.bcm-film-lead {
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
    max-width: 33em;
    margin-bottom: 30px;
}

.bcm-film-caps {
    position: absolute;
    z-index: 3;
    left: max(1.5rem, calc((100% - var(--max-width, 1200px)) / 2));
    bottom: 92px;
    width: min(560px, calc(100% - 3rem));
    display: none;
}

.bcm-film-caps li {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 24px 22px;
    border-radius: 18px;
    background: rgba(7, 12, 29, 0.82);
    border: 1px solid rgba(195, 205, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bcm-film-caps li.is-on {
    opacity: 1;
    transform: none;
}

.bcm-film-caps b {
    display: block;
    font-family: var(--bcm-display);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--bcm-blue-hi);
    margin-bottom: 8px;
}

.bcm-film-caps span {
    display: block;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
    word-break: keep-all;
    text-wrap: pretty;
}

.bcm-film-hud {
    position: absolute;
    z-index: 3;
    left: max(1.5rem, calc((100% - var(--max-width, 1200px)) / 2));
    right: max(1.5rem, calc((100% - var(--max-width, 1200px)) / 2));
    bottom: 28px;
    display: none;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(7, 12, 29, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--bcm-mono);
    font-size: 14px;
    color: #fff;
}

.bcm-film-tc i {
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
}

.bcm-film-bar {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.bcm-film-bar i {
    position: absolute;
    inset: 0;
    background: var(--bcm-blue-hi);
    transform-origin: 0 50%;
    transform: scaleX(var(--film, 0));
}

.bcm-film-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: -4px 0 -4px -8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.bcm-film-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

.bcm-film-toggle:focus-visible {
    outline: 3px solid var(--bcm-blue-hi);
    outline-offset: 2px;
}

/* 일시정지: 두 막대, 멈춘 상태: 재생 삼각형 */
.bcm-film-toggle i {
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.bcm-film.is-paused .bcm-film-toggle i {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent currentColor;
}

.bcm-film.has-video .bcm-film-caps,
.bcm-film.has-video .bcm-film-hud {
    display: flex;
}

/* JS가 없으면 장면 설명을 소개 아래 목록으로 보여 준다 */
.bcm-film:not(.has-video) .bcm-film-caps {
    display: grid;
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 3;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin: -72px auto 56px;
}

.bcm-film:not(.has-video) .bcm-film-caps li {
    position: relative;
    opacity: 1;
    transform: none;
}

.bcm-film:not(.has-video) .bcm-film-caps span {
    font-size: 17px;
}

/* ================= 02 FRONT / BACK ================= */
.bcm-flip {
    background: var(--bcm-paper);
}

.bcm-flip-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 96px 0;
}

.bcm.is-live .bcm-flip-stage {
    padding: 0;
}

.bcm-flip-copy p:not(.bcm-eyebrow) {
    margin-top: 22px;
    font-size: 18px;
    color: var(--bcm-text);
    max-width: 30em;
}

.bcm-flip-state {
    position: relative;
    margin-top: 30px;
    height: 46px;
}

.bcm-flip-state span {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bcm-flip-state .is-front {
    background: #fff;
    color: var(--bcm-ink);
    border: 1px solid var(--bcm-line);
}

.bcm-flip-state .is-back {
    background: var(--bcm-navy);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
}

.bcm-flip.is-back .bcm-flip-state .is-front {
    opacity: 0;
    transform: translateY(-10px);
}

.bcm-flip.is-back .bcm-flip-state .is-back {
    opacity: 1;
    transform: none;
}

.bcm-flip-scene {
    position: relative;
    perspective: 1800px;
}

.bcm-flip-card {
    position: relative;
    aspect-ratio: 16 / 10;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--tilt, 0) * 1deg)) rotateY(calc(var(--flip, 0) * 1deg)) scale(var(--fs, 1));
    container-type: inline-size;
}

.bcm-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 50px 100px rgba(16, 22, 46, 0.22), 0 0 0 1px rgba(16, 22, 46, 0.08);
}

.bcm-face--back {
    transform: rotateY(180deg);
    background: #f5f6fa;
}

.bcm-face--back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
}

.bcm-win-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #ece7df;
    border-bottom: 1px solid #ddd5c8;
}

.bcm-win-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfc6b8;
}

.bcm-win-bar span {
    margin-left: 10px;
    padding: 2px 12px;
    border-radius: 7px;
    background: #fff;
    font-family: var(--bcm-mono);
    font-size: 14px;
    color: #6e665b;
}

.bcm-face--front {
    background: #fbfaf7;
    color: #2b2620;
}

.bcm-site {
    position: relative;
    height: calc(100% - 34px);
    padding: 0 3.2cqw;
    overflow: hidden;
}

.bcm-site-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 9cqw;
    max-height: 64px;
    font-size: max(13px, 1.7cqw);
    font-weight: 700;
}

.bcm-site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: max(14px, 2.1cqw);
    font-weight: 800;
}

.bcm-site-logo b {
    display: grid;
    place-items: center;
    width: max(24px, 3.4cqw);
    height: max(24px, 3.4cqw);
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: max(13px, 1.5cqw);
}

.bcm-site-nav {
    display: flex;
    gap: 2.4cqw;
    align-items: center;
}

.bcm-site-nav em {
    font-style: normal;
    padding: 0.7cqw 1.6cqw;
    border-radius: 999px;
    background: #2b2620;
    color: #fff;
}

.bcm-site-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3cqw;
    align-items: center;
    margin-bottom: 2.6cqw;
}

.bcm-site-hero small {
    display: block;
    font-family: var(--bcm-display);
    font-size: max(13px, 1.25cqw);
    letter-spacing: 0.16em;
    color: #8a7f70;
}

.bcm-site-hero strong {
    display: block;
    margin: 1.4cqw 0;
    font-size: max(18px, 4.3cqw);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.bcm-site-hero span {
    display: block;
    font-size: max(13px, 1.5cqw);
    color: #6e665b;
    line-height: 1.55;
}

.bcm-site-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1.4cqw;
}

.bcm-site-sec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3cqw;
}

.bcm-site-list p,
.bcm-site-cards p {
    font-size: max(14px, 1.9cqw);
    font-weight: 800;
    margin-bottom: 1cqw;
}

.bcm-site-list span {
    display: flex;
    align-items: center;
    gap: 1cqw;
    padding: 1.15cqw 0;
    border-top: 1px solid #e6e0d6;
    font-size: max(13px, 1.55cqw);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.bcm-site-list em {
    flex: none;
    font-style: normal;
    font-size: max(13px, 1.15cqw);
    padding: 0.3cqw 0.9cqw;
    border-radius: 999px;
    background: #efe9e1;
    color: #7b6d5a;
}

.bcm-site-list span:first-of-type em {
    background: var(--bcm-live);
    color: #fff;
}

.bcm-site-list time {
    margin-left: auto;
    font-family: var(--bcm-display);
    color: #9a8f80;
    font-size: max(13px, 1.3cqw);
}

.bcm-site-cards > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4cqw;
}

.bcm-site-cards img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1cqw;
}

.bcm-site-cards figcaption {
    margin-top: 0.8cqw;
    font-size: max(13px, 1.45cqw);
    font-weight: 700;
    line-height: 1.4;
}

.bcm-site-pop {
    position: absolute;
    right: 3.4cqw;
    top: 8.6cqw;
    width: 35cqw;
    border-radius: 1.6cqw;
    background: #221d18;
    color: #f6efe4;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(40, 30, 20, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bcm-site-pop figure {
    position: relative;
    margin: 0;
}

.bcm-site-pop img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.bcm-site-pop em {
    position: absolute;
    left: 1.4cqw;
    top: 1.4cqw;
    padding: 0.4cqw 1cqw;
    border-radius: 999px;
    background: var(--bcm-live);
    color: #fff;
    font-style: normal;
    font-size: max(13px, 1.15cqw);
    font-weight: 800;
}

.bcm-site-pop i {
    position: absolute;
    right: 1.2cqw;
    top: 1.2cqw;
    display: grid;
    place-items: center;
    width: max(22px, 2.8cqw);
    height: max(22px, 2.8cqw);
    border-radius: 50%;
    background: rgba(34, 29, 24, 0.55);
    color: #fff;
    font-style: normal;
    font-size: max(14px, 1.7cqw);
    line-height: 1;
}

.bcm-site-pop-body {
    padding: 1.8cqw 2cqw;
}

.bcm-site-pop b {
    display: block;
    font-size: max(14px, 1.95cqw);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.03em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.bcm-site-pop small {
    display: block;
    margin-top: 0.8cqw;
    font-size: max(13px, 1.15cqw);
    color: rgba(246, 239, 228, 0.62);
}

.bcm-site-pop-body span {
    display: block;
    margin-top: 1.5cqw;
    padding: 1cqw 0;
    border-radius: 1cqw;
    background: #f3ead9;
    color: #221d18;
    font-size: max(13px, 1.35cqw);
    font-weight: 800;
    text-align: center;
}

.bcm-site-pop p {
    display: flex;
    justify-content: space-between;
    gap: 1cqw;
    margin: 0;
    padding: 0 2cqw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: max(13px, 1.15cqw);
    color: rgba(246, 239, 228, 0.7);
}

.bcm-site-pop p span {
    padding: 1cqw 0;
    white-space: nowrap;
}

.bcm-flip-tags li {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bcm-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(69, 98, 232, 0.35);
    opacity: var(--tags, 0);
    transform: translateY(calc((1 - var(--tags, 0)) * 14px)) translateZ(60px);
    pointer-events: none;
}

.bcm:not(.is-live) .bcm-flip-tags {
    display: none;
}

/* 정적: 앞면과 뒷면을 위아래로 나란히 */
.bcm:not(.is-live) .bcm-flip-card {
    aspect-ratio: auto;
    transform: none;
    display: grid;
    gap: 20px;
}

.bcm:not(.is-live) .bcm-face {
    position: relative;
    aspect-ratio: 16 / 10;
}

.bcm:not(.is-live) .bcm-face--back {
    transform: none;
}

/* ================= 03 WRITE ================= */
.bcm-write {
    background: linear-gradient(180deg, var(--bcm-paper) 0%, #e9edf8 100%);
}

.bcm-write-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 96px 0;
}

.bcm.is-live .bcm-write-stage {
    padding: 0;
}

.bcm-steps {
    margin-top: 32px;
    display: grid;
    gap: 6px;
}

.bcm-steps li {
    position: relative;
    padding: 16px 18px 16px 58px;
    border-radius: 16px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.45;
}

.bcm-steps li::before {
    content: attr(data-no);
    position: absolute;
    left: 18px;
    top: 17px;
    font-family: var(--bcm-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--bcm-blue);
}

.bcm-steps li.is-on {
    opacity: 1;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 22, 46, 0.08);
}

.bcm-steps li.is-done {
    opacity: 0.78;
}

.bcm-steps b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.bcm-steps span {
    display: block;
    font-size: 15px;
    color: var(--bcm-text);
    line-height: 1.6;
}

.bcm:not(.is-live) .bcm-steps li {
    opacity: 1;
}

.bcm-editor {
    position: relative;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 50px 110px rgba(23, 33, 70, 0.18), 0 0 0 1px rgba(23, 33, 70, 0.07);
    overflow: hidden;
}

.bcm-editor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: #161e30;
    color: #b6c0d6;
    font-size: 14px;
}

.bcm-editor-top b {
    color: #fff;
}

.bcm-editor-mode {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
}

.bcm-editor.is-saved .bcm-editor-mode {
    background: #f5b13d;
    color: #2a1d05;
}

.bcm-editor-body {
    padding: 22px 24px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.bcm-ed-field label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--bcm-ink);
}

.bcm-ed-input {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--bcm-line);
    border-radius: 10px;
    font-size: 16px;
    color: var(--bcm-ink);
    white-space: nowrap;
    overflow: hidden;
}

.bcm-ed-input--area {
    min-height: 0;
    padding: 11px 14px;
    white-space: normal;
    line-height: 1.5;
    font-size: 15px;
}

.bcm-ed-input.is-focus {
    border-color: var(--bcm-blue);
    box-shadow: 0 0 0 4px rgba(69, 98, 232, 0.14);
}

.bcm-ed-input.is-focus::after {
    content: '';
    width: 2px;
    height: 1.15em;
    margin-left: 2px;
    background: var(--bcm-blue);
    animation: bcm-caret 1s steps(1) infinite;
}

@keyframes bcm-caret {
    50% { opacity: 0; }
}

.bcm-ed-rich {
    border: 1px solid var(--bcm-line);
    border-radius: 12px;
    overflow: hidden;
}

.bcm-ed-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: #f5f6fa;
    border-bottom: 1px solid var(--bcm-line);
}

.bcm-ed-tools i {
    font-style: normal;
    min-width: 32px;
    height: 30px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #4d566b;
}

.bcm-ed-tools i.is-hot {
    background: var(--bcm-blue);
    color: #fff;
}

.bcm-ed-doc {
    position: relative;
    padding: 14px 16px;
    min-height: 150px;
    font-size: 15px;
    color: var(--bcm-text);
}

.bcm-ed-photo {
    margin-top: 10px;
    width: 64%;
    transform-origin: 0 0;
    opacity: var(--photo, 1);
    transform: translateY(calc((1 - var(--photo, 1)) * -30px)) scale(calc(0.9 + var(--photo, 1) * 0.1));
}

.bcm-ed-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.bcm-ed-photo figcaption {
    margin-top: 6px;
    font-size: 14px;
    color: var(--bcm-muted);
}

.bcm-ed-photo figcaption b {
    color: var(--bcm-live);
    margin-right: 6px;
}

.bcm-ed-sticker {
    position: absolute;
    right: 18px;
    bottom: 10px;
    width: 104px;
    height: 104px;
    opacity: var(--stk, 1);
    transform: scale(calc(0.4 + var(--stk, 1) * 0.6)) rotate(calc((1 - var(--stk, 1)) * -40deg));
}

.bcm-ed-publish {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 15px;
    font-weight: 600;
}

.bcm-ed-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bcm-ed-radio i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #b8c1d3;
}

.bcm-ed-radio.is-on i {
    border-color: var(--bcm-blue);
}

.bcm-ed-radio.is-on i::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bcm-blue);
}

.bcm-ed-when {
    padding: 6px 12px;
    border-radius: 9px;
    background: #fff6e4;
    color: #8a5a00;
    font-family: var(--bcm-display);
    font-size: 14px;
    font-weight: 700;
    opacity: var(--when, 1);
}

.bcm-ed-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bcm-ed-btn {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--bcm-line);
    font-size: 15px;
    font-weight: 800;
}

.bcm-ed-btn--primary {
    border-color: var(--bcm-blue);
    background: var(--bcm-blue);
    color: #fff;
    transform: scale(calc(1 - var(--press, 0) * 0.06));
    box-shadow: 0 0 0 calc(var(--press, 0) * 10px) rgba(69, 98, 232, 0.18);
}

.bcm-ed-result {
    position: absolute;
    right: 18px;
    top: 58px;
    width: min(320px, calc(100% - 36px));
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(16, 22, 46, 0.22), 0 0 0 1px rgba(16, 22, 46, 0.06);
    opacity: var(--result, 1);
    transform: translateY(calc((1 - var(--result, 1)) * -16px)) scale(calc(0.94 + var(--result, 1) * 0.06));
}

.bcm-ed-result-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5a00;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.bcm-ed-result b {
    display: block;
    font-size: 16px;
}

.bcm-ed-result > span:last-child {
    display: block;
    font-size: 14px;
    color: var(--bcm-muted);
}

/* ================= 04 UNDO ================= */
.bcm-undo {
    background: var(--bcm-navy);
    color: #fff;
}

.bcm-undo-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 96px 0;
}

.bcm.is-live .bcm-undo-stage {
    padding: 0;
}

.bcm-undo .bcm-eyebrow {
    color: var(--bcm-blue-hi);
}

.bcm-undo-p {
    margin-top: 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 31em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.bcm.is-live .bcm-undo-p {
    opacity: 0.4;
}

.bcm.is-live .bcm-undo[data-part="history"] .bcm-undo-p[data-part="history"],
.bcm.is-live .bcm-undo[data-part="trash"] .bcm-undo-p[data-part="trash"] {
    opacity: 1;
    color: #fff;
}

.bcm-undo-visual {
    display: grid;
    gap: 18px;
}

.bcm-hist {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: var(--bcm-navy-2);
    border: 1px solid rgba(195, 205, 255, 0.12);
}

.bcm-hist-doc {
    position: relative;
    padding: 22px 20px;
    border-radius: 14px;
    background: #fff;
    color: var(--bcm-ink);
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 230px;
}

.bcm-hist-ver {
    justify-self: start;
    font-family: var(--bcm-display);
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #edf0ff;
    color: var(--bcm-blue-deep);
}

.bcm-hist-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-height: 2.7em;
    word-break: keep-all;
}

.bcm-hist-line {
    height: 10px;
    border-radius: 5px;
    background: #e5e9f2;
    width: var(--lw, 100%);
    transition: width 0.4s ease;
}

.bcm-hist-line.is-short {
    width: var(--lw2, 60%);
}

.bcm-hist-badge {
    justify-self: start;
    margin-top: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--bcm-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 0 0 calc(var(--restore, 0) * 8px) rgba(69, 98, 232, 0.25);
}

.bcm-hist-doc.is-restored .bcm-hist-badge {
    background: #fff1d6;
    color: #8a5a00;
}

.bcm-hist-list {
    display: grid;
    gap: 6px;
    align-content: start;
}

.bcm-hist-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.bcm-hist-list b {
    grid-row: span 2;
    font-family: var(--bcm-display);
    font-size: 16px;
    color: var(--bcm-ice);
    align-self: center;
}

.bcm-hist-list span {
    font-size: 14px;
}

.bcm-hist-list em {
    font-style: normal;
    font-size: 13px;
    color: #3ddc8f;
}

.bcm-hist-list li.is-on {
    background: rgba(125, 147, 255, 0.16);
    border-color: rgba(125, 147, 255, 0.5);
    color: #fff;
}

.bcm-trash {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--bcm-navy-2);
    border: 1px solid rgba(195, 205, 255, 0.12);
    min-height: 128px;
}

.bcm-trash-card {
    position: relative;
    z-index: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--bcm-ink);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    word-break: keep-all;
    transform: translate(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px)) rotate(calc(var(--tr, 0) * 1deg)) scale(var(--ts, 1));
    opacity: var(--to, 1);
}

.bcm-trash-card em {
    flex: none;
    white-space: nowrap;
    font-style: normal;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #edf0ff;
    color: var(--bcm-blue-deep);
}

.bcm-trash-bin {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--bcm-ice);
    font-size: 14px;
    font-weight: 700;
}

.bcm-trash-bin svg {
    width: 64px;
    height: 64px;
    transform: scale(calc(1 + var(--bin, 0) * 0.14));
}

.bcm-trash-state {
    grid-column: 1 / -1;
    position: relative;
    height: 26px;
    font-size: 14px;
    font-weight: 700;
}

.bcm-trash-state span {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bcm-trash-state .is-del {
    color: #ff9d9d;
}

.bcm-trash-state .is-res {
    color: #3ddc8f;
}

.bcm-trash[data-state="deleted"] .is-del,
.bcm-trash[data-state="restored"] .is-res {
    opacity: 1;
}

.bcm:not(.is-live) .bcm-trash .is-res {
    opacity: 1;
}

/* ================= 05 POPUP ================= */
.bcm-pop {
    background: var(--bcm-warm);
}

.bcm-pop-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 96px 0;
}

.bcm.is-live .bcm-pop-stage {
    padding: 0;
}

.bcm-pop-copy p:not(.bcm-eyebrow):not(.bcm-pop-date) {
    margin-top: 20px;
    font-size: 17px;
    color: #4a4339;
    max-width: 30em;
}

.bcm-pop .bcm-eyebrow {
    color: #b0561d;
}

.bcm-pop-copy .bcm-pop-date {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 28px;
    padding: 12px 20px;
    border-radius: 16px;
    background: #2b2620;
    color: #fff;
}

.bcm-pop-date span {
    font-size: 14px;
    color: #d8cfc2;
}

.bcm-pop-date b {
    font-family: var(--bcm-display);
    font-size: 34px;
    letter-spacing: -0.02em;
}

.bcm-pop-visual {
    display: grid;
    gap: 18px;
}

.bcm-pop-site {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fbfaf7;
    box-shadow: 0 40px 90px rgba(60, 45, 30, 0.2), 0 0 0 1px rgba(60, 45, 30, 0.08);
    aspect-ratio: 16 / 10;
    container-type: inline-size;
}

.bcm-pop-page {
    position: absolute;
    inset: 34px 0 0;
}

.bcm-pop-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcm-pop-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 30, 40, 0.55), rgba(20, 30, 40, 0) 60%);
}

.bcm-pop-page strong,
.bcm-pop-page span {
    position: absolute;
    z-index: 1;
    left: 5cqw;
    color: #fff;
}

.bcm-pop-page strong {
    bottom: 13cqw;
    font-size: max(18px, 4.6cqw);
    letter-spacing: -0.03em;
}

.bcm-pop-page span {
    bottom: 8cqw;
    font-size: max(14px, 2.1cqw);
    font-weight: 600;
}

.bcm-pop-box {
    position: absolute;
    z-index: 2;
    left: var(--px);
    top: var(--py);
    width: max(180px, 34cqw);
    padding: 2.2cqw 2.4cqw;
    border-radius: 2cqw;
    background: #fff;
    color: #2b2620;
    box-shadow: 0 24px 60px rgba(20, 15, 10, 0.32);
    display: grid;
    gap: 4px;
    opacity: var(--on, 1);
    transform: translateY(calc((1 - var(--on, 1)) * 24px)) scale(calc(0.9 + var(--on, 1) * 0.1));
}

.bcm-pop-box b {
    font-size: max(14px, 2.4cqw);
    line-height: 1.3;
}

.bcm-pop-box span {
    font-family: var(--bcm-display);
    font-size: max(14px, 1.7cqw);
    color: #b0561d;
    font-weight: 700;
}

.bcm-pop-box small {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #eee7dc;
    font-size: max(14px, 1.5cqw);
    color: #8a7f70;
}

.bcm-pop-rail {
    position: relative;
    padding: 16px 18px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(60, 45, 30, 0.08);
}

.bcm-pop-lanes {
    position: relative;
    display: grid;
    gap: 6px;
}

.bcm-pop-lanes span {
    position: relative;
    margin-left: calc(var(--a) * 100%);
    width: calc((var(--b) - var(--a)) * 100%);
    padding: 5px 10px;
    border-radius: 8px;
    background: #f6e3d3;
    color: #8a4413;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: visible;
}

.bcm-pop-axis {
    position: relative;
    height: 22px;
    margin-top: 10px;
}

.bcm-pop-axis span {
    position: absolute;
    left: calc(var(--at) * 100%);
    transform: translateX(-50%);
    font-family: var(--bcm-display);
    font-size: 14px;
    color: #8a7f70;
}

.bcm-pop-axis span:first-child {
    transform: none;
}

.bcm-pop-axis span:last-child {
    transform: translateX(-100%);
}

.bcm-pop-needle {
    position: absolute;
    top: 10px;
    bottom: 34px;
    left: calc(18px + var(--day, 0.58) * (100% - 36px));
    width: 2px;
    background: #2b2620;
}

.bcm-pop-needle::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2b2620;
}

/* ================= 06 OPERATIONS ================= */
.bcm-ops {
    background: var(--bcm-navy);
    color: #fff;
}

.bcm-ops-stage {
    padding: 96px 0;
}

/* 가로 레일이 꺼진 화면(좁거나 낮은 화면)에서는 고정하지 않고 세로로 쌓는다 */
.bcm.is-live .bcm-ops:not(.is-rail) {
    height: auto;
}

.bcm.is-live .bcm-ops:not(.is-rail) .bcm-stage {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
}

/* 카드 폭은 화면 높이에 맞춰 키우고, 머리말·레일·진행 막대를 한 덩어리로 세로 가운데에 둔다 */
.bcm.is-live .bcm-ops.is-rail {
    --opw: min(78vw, clamp(640px, (100svh - var(--bcm-hdr) - 420px) * 1.6 + 36px, 860px));
}

.bcm.is-live .bcm-ops.is-rail .bcm-ops-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    padding: clamp(28px, 6vh, 64px) 0 28px;
}

.bcm-ops-head {
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin: 0 auto 40px;
}

.bcm.is-live .bcm-ops.is-rail .bcm-ops-head {
    margin-bottom: clamp(18px, 3.5vh, 36px);
}

.bcm-ops .bcm-eyebrow {
    color: var(--bcm-blue-hi);
}

.bcm-ops-rail {
    display: grid;
    gap: 22px;
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
}

.bcm.is-live .bcm-ops.is-rail .bcm-ops-rail {
    display: flex;
    width: max-content;
    margin: 0;
    padding-left: max(1.5rem, calc((100vw - var(--max-width, 1200px)) / 2));
    padding-right: 12vw;
    align-items: stretch;
    justify-self: start;
    transform: translate3d(calc(var(--rail, 0) * -1px), 0, 0);
    will-change: transform;
}

.bcm-op {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: var(--bcm-navy-2);
    border: 1px solid rgba(195, 205, 255, 0.12);
}

.bcm.is-live .bcm-ops.is-rail .bcm-op {
    width: var(--opw);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 18px;
}

.bcm-op figure {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f6fa;
    aspect-ratio: 16 / 10;
}

.bcm-op figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
}

.bcm.is-live .bcm-ops.is-rail .bcm-op figure {
    max-height: calc(100svh - var(--bcm-hdr) - 360px);
    min-height: 180px;
    aspect-ratio: auto;
    height: calc((var(--opw) - 36px) * 0.625);
}

/* 강조 상자는 원본 스크린샷(16:10) 기준 좌표를 쓴다. 그림이 낮게 잘려도 위치가 어긋나지 않는다 */
.bcm-op-map {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    pointer-events: none;
}

.bcm-op-hi {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    border-radius: 10px;
    border: 3px solid var(--bcm-blue);
    box-shadow: 0 0 0 9999px rgba(7, 12, 29, calc(var(--focus, 1) * 0.38));
    opacity: var(--focus, 1);
    transform: scale(calc(1.06 - var(--focus, 1) * 0.06));
}

.bcm-op-no {
    display: block;
    font-family: var(--bcm-display);
    font-size: 15px;
    color: var(--bcm-blue-hi);
    margin-bottom: 8px;
}

.bcm-op h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.bcm-op p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.bcm-op-code {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 0 0 16px;
    border-radius: 14px;
    background: #050915;
    box-shadow: inset 0 0 0 1px rgba(195, 205, 255, 0.1);
    overflow: hidden;
    font-family: var(--bcm-mono);
    font-size: 14px;
    line-height: 1.55;
    color: #c9d2ec;
}

.bcm-term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(195, 205, 255, 0.08);
}

.bcm-term-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.bcm-term-bar span {
    margin-left: 8px;
    font-family: inherit;
    font-size: 13px;
    color: rgba(201, 210, 236, 0.6);
}

.bcm-term,
.bcm-json,
.bcm-keep {
    margin-inline: 16px;
}

.bcm-term {
    display: grid;
    gap: 4px;
}

.bcm-term span {
    overflow-wrap: anywhere;
}

.bcm-term b {
    color: var(--bcm-blue-hi);
}

.bcm-term .is-cmd {
    color: #fff;
    font-weight: 700;
}

.bcm-term .is-ok,
.bcm-op-code .is-ok {
    color: #3ddc8f;
}

.bcm-term .is-dim {
    font-size: 13px;
    color: rgba(201, 210, 236, 0.55);
}

.bcm-json {
    flex: 1;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 0 14px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(125, 147, 255, 0.07);
    border: 1px solid rgba(125, 147, 255, 0.16);
    overflow: hidden;
}

.bcm-json-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0 -14px 6px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(125, 147, 255, 0.16);
    font-size: 13px;
}

.bcm-json-head span {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-weight: 700;
    color: #fff;
}

.bcm-json-head b {
    font-weight: 500;
    color: var(--bcm-ice);
}

.bcm-json > span {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.bcm-json i {
    font-style: normal;
    color: #9fb2ff;
}

.bcm-json em {
    font-style: normal;
    color: #f5c27a;
}

.bcm-json small {
    margin-left: auto;
    padding-left: 12px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 13px;
    color: rgba(201, 210, 236, 0.55);
}

.bcm-keep {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.bcm-keep span {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-weight: 700;
    color: rgba(201, 210, 236, 0.75);
    margin-right: 2px;
}

.bcm-keep code {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    font-family: inherit;
    color: #e4e9fb;
    white-space: nowrap;
}

.bcm.is-live .bcm-ops.is-rail .bcm-op-code {
    height: calc((var(--opw) - 36px) * 0.625);
    max-height: calc(100svh - var(--bcm-hdr) - 360px);
    min-height: 180px;
}

.bcm-ops-progress {
    display: none;
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin: 20px auto 0;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.bcm.is-live .bcm-ops.is-rail .bcm-ops-progress {
    display: block;
}

.bcm-ops-progress i {
    display: block;
    height: 100%;
    background: var(--bcm-blue-hi);
    transform-origin: 0 50%;
    transform: scaleX(var(--railp, 0));
}

/* ================= 07 MARKET ================= */
.bcm-market {
    background: radial-gradient(120% 90% at 85% 10%, #dfe6ff 0%, #eef1fb 45%, var(--bcm-paper) 100%);
}

.bcm-market-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 110px 0;
}

/* 스티커가 칼럼 밖까지 돌아다니므로 고정 장면은 화면 전체 폭을 쓰고 안쪽 여백으로 칼럼을 맞춘다 */
.bcm.is-live .bcm-market-stage {
    width: 100%;
    padding: 0 max(1.5rem, calc((100vw - var(--max-width, 1200px)) / 2));
}

.bcm-market-copy {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 3;
}

.bcm-market-cards {
    margin-top: 28px;
    display: grid;
    gap: 12px;
    max-width: 540px;
}

.bcm-market-cards article {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(30, 45, 110, 0.1), 0 0 0 1px rgba(30, 45, 110, 0.07);
}

.bcm-market-cards b {
    font-size: 19px;
    font-weight: 800;
}

.bcm-market-cards p {
    font-size: 15px;
    color: var(--bcm-text);
}

.bcm-market-cards a {
    justify-self: start;
    font-size: 15px;
    font-weight: 800;
    color: var(--bcm-blue-deep);
    border-bottom: 2px solid currentColor;
}

.bcm-market-cards em {
    justify-self: start;
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5a00;
}

/* 스티커 팔레트: 에디터의 '스티커 넣기' 창. 스티커는 칸 안에 있고, 스크롤 동안만 칸 밖을 돈다 */
.bcm-pal {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(100%, 460px, calc((100svh - var(--bcm-hdr) - 60px) * 0.74));
    padding: 20px;
}

.bcm-pal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(30, 45, 110, 0.16), 0 0 0 1px rgba(30, 45, 110, 0.08);
    opacity: var(--palbg, 1);
}

.bcm-pal-head,
.bcm-pal-tabs,
.bcm-pal-foot {
    position: relative;
    opacity: var(--palbg, 1);
}

.bcm-pal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.bcm-pal-head b {
    font-size: 18px;
    font-weight: 800;
}

.bcm-pal-head span {
    font-size: 14px;
    color: var(--bcm-muted);
}

.bcm-pal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bcm-pal-tabs span {
    padding: 5px 12px;
    border-radius: 999px;
    background: #f1f3fb;
    font-size: 14px;
    font-weight: 700;
    color: var(--bcm-text);
}

.bcm-pal-tabs .is-on {
    background: var(--bcm-ink);
    color: #fff;
}

.bcm-pal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.bcm-pal-slot {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #f5f7fd;
    border: 1.5px dashed rgba(69, 98, 232, 0.22);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.bcm-stk {
    position: relative;
    display: block;
    width: 88%;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(30, 45, 110, 0.16));
    will-change: transform;
}

.bcm-pal.is-picked .bcm-pal-slot:nth-child(8) {
    border: 2px solid var(--bcm-blue);
    background: #eef1ff;
}

.bcm-pal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--bcm-text);
}

.bcm-pal-foot b {
    color: var(--bcm-blue-deep);
}

.bcm-pal-foot em {
    font-style: normal;
    padding: 8px 16px;
    border-radius: 10px;
    background: #e6eaf8;
    color: var(--bcm-muted);
    font-weight: 800;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.bcm-pal.is-picked .bcm-pal-foot em,
.bcm:not(.is-live) .bcm-pal-foot em {
    background: var(--bcm-blue);
    color: #fff;
}

/* ================= 08 DESIGN RING ================= */
.bcm-design {
    background: radial-gradient(90% 80% at 70% 50%, #18245a 0%, #0b1230 52%, #05081a 100%);
    color: #fff;
}

.bcm-design-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    width: min(100% - 3rem, var(--max-width, 1200px));
    margin-inline: auto;
    padding: 96px 0;
}

/* 옆 사이트가 화면 오른쪽 끝까지 이어지도록 고정 장면은 전체 폭을 쓰고 안쪽 여백으로 칼럼을 맞춘다 */
.bcm.is-live .bcm-design-stage {
    --bcm-side: max(1.5rem, calc((100vw - var(--max-width, 1200px)) / 2));
    width: 100%;
    padding: 0 var(--bcm-side);
}

.bcm-design-copy {
    position: relative;
    z-index: 2;
    max-width: 30em;
}

.bcm-design .bcm-eyebrow {
    color: var(--bcm-blue-hi);
}

.bcm-design-copy p:not(.bcm-eyebrow):not(.bcm-design-now) {
    margin-top: 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
}

.bcm-design-copy .bcm-design-now {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(125, 147, 255, 0.14);
    border: 1px solid rgba(125, 147, 255, 0.35);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.bcm-design-now code {
    font-family: var(--bcm-mono);
    font-size: 14px;
    color: var(--bcm-ice);
    white-space: nowrap;
}

.bcm-ring {
    position: relative;
    height: min(700px, 62svh);
    perspective: 1600px;
    perspective-origin: 50% 46%;
}

.bcm.is-live .bcm-ring {
    margin-right: calc(var(--bcm-side) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 86%, transparent 100%);
}

.bcm-ring-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.bcm.is-live .bcm-ring-spin {
    left: calc((100% - var(--bcm-side)) / 2);
    transform: scale(var(--rs, 1));
}

.bcm-mini {
    --mw: 330px;
    position: absolute;
    left: calc(var(--mw) / -2);
    top: -200px;
    width: var(--mw);
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #fbfaf7;
    color: #2b2620;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transform: translateX(calc(var(--n) * 200px));
}

.bcm-mini.is-front {
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(125, 147, 255, 0.55);
}

.bcm-mini-bar {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.06);
}

.bcm-mini-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
}

.bcm-mini-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
}

.bcm-mini-head b {
    font-weight: 800;
}

.bcm-mini-head span {
    font-size: 14px;
    opacity: 0.7;
}

.bcm-mini-hero {
    position: relative;
    margin: 0 14px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}

.bcm-mini-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcm-mini-hero strong {
    position: absolute;
    left: 12px;
    bottom: 10px;
    right: 12px;
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.bcm-mini-board {
    margin: 12px 14px 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px dashed var(--bcm-blue);
    background: rgba(69, 98, 232, 0.06);
    display: grid;
    gap: 6px;
}

.bcm-mini-board code {
    font-family: var(--bcm-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--bcm-blue-deep);
    white-space: nowrap;
}

.bcm-mini-board span {
    font-size: 14px;
    font-weight: 700;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcm-mini--ongi { background: #fff7ec; color: #3b2a16; }
.bcm-mini--bomnal { background: #fdf3f5; color: #4a2330; }
.bcm-mini--bomnal .bcm-mini-board { border-color: #c95c7c; background: rgba(201, 92, 124, 0.06); }
.bcm-mini--bomnal .bcm-mini-board code { color: #a3405f; }
.bcm-mini--badagyeol { background: #0f2a33; color: #e9f4f6; }
.bcm-mini--badagyeol .bcm-mini-board { border-color: #6fd0d9; background: rgba(111, 208, 217, 0.08); }
.bcm-mini--badagyeol .bcm-mini-board code { color: #8fe3ea; }
.bcm-mini--badagyeol .bcm-mini-board span { border-top-color: rgba(255, 255, 255, 0.12); }
.bcm-mini--badagyeol .bcm-mini-bar { background: rgba(255, 255, 255, 0.08); }
.bcm-mini--badagyeol .bcm-mini-bar i { background: rgba(255, 255, 255, 0.25); }
.bcm-mini--golmok { background: #1c1210; color: #fff3ea; }
.bcm-mini--golmok .bcm-mini-board { border-color: #ff6a3d; background: rgba(255, 106, 61, 0.1); }
.bcm-mini--golmok .bcm-mini-board code { color: #ff9a76; }
.bcm-mini--golmok .bcm-mini-board span { border-top-color: rgba(255, 255, 255, 0.12); }
.bcm-mini--golmok .bcm-mini-bar { background: rgba(255, 255, 255, 0.08); }
.bcm-mini--golmok .bcm-mini-bar i { background: rgba(255, 255, 255, 0.25); }
.bcm-mini--geoleum { background: #fff4ec; color: #2a1a10; }
.bcm-mini--geoleum .bcm-mini-board { border-color: #ff6b1a; background: rgba(255, 107, 26, 0.07); }
.bcm-mini--geoleum .bcm-mini-board code { color: #c24e0b; }

.bcm:not(.is-live) .bcm-ring {
    height: auto;
    perspective: none;
}

.bcm:not(.is-live) .bcm-ring-spin {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.bcm:not(.is-live) .bcm-mini {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    padding-bottom: 14px;
    transform: none;
}

/* ================= 09 PROCESS ================= */
.bcm-process {
    padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
    background: var(--bcm-paper);
}

.bcm-process-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.bcm-process-head p:not(.bcm-eyebrow) {
    margin-top: 18px;
    font-size: 18px;
    color: var(--bcm-text);
}

.bcm-stack {
    display: grid;
    gap: 20px;
}

.bcm-stack li {
    position: sticky;
    top: calc(var(--bcm-hdr) + 28px + var(--i) * 14px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(18px, 4vw, 48px);
    align-items: center;
    padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 48px);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 -8px 40px rgba(16, 22, 46, 0.06), 0 0 0 1px rgba(16, 22, 46, 0.06);
}

.bcm-stack li:nth-child(even) {
    background: #f9faff;
}

.bcm-stack li:last-child {
    background: var(--bcm-blue);
    color: #fff;
}

.bcm-stack li > span {
    font-family: var(--bcm-display);
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--bcm-blue);
}

.bcm-stack li:last-child > span {
    color: #fff;
}

.bcm-stack h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    margin-bottom: 8px;
}

.bcm-stack p {
    font-size: 17px;
    color: var(--bcm-text);
    max-width: 36em;
}

.bcm-stack li:last-child p {
    color: rgba(255, 255, 255, 0.88);
}

/* ================= 10 SCOPE ================= */
.bcm-scope {
    padding: clamp(88px, 11vw, 140px) 0;
    background: #fff;
}

.bcm-scope-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px clamp(32px, 6vw, 96px);
    margin-bottom: clamp(36px, 5vw, 56px);
}

.bcm-scope-head > p {
    font-size: 17px;
    color: var(--bcm-text);
    max-width: 30em;
    text-wrap: pretty;
}

.bcm-scope-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
}

.bcm-scope-base,
.bcm-scope-extra {
    border-radius: 28px;
    padding: clamp(22px, 3vw, 36px);
}

.bcm-scope-base {
    background: linear-gradient(160deg, #f3f6ff 0%, #eef1fb 100%);
    box-shadow: inset 0 0 0 1px rgba(69, 98, 232, 0.1);
}

.bcm-scope-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 22px;
}

.bcm-scope-top h3 {
    font-size: 22px;
    font-weight: 800;
}

.bcm-scope-top span {
    font-size: 15px;
    color: var(--bcm-muted);
}

.bcm-scope-top b {
    font-family: var(--bcm-display);
    font-size: 20px;
    color: var(--bcm-blue);
    margin-right: 2px;
}

.bcm-scope-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bcm-scope-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: start;
    gap: 14px 12px;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(30, 45, 110, 0.06), 0 0 0 1px rgba(30, 45, 110, 0.06);
}

.bcm-scope-ic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e9edff;
    color: var(--bcm-blue);
}

.bcm-scope-ic svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bcm-scope-group h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
}

.bcm-scope-group h4 small {
    font-family: var(--bcm-display);
    font-size: 13px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef1fb;
    color: var(--bcm-blue-deep);
}

.bcm-scope-group ul {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.bcm-scope-group li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bcm-text);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.bcm-scope-group li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bcm-blue);
}

.bcm-scope-extra {
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 90% at 100% 0%, #24348a 0%, var(--bcm-navy) 62%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(16, 22, 46, 0.22);
}

.bcm-scope-extra .bcm-scope-top span {
    color: rgba(255, 255, 255, 0.66);
}

.bcm-scope-extra ul {
    display: grid;
    gap: 10px;
}

.bcm-scope-extra li {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 18px 16px 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px dashed rgba(195, 205, 255, 0.3);
}

.bcm-scope-extra li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 15px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: rgba(125, 147, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 4.5v9M4.5 9h9' fill='none' stroke='%23c3cdff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.bcm-scope-extra li b {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.bcm-scope-extra li small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.bcm-scope-extra > p {
    margin: 22px 0 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}

.bcm-scope-extra .bcm-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ================= 11 FAQ ================= */
.bcm-faq {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--bcm-paper);
}

.bcm-faq-head {
    margin-bottom: 32px;
}

.bcm-faq-list {
    display: grid;
    gap: 10px;
    max-width: 920px;
}

.bcm-faq-list details {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(16, 22, 46, 0.07);
}

.bcm-faq-list summary {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 20px 56px 20px 22px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.bcm-faq-list summary::-webkit-details-marker {
    display: none;
}

.bcm-faq-list summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 500;
    color: var(--bcm-blue);
    transition: transform 0.2s ease;
}

.bcm-faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.bcm-faq-list summary span {
    flex: none;
    font-family: var(--bcm-display);
    font-size: 15px;
    color: var(--bcm-blue);
}

.bcm-faq-list summary:focus-visible {
    outline: 3px solid var(--bcm-blue-hi);
    outline-offset: 2px;
    border-radius: 18px;
}

.bcm-faq-list details p {
    padding: 0 22px 22px 58px;
    font-size: 16px;
    color: var(--bcm-text);
}

/* ================= 12 FINALE ================= */
.bcm-end {
    background: var(--bcm-paper);
    color: #fff;
}

.bcm-end-stage {
    display: grid;
    place-items: center;
    min-height: 74svh;
    overflow: hidden;
    isolation: isolate;
}

/* 파란 화면은 B 표식 자리에서 퍼진다(--fx/--fy/--flood는 스크립트가 px로 넣는다) */
.bcm-end-flood {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(70% 70% at 50% 45%, #5873ff 0%, var(--bcm-blue) 45%, #2a3fb8 100%);
}

.bcm.is-live .bcm-end-flood {
    clip-path: circle(var(--flood, 0px) at var(--fx, 50%) var(--fy, 40%));
}

.bcm-end .bcm-end-kicker {
    position: absolute;
    left: 50%;
    top: clamp(24px, 6svh, 64px);
    z-index: 2;
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    justify-items: center;
    width: max-content;
    max-width: calc(100% - 3rem);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--bcm-ink);
    text-align: center;
    word-break: keep-all;
    opacity: var(--kicker, 0);
}

.bcm-end-kicker span {
    font-family: var(--bcm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--bcm-blue);
}

/* 이름표가 도는 궤도 두 줄 */
.bcm-end-orbit {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--orb, 1);
}

.bcm-end-orbit i {
    position: absolute;
    left: var(--ocx, 50%);
    top: var(--ocy, 50%);
    width: var(--o1w, 0);
    height: var(--o1h, 0);
    border-radius: 50%;
    border: 1.5px dashed rgba(69, 98, 232, 0.28);
    transform: translate(-50%, -50%) scale(var(--orbs, 1));
}

.bcm-end-orbit i + i {
    width: var(--o2w, 0);
    height: var(--o2h, 0);
    border-style: solid;
    border-color: rgba(69, 98, 232, 0.14);
}

.bcm-end-orbit.is-single i:first-child {
    display: none;
}

.bcm-end-chips {
    position: absolute;
    margin: 0;
    padding: 0;
    list-style: none;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 1;
}

.bcm-end-chips li {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--bcm-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(30, 45, 110, 0.1), 0 0 0 1px rgba(30, 45, 110, 0.07);
    will-change: transform;
}

.bcm-end-chips li:not(.is-stk)::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bcm-blue);
}

.bcm-end-chips .is-stk {
    padding: 0;
    background: none;
    box-shadow: none;
}

.bcm-end-chips .is-stk img {
    display: block;
    width: clamp(56px, 5.4vw, 76px);
    max-width: none;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(30, 45, 110, 0.16));
}

.bcm-end-copy {
    position: relative;
    z-index: 2;
    width: min(100% - 3rem, 860px);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 18px;
}

.bcm-end-copy > :not(.bcm-end-mark) {
    opacity: var(--endcopy, 1);
    transform: translateY(calc((1 - var(--endcopy, 1)) * 30px));
}

.bcm-end-mark {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 26px;
    background: #fff;
    color: var(--bcm-blue);
    font-family: var(--bcm-display);
    font-size: 52px;
    font-weight: 700;
    box-shadow: 0 20px 50px rgba(10, 20, 80, 0.35);
    transform: translateY(var(--marky, 0px)) scale(var(--mark, 1));
}

.bcm-end h2 {
    font-size: clamp(30px, 4.6vw, 60px);
}

.bcm-end p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.bcm-end .bcm-actions {
    justify-content: center;
    margin-top: 8px;
}

.bcm-end-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(clamp(20px, 5svh, 48px) + var(--bcm-bottom, 0px));
    overflow: hidden;
    opacity: var(--strip, 1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.bcm-end-strip div {
    display: flex;
    gap: 10px;
    width: max-content;
    transform: translateX(calc(var(--stripx, 0) * -1px));
}

.bcm-end-strip span {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.bcm:not(.is-live) .bcm-end-stage {
    padding: 110px 0 140px;
}

.bcm:not(.is-live) .bcm-end-chips,
.bcm:not(.is-live) .bcm-end-orbit,
.bcm:not(.is-live) .bcm-end-kicker {
    display: none;
}

/* ================= 반응형 ================= */
@media (max-width: 900px) {
    .bcm-flip-stage,
    .bcm-write-stage,
    .bcm-undo-stage,
    .bcm-pop-stage,
    .bcm-design-stage {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
    }

    .bcm h2 {
        font-size: clamp(28px, 7.4vw, 44px);
    }

    .bcm.is-live .bcm-flip-stage,
    .bcm.is-live .bcm-write-stage,
    .bcm.is-live .bcm-undo-stage,
    .bcm.is-live .bcm-pop-stage,
    .bcm.is-live .bcm-design-stage {
        padding: 20px 0 calc(20px + var(--bcm-bottom, 0px));
        align-content: start;
        align-items: start;
    }

    .bcm.is-live .bcm-design-stage {
        padding-inline: var(--bcm-side);
    }

    .bcm.is-live .bcm-flip-copy p:not(.bcm-eyebrow),
    .bcm.is-live .bcm-pop-copy p:not(.bcm-eyebrow):not(.bcm-pop-date),
    .bcm.is-live .bcm-design-copy p:not(.bcm-eyebrow):not(.bcm-design-now) {
        display: none;
    }

    .bcm-flip-copy p:not(.bcm-eyebrow),
    .bcm-pop-copy p:not(.bcm-eyebrow):not(.bcm-pop-date) {
        font-size: 16px;
    }

    .bcm.is-live .bcm-flip-state {
        margin-top: 14px;
    }

    .bcm-flip-tags li {
        font-size: 14px;
        padding: 6px 10px;
    }

    .bcm.is-live .bcm-steps {
        margin-top: 16px;
    }

    .bcm.is-live .bcm-steps li:not(.is-on) {
        display: none;
    }

    .bcm.is-live .bcm-steps li {
        padding: 12px 14px 12px 50px;
    }

    .bcm.is-live .bcm-steps li::before {
        top: 13px;
        left: 14px;
    }

    .bcm.is-live .bcm-write .bcm-eyebrow,
    .bcm.is-live .bcm-undo .bcm-eyebrow {
        display: none;
    }

    .bcm.is-live .bcm-write h2,
    .bcm.is-live .bcm-undo h2 {
        font-size: clamp(24px, 6.6vw, 34px);
    }

    .bcm-editor-body {
        padding: 16px;
        gap: 10px;
    }

    .bcm-ed-doc {
        min-height: 120px;
    }

    .bcm-ed-photo {
        width: 58%;
    }

    .bcm-ed-sticker {
        width: 84px;
        height: 84px;
    }

    .bcm.is-live .bcm-undo-p {
        display: none;
    }

    .bcm.is-live .bcm-undo[data-part="history"] .bcm-undo-p[data-part="history"],
    .bcm.is-live .bcm-undo[data-part="trash"] .bcm-undo-p[data-part="trash"] {
        display: block;
        margin-top: 12px;
        font-size: 15px;
    }

    .bcm-hist {
        grid-template-columns: 1fr;
    }

    .bcm.is-live .bcm-hist-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .bcm.is-live .bcm-hist-list li {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8px 4px;
    }

    .bcm.is-live .bcm-hist-list li span,
    .bcm.is-live .bcm-hist-list li em {
        display: none;
    }

    .bcm-hist-doc {
        min-height: 0;
    }

    .bcm-ring {
        height: min(460px, 52svh);
    }

    .bcm.is-live .bcm-ring {
        margin-left: calc(var(--bcm-side) * -1);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    }

    .bcm.is-live .bcm-ring-spin {
        left: 50%;
    }

    .bcm-mini {
        --mw: 260px;
        height: 360px;
        top: -180px;
    }

    .bcm-mini-hero {
        height: 120px;
    }

    .bcm-scope-grid {
        grid-template-columns: 1fr;
    }

    .bcm-scope-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bcm-op {
        grid-template-columns: 1fr;
    }

    .bcm-market-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .bcm.is-live .bcm-market-stage {
        align-content: center;
        gap: 20px;
        padding-bottom: var(--bcm-bottom, 0px);
    }

    .bcm-market-copy {
        grid-row: 2;
    }

    .bcm-pal {
        grid-column: 1;
        width: min(100%, 360px);
        padding: 14px;
        gap: 10px;
    }

    .bcm-pal-tabs {
        display: none;
    }

    .bcm-pal-grid {
        gap: 6px;
    }

    .bcm-pal-slot {
        border-radius: 12px;
    }

    .bcm-ed-photo {
        width: 48%;
    }
}

/* 낮은 화면(노트북·태블릿 가로)에서는 편집기를 줄여 저장 버튼까지 보이게 한다 */
@media (min-width: 721px) and (max-height: 860px) {
    .bcm-editor-body {
        padding: 16px 20px 18px;
        gap: 10px;
    }

    .bcm-ed-doc {
        min-height: 0;
        padding: 10px 14px;
    }

    .bcm-ed-photo {
        width: 40%;
        margin-top: 6px;
    }

    .bcm-ed-input {
        min-height: 42px;
    }

    .bcm-ed-tools {
        padding: 6px 10px;
    }
}

@media (min-width: 721px) and (max-height: 760px) {
    .bcm.is-live .bcm-ed-field:nth-child(2) {
        display: none;
    }

    .bcm.is-live .bcm-steps li {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 720px) {
    .bcm {
        --bcm-bottom: 84px;
    }

    /* 앞면·뒷면 카드: 세로로 길게 써서 화면을 채운다 */
    .bcm-flip-card {
        aspect-ratio: 3 / 4;
        width: min(100%, calc((100svh - var(--bcm-hdr) - 300px) * 0.75));
        margin-inline: auto;
    }

    .bcm:not(.is-live) .bcm-flip-card {
        width: 100%;
    }

    .bcm:not(.is-live) .bcm-face {
        aspect-ratio: 3 / 4;
    }

    .bcm-site {
        padding: 0 5cqw;
    }

    .bcm-site-head {
        height: 14cqw;
        max-height: none;
    }

    .bcm-site-logo {
        font-size: 15px;
    }

    .bcm-site-hero {
        grid-template-columns: 1fr;
        gap: 3cqw;
        margin-bottom: 4cqw;
    }

    .bcm-site-hero img {
        order: -1;
        border-radius: 3cqw;
    }

    .bcm-site-hero small {
        font-size: 13px;
    }

    .bcm-site-hero strong {
        margin: 1.5cqw 0 0;
        font-size: max(20px, 7.4cqw);
    }

    .bcm-site-list span {
        padding: 2.4cqw 0;
        font-size: 14px;
        gap: 2cqw;
    }

    .bcm-site-list em {
        font-size: 13px;
        padding: 2px 8px;
    }

    .bcm-site-list time {
        font-size: 13px;
    }

    .bcm-site-list p {
        font-size: 15px;
        margin-bottom: 1.5cqw;
    }

    .bcm-site-pop {
        right: 5cqw;
        top: 14cqw;
        width: 56cqw;
        border-radius: 3cqw;
    }

    .bcm-site-pop small,
    .bcm-site-pop-body span {
        display: none;
    }

    .bcm-site-pop em {
        left: 2.4cqw;
        top: 2.4cqw;
        padding: 2px 8px;
    }

    .bcm-site-pop i {
        right: 2.4cqw;
        top: 2.4cqw;
    }

    .bcm-site-pop-body {
        padding: 3.4cqw 3.6cqw;
    }

    .bcm-site-pop p {
        padding: 0 3.6cqw;
    }

    .bcm-site-pop p span {
        padding: 2.2cqw 0;
    }

    .bcm-flip-tags li {
        left: var(--xm, var(--x));
    }

    /* 글쓰기: 남은 높이 안에 편집기가 들어오도록 줄인다 */
    .bcm.is-live .bcm-write-stage {
        gap: 12px;
    }

    .bcm.is-live .bcm-write h2 {
        font-size: 24px;
    }

    .bcm.is-live .bcm-steps {
        margin-top: 10px;
    }

    .bcm.is-live .bcm-steps li {
        padding: 10px 12px 10px 44px;
    }

    .bcm.is-live .bcm-steps li::before {
        left: 12px;
        top: 11px;
    }

    .bcm.is-live .bcm-steps b {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .bcm.is-live .bcm-steps span {
        font-size: 14px;
        line-height: 1.5;
    }

    .bcm-editor-top {
        padding: 10px 16px;
    }

    .bcm-editor-body {
        padding: 12px 14px 14px;
        gap: 8px;
    }

    .bcm-ed-field label {
        margin-bottom: 4px;
    }

    .bcm-ed-input {
        min-height: 42px;
    }

    .bcm.is-live .bcm-ed-input--area {
        display: block;
        min-height: 42px;
        padding: 0 14px;
        line-height: 42px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .bcm-ed-tools {
        padding: 6px 8px;
    }

    .bcm-ed-tools i:not(.is-img):not(.is-stk) {
        display: none;
    }

    .bcm-ed-doc {
        min-height: 96px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .bcm-ed-photo {
        width: 42%;
        margin-top: 6px;
    }

    .bcm-ed-photo figcaption {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 180%;
    }

    .bcm.is-live .bcm-ed-field:nth-child(2),
    .bcm.is-live .bcm-ed-field:nth-child(3) > label {
        display: none;
    }

    .bcm-ed-sticker {
        width: 66px;
        height: 66px;
        right: 10px;
        bottom: 8px;
    }

    .bcm.is-live .bcm-ed-when {
        display: none;
    }

    .bcm-ed-publish {
        gap: 6px 14px;
        font-size: 14px;
    }

    .bcm-ed-btn {
        min-height: 40px;
        padding: 0 16px;
    }

    .bcm.is-live .bcm-pal {
        width: min(100%, 240px);
    }

    .bcm.is-live .bcm-pal-head {
        display: none;
    }

    .bcm.is-live .bcm-market-cards {
        margin-top: 16px;
        gap: 8px;
    }

    .bcm.is-live .bcm-market-cards article {
        padding: 12px 16px;
        gap: 4px;
    }

    .bcm-film-stage {
        align-items: end;
    }

    .bcm-film-intro {
        padding: 40px 0 calc(150px + var(--bcm-bottom));
    }

    .bcm-film-shade {
        background: linear-gradient(0deg, rgba(7, 12, 29, 0.95) 0%, rgba(7, 12, 29, 0.78) 45%, rgba(7, 12, 29, 0.1) 80%);
    }

    .bcm-film.has-video .bcm-film-intro {
        padding-bottom: calc(110px + var(--bcm-bottom));
    }

    .bcm-film-caps {
        bottom: calc(82px + var(--bcm-bottom));
    }

    .bcm-film-caps li {
        padding: 16px 18px;
    }

    .bcm-film-hud {
        bottom: calc(24px + var(--bcm-bottom));
        padding: 8px 14px;
    }

    .bcm-film:not(.has-video) .bcm-film-caps {
        margin-top: -100px;
    }

    .bcm-site-nav span {
        display: none;
    }

    .bcm-site-hero span,
    .bcm-site-cards {
        display: none;
    }

    .bcm-site-sec {
        grid-template-columns: 1fr;
    }


    .bcm-flip-tags li:nth-child(n + 3) {
        display: none;
    }

    .bcm-ed-result {
        top: auto;
        bottom: 14px;
        right: 14px;
    }

    .bcm-pop-box {
        width: max(170px, 44cqw);
    }

    .bcm-pop-lanes span {
        font-size: 14px;
    }

    .bcm-pop-date b {
        font-size: 28px;
    }

    .bcm-market-cards article {
        padding: 18px;
    }

    .bcm.is-live .bcm-market-cards p {
        display: none;
    }

    .bcm-faq-list summary {
        font-size: 17px;
        padding: 18px 48px 18px 18px;
    }

    .bcm-faq-list details p {
        padding: 0 18px 18px 18px;
    }

    .bcm-stack li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 720px) and (max-height: 800px) {
    .bcm.is-live .bcm-steps span {
        display: none;
    }
}

@media (max-width: 600px) {
    .bcm-scope-groups {
        grid-template-columns: 1fr;
    }
}

/* 휴대폰은 버튼이 두 줄로 쌓여 기능 띠가 버튼과 겹치므로 띠를 숨긴다 */
@media (max-width: 720px) {
    .bcm-end-strip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bcm-ed-input.is-focus::after {
        animation: none;
    }
}
