.bf-showcase { background: #171514; }
.bf-showcase-heading { align-items: end; margin-bottom: clamp(24px, 3vw, 50px); }
.bf-showcase-heading h2 { max-width: 13ch; }
.bf-compare-tools, .bf-showcase-caption {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.bf-compare-tools:has([data-compare-tools]:not([hidden])) { margin-bottom: 12px; }
.bf-compare-choices {
    display: flex; align-items: center; padding: 3px; border: 1px solid #6b5b52; border-radius: 100px;
    background: #201d1b;
}
.slbf .bf-compare-choices button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 5px 15px;
    border: 0; border-radius: 100px; background: transparent; color: #e9d8ce; font: 700 13px/1 Arial,sans-serif;
}
.slbf .bf-compare-choices button[aria-pressed="true"] { color: #1d1510; background: #f4d5bf; }
.slbf .bf-compare-choices button[aria-pressed="false"]:hover { color: #fff2e9; background: #382e28; }
.bf-compare-device {
    --case: #332723; width: 100%; min-width: 0; margin-inline: auto; overflow: hidden;
    padding: 0; border-radius: 13px; border: 1px solid #66564e; background: var(--case); box-shadow: 0 20px 66px #100b08aa;
}
.bf-comparison[data-screen="mobile"] .bf-compare-device {
    width: min(100%, 390px); border: 5px solid #50433c; border-radius: 30px;
}
.bf-compare-top {
    min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 7px;
    padding: 0 clamp(9px, 2.1vw, 26px); color: #f2e0d6; border-bottom: 1px solid #b19c8855; font: 11px/1 Arial,sans-serif;
}
.bf-compare-top > span:last-child { color: #cfb7a8; font-weight: 700; }
.bf-window-lights { display: flex; gap: 5px; }
.bf-window-lights i { width: 7px; height: 7px; border-radius: 50%; background: #9c7667; }
.bf-window-lights i:first-child { background: #f8c3a7; }
.bf-compare-screen {
    --reveal: 100%; position: relative; isolation: isolate; width: 100%; height: clamp(380px, 45vw, 640px);
    container-type: inline-size; background: #152124;
}
.bf-comparison[data-screen="mobile"] .bf-compare-screen { height: clamp(470px, 68vw, 607px); }
.bf-before-view, .bf-after-view { position: absolute; inset: 0; overflow: hidden; }
.bf-before-view { background: #efebe5; color: #383638; }
.bf-before-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 3cqw 3cqw 0; padding: 2cqw;
    border-bottom: 3px double #93a797; background: #d2ded5; font: clamp(10px, 1.3cqw, 16px)/1.25 Georgia,serif;
}
.bf-before-bar strong { font-size: 1.45em; }
.bf-before-copy { width: min(85%, 660px); margin: clamp(15px, 3cqw, 38px) auto; text-align: center; font: clamp(11px, 1.4cqw, 16px)/1.55 Arial,sans-serif; }
.slbf .bf-before-copy h3 { margin: 6px 0 9px; font: bold clamp(21px, 3cqw, 45px)/1.05 Georgia,serif; letter-spacing: -.02em; }
.bf-before-copy img { display: block; width: min(75%, 390px); height: auto; margin: 16px auto; }
.bf-before-copy span { text-decoration: underline; color: #252671; }
.bf-after-view { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.bf-after-view .atelier-hero { min-height: 100%; }
.bf-compare-input { position: absolute; inset: 0; z-index: 4; display: block; cursor: ew-resize; }
.slbf .bf-compare-input input {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; cursor: ew-resize; opacity: 0; appearance: none; touch-action: pan-y;
}
.bf-compare-screen:focus-within { outline: 2px solid #ffaf87; outline-offset: -3px; }
.slbf .bf-compare-input input::-webkit-slider-thumb { appearance: none; width: 1px; height: 1px; }
.slbf .bf-compare-input input::-moz-range-thumb { width: 1px; height: 1px; border: 0; }
.bf-compare-divider { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bf-compare-divider::before {
    content: ""; position: absolute; inset: 0 auto 0 var(--reveal); width: 2px;
    transform: translateX(-1px); background: #ffe1c6; box-shadow: 0 0 14px #1b1311aa;
}
.bf-compare-divider span {
    display: grid; place-items: center; position: absolute;
    inset: 50% auto auto clamp(22px, var(--reveal), calc(100% - 22px)); transform: translate(-50%,-50%);
    width: 44px; height: 44px; color: #201815; background: #ffe4cd; border: 1px solid #563528; border-radius: 50%;
}
.bf-showcase-caption { padding-top: 18px; }
.slbf .bf-showcase-caption p { flex: 1 1 340px; color: #d5c7bf; font-size: 14px; }
.slbf .bf-studio-link { flex: 0 0 auto; background: #f4dfcc; }
.slbf .bf-studio-link:hover { background: #fff1df; }
.slbf .bf-studio-dialog {
    width: min(95vw, 1380px); height: min(95vh, 1080px); height: min(95svh, 1080px); max-width: none; max-height: none;
    padding: 0; border: 1px solid #a28c7b; border-radius: 12px; color: #fff2e8; background: #100f0e; overflow: hidden;
}
.slbf .bf-studio-dialog[open] { display: flex; flex-direction: column; }
.bf-studio-dialog::backdrop { background: #090807de; }
body.slbf:has(.bf-studio-dialog[open]) { overflow: hidden; }
.bf-studio-dialog-header {
    display: flex; justify-content: space-between; align-items: center; gap: 8px 18px;
    padding: 6px 17px; border-bottom: 1px solid #64524c;
}
.bf-studio-dialog-header > div { font-weight: 700; }
.bf-studio-dialog-header small { margin-inline-start: 7px; color: #e1b9a7; font-size: 12px; }
.bf-studio-dialog-actions { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.bf-studio-dialog-actions a { text-decoration: underline; text-underline-offset: 3px; }
.bf-studio-dialog-header button span { font: 400 25px/1 Arial,sans-serif; }
.bf-studio-frame { display: flex; flex: 1; min-height: 0; }
.bf-studio-frame iframe { width: 100%; flex: 1; border: 0; }
@media (max-width: 759px) {
    .bf-showcase-heading { gap: 12px; }
    .bf-compare-tools { gap: 7px; }
    .slbf .bf-compare-choices button { min-height: 44px; padding-inline: 10px; }
    .bf-compare-screen { height: clamp(435px, 132vw, 565px); }
    .bf-comparison[data-screen="mobile"] .bf-compare-device { width: min(100% - 30px, 360px); }
    .bf-comparison[data-screen="mobile"] .bf-compare-screen { height: clamp(450px, 124vw, 515px); }
    .slbf .bf-studio-dialog { width: 100%; height: 100%; max-height: 100dvh; max-width: 100%; border-radius: 0; }
    .slbf .bf-studio-link { width: 100%; }
    .bf-studio-dialog-header small { display: block; margin-inline-start: 0; }
}
