/* Reusable blocks used on more than one page: cards, plans, chips, filters, slider, FAQ, steps, CTA, forms. */

/* ---- chips, tags, filters ---- */
.chip { display: inline-block; padding: 1px 12px; border-radius: var(--pill); background: var(--tint-sky); color: var(--blue); font-size: 0.8rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 1px 12px; border-radius: var(--pill); background: var(--tint-blue); color: var(--ink-2); font-size: 0.78rem; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s3); }
.filters a { padding: 6px 20px; border-radius: var(--pill); background: var(--card); color: var(--ink-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.filters a:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.filters a[aria-current] { background: var(--navy); color: #fff; box-shadow: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; }
.post-meta--center { justify-content: center; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--navy); box-shadow: var(--sh-sm); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.round-btn:hover { background: var(--navy); color: #fff; }
.round-btn:disabled { opacity: 0.4; cursor: default; background: #fff; color: var(--navy); }
.center-link { text-align: center; margin: var(--s4) 0 0; }
.more-line { text-align: center; margin: var(--s4) 0 0; color: var(--ink-2); }

/* ---- service cards (pastel tints, ref. design 3) ---- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.svc {
  display: flex; flex-direction: column; padding: var(--s3); border-radius: var(--r-lg); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7); transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.svc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px #fff, var(--sh); }
.svc--sky { background: var(--tint-sky); }
.svc--lilac { background: var(--tint-lilac); }
.svc--teal { background: var(--tint-teal); }
.svc--blue { background: var(--tint-blue); }
.svc-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s2); border-radius: 18px; background: #fff; color: var(--blue); box-shadow: var(--sh-sm); }
.svc-ic .i { width: 28px; height: 28px; }
.svc h3 { font-size: 1.18rem; margin-bottom: 0.3em; }
.svc p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.8em; }
.svc ul { list-style: none; padding: 0; margin: 0 0 var(--s2); color: var(--ink-2); font-size: 0.92rem; }
.svc li { position: relative; padding-inline-start: 18px; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.svc .link-arrow { margin-top: auto; color: var(--blue); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
/* phones: compact 2×2 tiles; the bullet lists are left to the service pages */
@media (max-width: 620px) {
  .svc-grid { gap: 12px; }
  .svc { padding: var(--s2); border-radius: var(--r); }
  .svc-ic { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; }
  .svc-ic .i { width: 22px; height: 22px; }
  .svc h3 { font-size: 1rem; line-height: 1.6; }
  .svc p { font-size: 0.85rem; line-height: 1.8; }
  .svc ul { display: none; }
  .svc .link-arrow { font-size: 0.82rem; }
}

/* ---- pricing plans ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: stretch; max-width: 1080px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s4) var(--s3) var(--s3); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.plan h3 { font-size: 1.25rem; margin: 0; }
.plan-tag { color: var(--muted); font-size: 0.93rem; margin: 2px 0 var(--s2); }
.plan-price { display: flex; flex-direction: column; margin: 0 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px dashed var(--line); }
.plan-price small { color: var(--muted); font-size: 0.85rem; }
.plan-price b { font-size: 1.9rem; font-weight: 900; line-height: 1.5; color: var(--navy); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: 8px; font-size: 0.95rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { width: 20px; height: 20px; padding: 3px; margin-top: 4px; border-radius: 50%; background: var(--tint-sky); color: var(--blue); }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--navy); color: #fff; box-shadow: var(--sh-lg); transform: translateY(-12px); }
.plan--featured::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at 85% 0%, rgb(19 81 232 / 0.55), transparent 65%); }
.plan--featured > * { position: relative; }
.plan--featured .plan-tag, .plan--featured .plan-price small { color: var(--on-dark-muted); }
.plan--featured .plan-price { border-color: var(--line-dark); }
.plan--featured .plan-price b { color: #fff; }
.plan--featured ul { color: var(--on-dark); }
.plan--featured li .i { background: rgb(111 163 245 / 0.2); color: var(--sky); }
.plan-badge { position: absolute !important; top: 16px; inset-inline-end: 16px; padding: 2px 12px; border-radius: var(--pill); background: var(--blue); color: #fff; font-size: 0.8rem; font-weight: 700; }
.plans-note { text-align: center; margin: var(--s4) 0 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; } .plan--featured { transform: none; } }
/* phones: plans become a swipe row, the recommended plan first; the next card peeks to invite a swipe */
@media (max-width: 720px) {
  .plans {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; max-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; padding: var(--s3) var(--s2) var(--s2); }
  .plan--featured { order: -1; }
  .plan ul { gap: 6px; font-size: 0.9rem; }
  .plans-note { font-size: 0.88rem; margin-top: var(--s2); }
}

/* ---- project card (browser frame) ---- */
.pcard { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px #fff, var(--sh); }
.frame { display: block; margin: 10px 10px 0; border-radius: var(--r); overflow: hidden; background: var(--tint-blue); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #fff; direction: ltr; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.frame-bar i:nth-child(2) { background: #ffc14d; }
.frame-bar i:nth-child(3) { background: #4cd48f; }
.frame-bar em { flex: 1; max-width: 240px; margin-inline-start: 10px; padding: 0 12px; border-radius: var(--pill); background: var(--base); color: var(--muted); font-size: 0.76rem; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { display: grid; place-items: center; aspect-ratio: 16 / 10.5; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 6s ease-in-out; }
a.frame:hover .shot img { object-position: bottom; }
.shot b { font-size: 1.6rem; color: var(--blue); }
.pcard-body { padding: var(--s2) var(--s3) var(--s3); }
.pcard-body h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.pcard-body p:not(.post-meta) { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.7em; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* ---- blog card ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px #fff, var(--sh); }
.post-card-img { display: block; margin: 10px 10px 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint-blue); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s2) var(--s3) var(--s3); }
.post-card h3 { font-size: 1.08rem; line-height: 1.7; margin-bottom: var(--s2); }
.post-card .link-arrow { margin-top: auto; color: var(--blue); font-size: 0.92rem; }
/* .cards--swipe (home): a swipe row on phones instead of three tall cards */
@media (max-width: 640px) {
  .cards--swipe {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .cards--swipe::-webkit-scrollbar { display: none; }
  .cards--swipe > * { scroll-snap-align: start; }
  .cards--swipe .post-card h3 { font-size: 0.98rem; }
}

/* ---- slider (scroll-snap; js/slider.js adds arrows and the active slide) ---- */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s3)) / 3); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 24px; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; min-width: 0; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav--center { justify-content: center; margin-top: var(--s2); }
.no-js .slider-nav { display: none; }
@media (max-width: 1024px) { .slider { grid-auto-columns: calc((100% - var(--s3)) / 2); } }
@media (max-width: 640px) { .slider { grid-auto-columns: 86%; gap: var(--s2); } }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: var(--s5); align-items: start; }
.faq details { margin: 0 0 12px; padding: 4px 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--tint-sky); color: var(--blue); transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s; }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---- why + steps ---- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.why li { padding: var(--s3); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.why-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: var(--s2); border-radius: 16px; background: var(--navy); color: var(--sky); }
.why h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.why p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.steps-head { margin-bottom: var(--s3); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 12% 12%; top: 26px; border-top: 2px dashed var(--pale); z-index: -1; }
.steps li { text-align: center; padding: 0 var(--s1); }
.step-n { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: var(--s2); border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.3rem; font-weight: 900; box-shadow: 0 0 0 8px var(--base), var(--sh); }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
@media (max-width: 1024px) { .why, .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
/* phones: why = icon beside text; steps = a compact vertical timeline */
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; gap: 10px; margin-bottom: var(--s4); }
  .why li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: var(--s2); border-radius: var(--r); }
  .why-ic { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 14px; }
  .why h3 { font-size: 1rem; margin: 0; }
  .why p { font-size: 0.88rem; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: block; inset-inline: 21px auto; top: 22px; bottom: 22px; border-top: 0; border-inline-start: 2px dashed var(--pale); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 0 0 var(--s2); text-align: start; }
  .step-n { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--base); }
  .steps h3 { font-size: 1rem; margin: 8px 0 0; }
  .steps p { font-size: 0.88rem; }
}

/* ---- CTA (navy, closes every page) ---- */
.cta { padding: var(--s4) 0 0; }
.cta-box { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s4); align-items: center; padding: var(--s5); border-radius: var(--r-xl); background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at 100% 0%, rgb(19 81 232 / 0.5), transparent 60%), radial-gradient(500px circle at 0% 100%, rgb(111 163 245 / 0.22), transparent 60%); }
.cta-box .h2 { color: #fff; margin-bottom: 0.3em; }
.cta-copy p:not(.eyebrow) { max-width: 46ch; }
.cta-orbit { position: absolute; z-index: -1; width: 420px; inset-block-end: -10px; inset-inline-end: -10px; color: rgb(111 163 245 / 0.25); }
.cta-orbit .dot { fill: var(--blue); }
.cta-orbit .dot--2 { fill: var(--sky); }
.cta-phone { margin-top: var(--s1); font-size: 1.15rem; }
.cta .order-form label { color: var(--on-dark); }
@media (max-width: 960px) { .cta-box { grid-template-columns: 1fr; padding: var(--s4) var(--s3); } .cta-orbit { width: 300px; opacity: 0.6; } }

/* ---- forms ---- */
.order-form { width: 100%; }
.order-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.95rem; }
.order-inline { display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: #fff; box-shadow: var(--sh); }
.order-inline input { border: 0; box-shadow: none; border-radius: var(--pill); background: transparent; }
.order-inline input:focus { box-shadow: none; }
.order-inline:focus-within { box-shadow: 0 0 0 4px rgb(111 163 245 / 0.4), var(--sh); }
.order-inline .btn { flex: none; }
@media (max-width: 480px) { .order-inline { flex-direction: column; border-radius: var(--r); } }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---- feature cards (service pages + builder "cards" block) ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feat { padding: var(--s3); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #fff, var(--sh); }
.feat-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s2); border-radius: 16px; background: var(--tint-sky); color: var(--blue); }
.feat-ic .i { width: 26px; height: 26px; }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.feat p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

@media (max-width: 1100px) { .feat-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feat-grid, .feat-grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat { padding: var(--s2); border-radius: var(--r); }
  .feat-ic { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 13px; }
  .feat-ic .i { width: 22px; height: 22px; }
  .feat h3 { font-size: 0.98rem; }
  .feat p { font-size: 0.84rem; line-height: 1.8; }
}

/* ---- builder: section wrapper settings (builder/styles.py). Tablet/mobile values fall back to the bigger screen. ---- */
.bsec.has-pt > section { padding-top: var(--bs-pt-d); }
.bsec.has-pb > section { padding-bottom: var(--bs-pb-d); }
.bsec.has-pt > .hero .hero-box { padding-top: calc(var(--header-h) + var(--bs-pt-d)); }
.bsec.has-pb > .hero .hero-box { padding-bottom: var(--bs-pb-d); }
.bsec.has-gap :is(.svc-grid, .plans, .feat-grid, .b-cards, .b-gallery, .cards, .why, .steps, .work-grid, .slider) { gap: var(--bs-gap-d); }
.bsec.has-h2 .h2 { font-size: var(--bs-h2-d); }
.bsec.has-align .sec-head, .bsec.has-align .b-buttons { text-align: var(--bs-align-d); }
.bsec.has-align .sec-head { margin-inline: 0; max-width: none; }
.bsec.has-width .wrap { max-width: var(--bs-w); }
.bsec.has-bg > section { background: var(--bs-bg); }
@media (max-width: 1024px) {
  .bsec.has-pt > section { padding-top: var(--bs-pt-t, var(--bs-pt-d)); }
  .bsec.has-pb > section { padding-bottom: var(--bs-pb-t, var(--bs-pb-d)); }
  .bsec.has-gap :is(.svc-grid, .plans, .feat-grid, .b-cards, .b-gallery, .cards, .why, .steps, .work-grid, .slider) { gap: var(--bs-gap-t, var(--bs-gap-d)); }
  .bsec.has-h2 .h2 { font-size: var(--bs-h2-t, var(--bs-h2-d)); }
  .bsec.has-align .sec-head, .bsec.has-align .b-buttons { text-align: var(--bs-align-t, var(--bs-align-d)); }
}
@media (max-width: 720px) {
  .bsec.has-pt > section { padding-top: var(--bs-pt-m, var(--bs-pt-t, var(--bs-pt-d))); }
  .bsec.has-pb > section { padding-bottom: var(--bs-pb-m, var(--bs-pb-t, var(--bs-pb-d))); }
  .bsec.has-gap :is(.svc-grid, .plans, .feat-grid, .b-cards, .b-gallery, .cards, .why, .steps, .work-grid, .slider) { gap: var(--bs-gap-m, var(--bs-gap-t, var(--bs-gap-d))); }
  .bsec.has-h2 .h2 { font-size: var(--bs-h2-m, var(--bs-h2-t, var(--bs-h2-d))); }
  .bsec.has-align .sec-head, .bsec.has-align .b-buttons { text-align: var(--bs-align-m, var(--bs-align-t, var(--bs-align-d))); }
}
/* "hide on" a device: one rule per screen range */
@media (min-width: 1025px) { .bsec.hide-d { display: none; } }
@media (min-width: 721px) and (max-width: 1024px) { .bsec.hide-t { display: none; } }
@media (max-width: 720px) { .bsec.hide-m { display: none; } }

/* ---- builder: generic blocks (builder/templates/builder/sections/) ---- */
.b-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.b-split--flip > :first-child { order: 2; }
.b-split--solo { grid-template-columns: 1fr; max-width: 820px; }
.b-split .sec-head { text-align: start; margin-inline: 0; }
.b-text p { color: var(--ink-2); line-height: 2.05; }
.b-media img { border-radius: var(--r-xl); box-shadow: var(--sh); width: 100%; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.b-cards--2 { grid-template-columns: repeat(2, 1fr); }
.b-cards--4 { grid-template-columns: repeat(4, 1fr); }
.b-card-link { display: block; height: 100%; color: inherit; }
.b-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.b-gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--sh-sm); }
.b-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.b-gallery figcaption { padding: 8px 12px; color: var(--muted); font-size: 0.88rem; }
.b-buttons { max-width: 760px; text-align: center; }
.b-spacer { height: var(--s4); }
.bsec.has-pt > .b-spacer, .bsec.has-pb > .b-spacer { height: 0; }
@media (max-width: 960px) { .b-split { grid-template-columns: 1fr; gap: var(--s3); } .b-split--flip > :first-child { order: 0; } .b-cards--4, .b-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .b-cards, .b-cards--2, .b-cards--4 { grid-template-columns: 1fr; } .b-gallery { grid-template-columns: 1fr 1fr; } }

/* inside the builder preview frame only (js/builder-preview.js adds the class) */
.builder-preview .bsec { position: relative; cursor: pointer; }
.builder-preview .bsec:hover { outline: 2px dashed var(--sky); outline-offset: -2px; }
.builder-preview .bsec.is-selected { outline: 3px solid var(--blue); outline-offset: -3px; }
.builder-preview [data-reveal], .builder-preview [data-stagger] > *, .builder-preview [data-in], .builder-preview [data-hero-visual] { opacity: 1 !important; transform: none !important; translate: none !important; }
