/* Before / After — every piece placed on the user's mockup coordinates (manifest crops from
   assets/before-after-kit). Phone uses the 864×1536 portrait board, desktop the 1254×1254 square board;
   the logo band at the top of each board is dropped because the page already has a header. */

.ba2.sx{padding:0;background:#f6eedc url('assets/before-after-kit/portrait/cream-background.webp') center top/cover;overflow:hidden}
.ba2::before{content:"";position:absolute;z-index:0;top:-4%;right:-8%;width:70%;aspect-ratio:336/288;pointer-events:none;
  background:url('assets/before-after-kit/portrait/canopy-left.webp') center/contain no-repeat;transform:scaleX(-1) rotate(-8deg);filter:brightness(0) blur(10px);opacity:.07}
.ba2-canopy{position:absolute;z-index:4;top:0;height:auto;pointer-events:none}
.ba2-canopy.l{left:0;width:calc(336/864*100%);top:calc(-160/864*100vw)}
.ba2-canopy.r{right:0;width:calc(136/864*100%);top:calc(-40/864*100vw)}

.ba2-board{position:relative;z-index:2;width:100%;margin-inline:auto;aspect-ratio:864/1336;container-type:inline-size}
.ba2-board>*{position:absolute;margin:0}
.ba2-board>img,.ba2-wood img{display:block;height:auto}
.ba2-wood{z-index:3;pointer-events:none}
.ba2-wood img{width:100%;height:100%;filter:drop-shadow(0 2.4cqw 2.4cqw #3b2a1059)}
.ba2-frame{z-index:2}
.ba2-ivy{z-index:4;pointer-events:none}
.ba2-trowel{z-index:6;pointer-events:none;transform-origin:50% 100%}
.ba2-btn{z-index:7}
.ba2 .ba2-board>.ba2-btn{position:absolute}

.ba2-title{display:grid;place-items:center;background:url('assets/site/brush.webp') center/100% 100% no-repeat;
  font-family:"Gveret Levin",Heebo,sans-serif;font-weight:400;font-size:calc(74/864 * 100cqw);line-height:1;color:#fff8e6;text-shadow:0 .3cqw .3cqw #2a3d0866}
.ba2-title{background:none!important}
.ba2-title img{display:block;width:100%;height:100%;object-fit:contain}
.ba2-desc{display:grid;place-items:center;text-align:center;font-size:calc(33/864 * 100cqw);line-height:1.3;font-weight:600;color:#2c2414;text-wrap:balance}
.fsec.ba2 .ba-slider{position:absolute;inset:0;aspect-ratio:auto;border-radius:calc(30/864 * 100cqw);box-shadow:none}
.ba2 .ba-tag{top:calc(24/864 * 100cqw);font-size:calc(30/864 * 100cqw);padding:calc(8/864 * 100cqw) calc(26/864 * 100cqw);border-radius:calc(30/864 * 100cqw);line-height:1.2}
.ba2 .ba-tag.after{left:calc(26/864 * 100cqw)}
.ba2 .ba-tag.before{right:calc(22/864 * 100cqw)}
.ba2 .ba-handle svg{width:calc(74/864 * 100cqw);height:calc(74/864 * 100cqw);padding:calc(18/864 * 100cqw)}
.ba2 .ba2-btn{display:inline-flex;align-items:center;justify-content:center;gap:calc(18/864 * 100cqw);min-height:0;padding:0;font-size:calc(30/864 * 100cqw)}
.ba2 .ba2-btn svg{width:calc(34/864 * 100cqw);height:calc(34/864 * 100cqw)}
.ba2-soil{position:relative;z-index:5;display:block;margin-top:calc(-265/864*100%);pointer-events:none}
.ba2-soil img{display:block;width:100%;height:auto}

.ba2-fl.l{left:7.870%;top:8.084%;width:12.847%}
.ba2-fl.r{left:80.208%;top:7.859%;width:12.500%}
.ba2-title{left:19.907%;top:5.240%;width:61.458%;height:10.554%}
.ba2-desc{left:11.458%;top:17.216%;width:77.894%;height:5.988%}
.ba2-ul{left:33.449%;top:24.626%;width:34.259%}
.ba2-wood{left:5.440%;top:30.389%;width:89.931%;height:42.590%}
.ba2-frame{left:9.375%;top:34.281%;width:82.176%;height:35.479%}
.ba2-ivy{left:0.231%;top:25.973%;width:44.213%}
.ba2-trowel{left:0.116%;top:72.680%;width:24.074%}
.ba2-btn{left:20.139%;top:75.749%;width:60.185%;height:6.961%}

@media(min-width:821px){
  .ba2.sx{background-image:url('assets/before-after-kit/square/cream-background.webp')}
  .ba2-board{max-width:1100px;aspect-ratio:1254/1104}
  .ba2-canopy.l{width:min(34vw,520px);top:calc(min(34vw,520px) * -.2)}
  .ba2-canopy.r{display:none}
  .ba2-soil{max-width:none;margin-top:calc(min(100vw,1100px) * -212/1254)}
  .ba2-soil img{height:calc(min(100vw,1100px) * 212/1254);object-fit:cover;object-position:center bottom}
  .ba2-title{font-size:calc(76/1254 * 100cqw)}
  .ba2-desc{font-size:calc(30/1254 * 100cqw)}
  .fsec.ba2 .ba-slider{border-radius:calc(26/1254 * 100cqw)}
  .ba2 .ba-tag{top:calc(16/1254 * 100cqw);font-size:calc(30/1254 * 100cqw);padding:calc(8/1254 * 100cqw) calc(28/1254 * 100cqw)}
  .ba2 .ba-tag.after{left:calc(46/1254 * 100cqw)}
  .ba2 .ba-tag.before{right:calc(30/1254 * 100cqw)}
  .ba2 .ba-handle svg{width:calc(88/1254 * 100cqw);height:calc(88/1254 * 100cqw);padding:calc(22/1254 * 100cqw)}
  .ba2 .ba2-btn{font-size:calc(30/1254 * 100cqw);gap:calc(18/1254 * 100cqw)}
  .ba2 .ba2-btn svg{width:calc(34/1254 * 100cqw);height:calc(34/1254 * 100cqw)}
  .ba2-fl.l{left:17.863%;top:8.333%;width:10.207%}
  .ba2-fl.r{left:72.887%;top:7.790%;width:11.404%}
  .ba2-title{left:27.990%;top:3.533%;width:45.215%;height:13.859%}
  .ba2-desc{left:21.212%;top:18.659%;width:58.612%;height:7.971%}
  .ba2-ul{left:40.271%;top:29.348%;width:20.415%}
  .ba2-wood{left:7.656%;top:30.707%;width:86.523%;height:46.467%}
  .ba2-frame{left:11.085%;top:36.322%;width:79.745%;height:35.779%}
  .ba2-ivy{left:2.552%;top:23.641%;width:35.885%}
  .ba2-trowel{left:0.000%;top:65.761%;width:17.305%}
  .ba2-btn{left:28.469%;top:80.797%;width:43.939%;height:8.605%}
}

/* Motion: frame settles, ivy grows over the corner, trowel pushes into the soil */
.motion-enabled .ba2 :is(.ba2-title,.ba2-desc,.ba2-ul,.ba2-fl,.ba2-btn){opacity:0;translate:0 3cqw;transition:opacity .7s cubic-bezier(.22,1,.36,1),translate .8s cubic-bezier(.22,1,.36,1)}
.motion-enabled .ba2 :is(.ba2-frame,.ba2-wood){opacity:0;scale:.96;transition:opacity .7s .15s cubic-bezier(.22,1,.36,1),scale .8s .15s cubic-bezier(.22,1,.36,1);transform:none}
.ba2-desc{transition-delay:.1s!important}.ba2-ul{transition-delay:.18s!important}.ba2-btn{transition-delay:.45s!important}
.motion-enabled .ba2 .ba2-ivy{clip-path:inset(0 100% 100% 0);transition:clip-path 1.4s .6s cubic-bezier(.3,.6,.3,1)}
.motion-enabled .ba2 .ba2-trowel{opacity:0;translate:0 -4cqw;rotate:-10deg;transition:opacity .4s .5s,translate .7s .5s cubic-bezier(.3,1.5,.5,1),rotate .7s .5s cubic-bezier(.3,1.5,.5,1)}
.motion-enabled .ba2.in :is(.ba2-title,.ba2-desc,.ba2-ul,.ba2-fl,.ba2-btn,.ba2-frame,.ba2-wood,.ba2-trowel){opacity:1;translate:none;scale:none;rotate:none}
.motion-enabled .ba2.in .ba2-ivy{clip-path:inset(-5% -5% -5% -5%)}
@media(prefers-reduced-motion:reduce){.motion-enabled .ba2 *{opacity:1!important;translate:none!important;scale:none!important;rotate:none!important;clip-path:none!important;transition:none!important}}

/* New square wood frame from the user (ivy built in), same artwork on phone and desktop.
   The board grows to make room and the button moves down under it. */
.ba2-board{aspect-ratio:864/1586}
.ba2-wood{left:3.704%;top:24.968%;width:92.593%;height:50.441%}
.ba2-frame{left:16.699%;top:33.778%;width:67.266%;height:34.955%}
.ba2-btn{left:20.139%;top:79.571%;width:60.185%;height:5.864%}
.fsec.ba2 .ba-slider{border-radius:calc(10/864 * 100cqw)}
}
}
.motion-enabled .ba2 .ba2-ivy2{clip-path:circle(0% at 4% 4%);transition:clip-path 1.8s .7s cubic-bezier(.3,.6,.3,1)}
.motion-enabled .ba2.in .ba2-ivy2{clip-path:circle(150% at 4% 4%)}
@media(prefers-reduced-motion:reduce){.motion-enabled .ba2 .ba2-ivy2{clip-path:none!important}}

/* desktop: wide frame, everything re-placed on one board height */
@media(min-width:821px){
.ba2-board{aspect-ratio:1254/1043}
.ba2-fl.l{left:17.863%;top:8.821%;width:10.207%}
.ba2-fl.r{left:72.887%;top:8.245%;width:11.404%}
.ba2-title{left:27.990%;top:3.739%;width:45.215%;height:14.669%}
.ba2-desc{left:21.212%;top:19.751%;width:58.612%;height:8.437%}
.ba2-ul{left:40.271%;top:27.804%;width:20.415%}
.ba2-wood,.ba2-ivy2{left:13.317%;top:31.640%;width:73.365%;height:49.643%}
.ba2-frame{left:21.479%;top:41.716%;width:57.262%;height:30.651%}
.ba2-btn{left:28.030%;top:85.117%;width:43.939%;height:9.108%}
}
.ba2-ivy2{position:absolute;z-index:4;pointer-events:none;left:3.704%;top:24.968%;width:92.593%;height:50.441%}
.ba2-ivy2 img{display:block;width:100%;height:100%}
@media(min-width:821px){.ba2-ivy2{left:13.317%;top:31.640%;width:73.365%;height:49.643%}}

/* phone: thinner beams (frame resampled), slider fills the larger window */
@media(max-width:820px){.ba2-frame{left:12.269%;top:30.801%;width:75.905%;height:40.184%}}

/* final frame (user, no leaves) + ivy layer on top */
@media(max-width:820px){.ba2-frame{left:13.155%;top:31.525%;width:73.321%;height:36.644%}}
@media(min-width:821px){.ba2-frame{left:19.855%;top:39.025%;width:60.026%;height:34.555%}}
.fsec.ba2 .ba-slider{border-radius:6px}
