/* Builder sections: rhythm, shared text pieces, pictures and CSS devices. Owner: FRONTEND (builder). */

/* ---------- Vertical rhythm ----------
   Flow sections (.bk-flow) carry a vertical MARGIN of --bk-y: between two of them the margins collapse into one gap, so any
   order stacks evenly (no doubled space, no collisions). Scenes with their own background (pinned scenes, big number, heroes)
   have no margin and keep their own padding or full-screen stage. */
:root { --bk-y: clamp(64px, 9vw, 130px); }
.bk { position: relative; }
.bk-flow { margin-block: var(--bk-y); overflow-x: clip; }
/* a flow section that opens the page clears the header that sits over the top of every page */
main > .bk-flow:first-child { margin-top: 0; padding-top: calc(var(--header-h) + 36px + clamp(24px, 4vw, 56px)); }
@media (max-width: 767px) { main > .bk-flow:first-child { padding-top: calc(var(--header-h) + 28px); } }

/* ---------- Shared text pieces ---------- */
.bk .hi { color: var(--mint); }
.bk :is(h1, h2, h3) { overflow-wrap: break-word; }
.bk .lit { text-wrap: balance; }
.bk-para { margin: 24px 0 0; max-width: 58ch; font: 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.6 var(--font-body); color: var(--soft); text-wrap: pretty; }
.bk-more { margin-top: 18px; }
.bk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.bk-acts.acts { margin-top: 0; justify-content: center; }
.bk .eyebrow + :is(.lit, .page-hero__title, h1, h2) { margin-top: 18px; }

/* ---------- Pictures ---------- */
.bk-pic img { display: block; width: 100%; height: auto; }
.bk-shot img { height: auto; }
/* floats in and keeps floating (transparent pictures); --v from the nearest [data-lit] */
.bk-float { transform: translateY(calc((1 - var(--v, 1)) * 60px)) scale(calc(.92 + var(--v, 1) * .08)); opacity: calc(.25 + var(--v, 1) * .75); }
.bk-float img { animation: kit-bob 6s ease-in-out infinite; }

/* ---------- CSS devices (copied from products/base.css .p-dev, minimal): the screenshot fills the screen from the top ---------- */
.bk-dev { position: relative; }
.bk-dev__body { position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(160deg, #2a3532, #0b1211 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), var(--shot-shadow); }
.bk-dev__screen { position: relative; overflow: hidden; border-radius: 6px; background: #fff; aspect-ratio: 16 / 10; }
.bk-dev__screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.bk-dev--laptop .bk-dev__body { border-radius: 18px 18px 4px 4px; padding: 12px 12px 14px; }
.bk-dev--laptop::after { content: ""; display: block; height: clamp(9px, 1.3vw, 15px); margin-inline: -6%; border-radius: 0 0 18px 18px / 0 0 100% 100%; background: linear-gradient(#d6dedc, #6f7b79); box-shadow: 0 24px 40px rgba(0, 0, 0, .6); }
.bk-dev--monitor .bk-dev__body { padding: 12px 12px 28px; }
.bk-dev--monitor::after { content: ""; display: block; width: 26%; height: clamp(26px, 4vw, 52px); margin: 0 auto; background: linear-gradient(90deg, #6f7b79, #c9d2d0 50%, #6f7b79); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.bk-dev--tablet .bk-dev__body { padding: clamp(10px, 1.6vw, 16px); border-radius: clamp(18px, 2.4vw, 28px); }
.bk-dev--tablet .bk-dev__screen { aspect-ratio: 4 / 3; border-radius: 8px; }
.bk-dev--phone .bk-dev__body { padding: 7px; border-radius: 26px; }
.bk-dev--phone .bk-dev__screen { aspect-ratio: 9 / 19.5; border-radius: 20px; }

/* ---------- Reduced motion: no continuous animation ---------- */
@media (prefers-reduced-motion: reduce) {
    .bk-float img, .bk-slide > * { animation: none; }
}
