/* Burning wooden plank effect (from the user's video) on every call-to-action button. */
@keyframes plank-heat{0%,100%{translate:0 0}25%{translate:calc(var(--p,0) * 1.4px) 0}75%{translate:calc(var(--p,0) * -1.4px) calc(var(--p,0) * .6px)}}
/* ---- Call-to-action buttons made of the same burning plank ----
   The button box is the plank body (886×313 in the source); the frame canvas overflows it so the
   flames can rise above. Frame = 127.1% × 199% of the body, offset −13.5% / −63.9%. */
button.fire-cta.fire-on{position:relative;isolation:isolate;display:inline-grid;place-items:center;width:var(--w,clamp(220px,19vw,290px));height:auto;min-height:0;aspect-ratio:886/313;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;
 container-type:inline-size;cursor:pointer;color:color-mix(in srgb,#ffe2a0 calc(var(--t) * 100%),#3f2207);font-family:Heebo,sans-serif;font-weight:900;font-size:16px;line-height:1.02;white-space:normal;text-align:center;
 -webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation;
 --t:clamp(0,(var(--p,0) - .62) * 2.6,1);transform:scale(calc(1 + var(--p,0) * .045));transition:transform .25s cubic-bezier(.34,1.4,.5,1);translate:none;scale:none;filter:drop-shadow(0 8px 7px #0005)}
.fire-cta.fire-on .fx{position:absolute;z-index:-1;left:-13.5%;top:-63.9%;width:127.1%;height:199%;background:url('assets/burn/plank.webp') center/100% 100% no-repeat;pointer-events:none}
.fire-cta.fire-on.fx-ready .fx{background:none}
.fire-cta.fire-on canvas{display:block;width:100%;height:100%}
.fire-on .fire-label{max-width:80cqw;font-size:9cqw;text-wrap:balance;text-shadow:0 .08em 0 rgb(255 226 178 / calc(.55 - var(--t) * .55)),0 -.05em 0 rgb(40 18 4 / calc(.7 - var(--t) * .7)),0 0 calc(var(--t) * .45em) rgb(255 100 10 / var(--t)),0 .04em calc(var(--t) * .12em) rgb(60 14 0 / var(--t))}
button.fire-cta.fire-on:hover{transform:scale(calc(1.03 + var(--p,0) * .02));background:none}
button.fire-cta.fire-on:focus-visible{outline:3px solid #ffb547;outline-offset:4px;border-radius:14px}
/* shake the wood and label, not the button itself, so the button keeps its own entrance animation */
.fire-cta.fire-on.is-burning:not(.is-lit)>:is(.fx,.fire-label){animation:plank-heat .11s linear infinite}
.hero-copy button.fire-cta.fire-on{--w:clamp(240px,21vw,330px);margin-top:6px}
.cta .lead-form button.fire-cta.fire-on{--w:clamp(170px,14vw,220px)}
.cta .lead-form .fire-cta.fire-on .fire-label{font-size:12cqw}
@media(max-width:767px) and (max-aspect-ratio:4/5){
 .hero-copy button.fire-cta.fire-on{position:absolute;top:calc(var(--u) * 560);right:calc(var(--u) * 125);width:calc(var(--u) * 280);height:auto;margin:0}
}
@media(prefers-reduced-motion:reduce){button.fire-cta.fire-on{transform:none;animation:none}}
.fire-cta:not(.fire-on) .fx{display:none}
.fire-cta.fire-on .cta-arrow{display:none}

/* Phones: keep the burning-plank buttons compact. */
@media(max-width:600px){
 button.fire-cta.fire-on{--w:148px}
 .cta .lead-form button.fire-cta.fire-on,.cta .form-frame .lead-form button.fire-cta.fire-on{--w:140px}
 button.fire-cta.fire-on .fire-label{font-size:10cqw}
}
/* Softer shadow: a heavy drop-shadow on every spark and flame read as a dirty box on light backgrounds. */
button.fire-cta.fire-on{filter:drop-shadow(0 5px 5px #3b2a1026)}

/* the long "more projects" label gets a wider plank so it stays on one or two lines */
.ba2 button.fire-cta.fire-on{--w:clamp(260px,24vw,340px)}
.ba2 .fire-cta.fire-on .fire-label{font-size:8.4cqw}
@media(max-width:600px){.ba2 button.fire-cta.fire-on{--w:218px}.ba2 .fire-cta.fire-on .fire-label{font-size:8.6cqw}}
/* desktop: centre the plank in the button's slot under the frame so it does not sink into the soil below */
@media(min-width:821px){
 .ba2 .ba2-board>button.ba2-btn.fire-cta.fire-on{--w:30%;left:35%;top:88%;margin-top:-5.3%}
 .ba2 .ba2-btn.fire-cta.fire-on .fire-label{font-size:8.4cqw}
}

/* tablets: the three fields share a row and the send plank gets its own row in the middle,
   clear of the watering can on the left */
@media(min-width:601px) and (max-width:1199px){
 .cta .lead-form{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cta .lead-form button.fire-cta.fire-on{grid-column:1/-1;justify-self:center;--w:230px;margin-top:8px}
}

/* the send plank is exactly as tall as the form fields (52px) on every screen */
.cta .lead-form button.fire-cta.fire-on.fire-on{--w:148px;min-height:0;justify-self:center}
.cta .lead-form .fire-cta.fire-on.fire-on .fire-label{font-size:13cqw}
