/* WiseBI Solution Box — home "prompt stage" (inc/solution-popup.php → wisebi_solution_box_section). Redesign 2026-11-24.
   Height budget: the site zooms the page with screen WIDTH (html zoom ≈ width/1150); on laptops (1366×657, 1536×730)
   only ~480 CSS px fit under the header, so the desktop stage must stay ≤ ~470px. */
@property --sbx2-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.sbx2{--gold:#f8b204;--mx:50%;--my:40%;position:relative;z-index:2;isolation:isolate;overflow:hidden;padding:60px 24px 64px;background:#050505;color:#fff;text-align:center}
.sbx2::before,.sbx2::after{content:"";position:absolute;left:0;right:0;height:60px;z-index:1;pointer-events:none}
.sbx2::before{top:0;background:linear-gradient(#070707,transparent)}
.sbx2::after{bottom:0;background:linear-gradient(transparent,#070707)}

/* ---------- Stage ---------- */
.sbx2-stage{position:absolute;inset:0;z-index:0;pointer-events:none}
.sbx2-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:0;transition:opacity 1.6s ease,transform 1.2s cubic-bezier(.22,1,.36,1)}
.sbx2-blob--a{width:620px;height:360px;left:calc(50% - 560px);top:4%;background:radial-gradient(closest-side,rgba(248,178,4,.55),transparent);animation:sbx2-a 18s ease-in-out infinite alternate}
.sbx2-blob--b{width:560px;height:340px;left:calc(50% + 20px);top:-4%;background:radial-gradient(closest-side,rgba(255,140,0,.42),transparent);animation:sbx2-b 22s ease-in-out infinite alternate}
.sbx2-blob--c{width:700px;height:260px;left:calc(50% - 350px);top:52%;background:radial-gradient(closest-side,rgba(253,224,71,.30),transparent);animation:sbx2-c 26s ease-in-out infinite alternate}
@keyframes sbx2-a{to{transform:translate(160px,40px) scale(1.15)}}
@keyframes sbx2-b{to{transform:translate(-180px,60px) scale(.9)}}
@keyframes sbx2-c{to{transform:translate(90px,-50px) scale(1.1)}}
.sbx2-spot{position:absolute;inset:0;background:radial-gradient(420px circle at var(--mx) var(--my),rgba(248,178,4,.10),transparent 70%);opacity:0;transition:opacity .8s}
/* perspective light-grid floor moving toward the viewer */
.sbx2-floor{position:absolute;left:-25%;right:-25%;bottom:-4%;height:42%;perspective:420px;opacity:0;transition:opacity 1.8s ease .4s}
.sbx2-floor i{position:absolute;inset:0;transform:rotateX(64deg);transform-origin:50% 100%;background-image:linear-gradient(rgba(248,178,4,.55) 1px,transparent 1px),linear-gradient(90deg,rgba(248,178,4,.40) 1px,transparent 1px);background-size:64px 64px;-webkit-mask-image:linear-gradient(to top,#000 10%,transparent 85%);mask-image:linear-gradient(to top,#000 10%,transparent 85%);animation:sbx2-floor 2.6s linear infinite}
.sbx2-floor::before{content:"";position:absolute;left:10%;right:10%;top:0;height:2px;background:linear-gradient(90deg,transparent,rgba(255,214,102,.8),transparent);box-shadow:0 0 30px 6px rgba(248,178,4,.35);border-radius:2px}
@keyframes sbx2-floor{to{background-position:0 64px,0 0}}
.sbx2-grain{position:absolute;inset:-50%;opacity:.06;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");animation:sbx2-grain 1.2s steps(6) infinite}
@keyframes sbx2-grain{0%,100%{transform:translate(0,0)}25%{transform:translate(-4%,3%)}50%{transform:translate(3%,-5%)}75%{transform:translate(-6%,2%)}}
/* loops only run while on screen */
.sbx2 .sbx2-blob,.sbx2 .sbx2-floor i,.sbx2 .sbx2-grain,.sbx2 .sbx2-title em .sbx2-w,.sbx2 .sbx2-eyebrow i{animation-play-state:paused}
.sbx2.is-live .sbx2-blob,.sbx2.is-live .sbx2-floor i,.sbx2.is-live .sbx2-grain,.sbx2.is-live .sbx2-title em .sbx2-w,.sbx2.is-live .sbx2-eyebrow i{animation-play-state:running}
.sbx2.is-on .sbx2-blob{opacity:.85}
.sbx2.is-on .sbx2-spot,.sbx2.is-on .sbx2-floor{opacity:1}
/* focus mode */
.sbx2.is-focus .sbx2-blob{opacity:1}
.sbx2.is-focus .sbx2-floor i{animation-duration:1.1s}


/* ---------- Content ---------- */
.sbx2-inner{position:relative;z-index:2;max-width:820px;margin:0 auto}
.sbx2-rise{opacity:0;transform:translateY(24px);transition:opacity .9s cubic-bezier(.22,1,.36,1) var(--d,0s),transform 1s cubic-bezier(.22,1,.36,1) var(--d,0s)}
.sbx2.is-on .sbx2-rise{opacity:1;transform:none}
.sbx2-eyebrow{display:inline-flex;align-items:center;gap:9px;margin:0 0 16px;padding:6px 14px;border:1px solid rgba(248,178,4,.4);border-radius:999px;background:rgba(248,178,4,.08);font-size:12.5px;font-weight:600;letter-spacing:.04em;color:#FFE7A3}
.sbx2-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--gold);animation:sbx2-ping 2.2s ease-out infinite}
@keyframes sbx2-ping{0%{box-shadow:0 0 0 0 rgba(248,178,4,.7)}70%,100%{box-shadow:0 0 0 8px rgba(248,178,4,0)}}
.sbx2-title{margin:0;font-size:34px;line-height:1.18;font-weight:600;letter-spacing:-.02em;color:#fff}
.sbx2-title em{font-style:normal}
.sbx2-w{display:inline-block;opacity:0;filter:blur(10px);transform:translateY(14px);transition:opacity .7s ease,filter .8s ease,transform .9s cubic-bezier(.16,1,.3,1);transition-delay:calc(.15s + var(--i)*.06s)}
.sbx2.is-on .sbx2-w{opacity:1;filter:blur(0);transform:none}
.sbx2-title em .sbx2-w{background:linear-gradient(100deg,#C88A04 0%,#F8B204 30%,#FFE9A8 50%,#F8B204 70%,#C88A04 100%);background-size:400% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sbx2-sheen 6s ease-in-out infinite}
@keyframes sbx2-sheen{0%,100%{background-position:100% 0}50%{background-position:0 0}}
.sbx2-lead{margin:12px auto 0;max-width:600px;font-size:14.5px;line-height:1.6;color:rgba(255,255,255,.66);transition:opacity .4s}

/* ---------- The prompt bar ---------- */
.sbx2-bar{position:relative;max-width:760px;margin:26px auto 0;text-align:left;border-radius:20px 6px 20px 20px;box-shadow:0 30px 80px -30px rgba(248,178,4,.45),0 24px 50px -24px rgba(0,0,0,.9);transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s ease}
.sbx2.is-focus .sbx2-bar{transform:translateY(-4px);box-shadow:0 0 0 6px rgba(248,178,4,.14),0 40px 100px -30px rgba(248,178,4,.75),0 24px 50px -24px rgba(0,0,0,.9)}
/* gold edge that draws itself around the bar on reveal */
.sbx2-edge{position:absolute;inset:-1.5px;z-index:3;padding:1.5px;border-radius:21px 7px 21px 21px;pointer-events:none;background:conic-gradient(from -90deg,#F8B204,#FFE9A8 var(--sbx2-p),transparent var(--sbx2-p));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);transition:--sbx2-p 1.8s cubic-bezier(.65,0,.35,1) 1.1s}
.sbx2.is-on .sbx2-edge{--sbx2-p:100%}

#wsb-root.wsb-inline{position:relative;z-index:1}
#wsb-root.wsb-inline #solution-popup-overlay{position:static;z-index:auto;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0;display:block}
#wsb-root.wsb-inline .wise-card{border:0;border-radius:20px 6px 20px 20px;background:#FFFDF8;box-shadow:none}
#wsb-root.wsb-inline .gold-shimmer-bar,#wsb-root.wsb-inline .wsx-head,#wsb-root.wsb-inline #step-1 .wsx-hd{display:none}
#wsb-root.wsb-inline .wsx-body{padding:0}
#wsb-root.wsb-inline #step-2,#wsb-root.wsb-inline #step-3,#wsb-root.wsb-inline #step-4{padding:18px 26px 20px}
/* step 1 = one big input with the actions on its bottom row */
#wsb-root.wsb-inline #problem-form{position:relative;gap:0}
#wsb-root.wsb-inline .wsx-ta textarea{height:86px;min-height:0;resize:none;padding:22px 26px 6px;border:0;border-radius:20px 6px 0 0;background:transparent;box-shadow:none;font-size:17px;line-height:1.55;color:#0F172A}
#wsb-root.wsb-inline .wsx-ta textarea:focus{box-shadow:none;background:transparent}
#wsb-root.wsb-inline .wsx-ta textarea::placeholder{color:#9AA4B2}
#wsb-root.wsb-inline .wsx-ta-foot{display:none}
#wsb-root.wsb-inline .wsx-nda{margin:0;padding:4px 26px 22px;min-height:62px;align-items:center;font-size:12.5px;color:#64748B;border-top:1px solid rgba(15,23,42,.06)}
#wsb-root.wsb-inline #problem-error{margin:-14px 26px 16px}
#wsb-root.wsb-inline #problem-form .wsx-foot{position:absolute;right:14px;bottom:12px}
#wsb-root.wsb-inline .wsx-cta{min-height:44px;padding:12px 20px;border-radius:12px 4px 12px 12px}

/* steps 2–4 kept compact so the stage still fits a laptop screen */
#wsb-root.wsb-inline #step-3{gap:12px}
#wsb-root.wsb-inline #step-3 .wsx-banner{padding:0;background:none;border:0}
#wsb-root.wsb-inline #step-3 .wsx-h22{font-size:17px;line-height:1.4}
#wsb-root.wsb-inline #email-form{flex-direction:row;align-items:flex-end;gap:12px}
#wsb-root.wsb-inline #email-form>div:first-child{flex:1;min-width:0}
#wsb-root.wsb-inline #email-form .wsx-foot{width:auto}
#wsb-root.wsb-inline #email-form .wsx-emailbox{height:46px}
#wsb-root.wsb-inline #email-form .wsx-cta{min-height:46px;white-space:nowrap}
#wsb-root.wsb-inline .wsx-center{min-height:0;gap:10px;padding:6px 0}
#wsb-root.wsb-inline .wsx-halo{width:72px;height:72px}
#wsb-root.wsb-inline .wsx-medal{width:52px;height:52px}
#wsb-root.wsb-inline .wsx-h24{font-size:20px}
#wsb-root.wsb-inline .wsx-done{padding:8px 0 0}
#wsb-root.wsb-inline .wsx-receipt{flex-direction:row;margin:2px 0}

@media (max-width:760px){
  .sbx2{padding:56px 18px 60px}
  .sbx2-title{font-size:27px}
  .sbx2-title em{display:block}
  .sbx2-lead{font-size:14.5px}
  .sbx2-floor{height:34%}
  #wsb-root.wsb-inline .wsx-ta textarea{height:118px;font-size:16px;padding:18px 18px 6px}
  #wsb-root.wsb-inline .wsx-nda{min-height:0;padding:10px 18px 12px}
  #wsb-root.wsb-inline #problem-form .wsx-foot{position:static;padding:0 14px 14px}
  #wsb-root.wsb-inline #problem-form .wsx-cta{width:100%}
  #wsb-root.wsb-inline #step-2,#wsb-root.wsb-inline #step-3,#wsb-root.wsb-inline #step-4{padding:18px 18px 20px}
  #wsb-root.wsb-inline #email-form{flex-direction:column;align-items:stretch}
  #wsb-root.wsb-inline #email-form .wsx-cta{width:100%}
  #wsb-root.wsb-inline .wsx-receipt{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  .sbx2-blob,.sbx2-floor i,.sbx2-grain,.sbx2-title em .sbx2-w,.sbx2-eyebrow i{animation:none}
  .sbx2-rise,.sbx2-w,.sbx2-edge,.sbx2-blob,.sbx2-floor{transition:none}
}

/* ===== v3: two-column stage with the WebGL "problem → idea → solved" sculpture (assets/js/solution-stage.js) ===== */
.sbx2{text-align:left;padding:50px 32px 54px}
.sbx2-inner{max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:40px;align-items:center}
.sbx2-title{font-size:31px}
.sbx2-title em{display:block}
.sbx2-lead{margin:12px 0 0;max-width:560px}
.sbx2-bar{margin:22px 0 0;max-width:none}

.sbx2-blob--a{left:auto;right:-60px;top:0}
.sbx2-blob--b{left:auto;right:180px;top:30%}
.sbx2-blob--c{left:-160px;top:40%}
.sbx3-gl{position:absolute;left:-70px;top:-50px;width:calc(100% + 140px);height:calc(100% + 100px);z-index:1;pointer-events:none;opacity:0;transition:opacity 1.6s ease .5s}
.sbx2 .sbx2-floor::before{display:none}
.sbx2 .sbx2-grain{animation:none}
.sbx2.is-on.gl-ready .sbx3-gl{opacity:1}
.sbx3-visual{position:relative;height:340px}
.sbx3-halo{position:absolute;left:50%;top:50%;width:380px;height:380px;margin:-190px 0 0 -190px;border-radius:50%;background:radial-gradient(closest-side,rgba(248,178,4,.30),rgba(248,178,4,.08) 55%,transparent);opacity:calc(.25 + var(--sbx3-glow,0) * .75);transform:scale(calc(.85 + var(--sbx3-glow,0) * .25));filter:blur(6px)}
.sbx3-cap{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(10,10,10,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.75);white-space:nowrap;z-index:3;opacity:0;transition:opacity .8s ease 1.4s}
.sbx2.is-on.gl-ready .sbx3-cap{opacity:1}
.sbx3-cap b{font-weight:600}
.sbx3-cap i{width:7px;height:7px;border-radius:50%;background:#94A3B8;transition:background .4s,box-shadow .4s}
.sbx3-cap[data-state="idea"] i{background:#F8B204;box-shadow:0 0 10px #F8B204}
.sbx3-cap[data-state="solved"] i{background:#10B981;box-shadow:0 0 10px #10B981}
/* no WebGL: show the FigCraft bulb as a still image */
.sbx2.no-gl .sbx3-visual{background:url("../solution/sbx-bulb.svg") center/62% no-repeat}
.sbx2.no-gl .sbx3-cap{display:none}

@media (max-width:960px){
  .sbx2{text-align:center;padding:56px 22px 60px}
  .sbx2-inner{grid-template-columns:1fr;gap:26px;max-width:680px}
  .sbx3-visual{order:-1;height:230px}
  .sbx3-halo{width:260px;height:260px;margin:-130px 0 0 -130px}
  .sbx2-lead{margin-left:auto;margin-right:auto}
  .sbx2-bar{text-align:left}
}
@media (max-width:760px){
  .sbx2{padding:40px 18px 46px}
  .sbx2-inner{gap:16px}
  .sbx2-title{font-size:25px}
  .sbx3-visual{height:184px}
  .sbx3-halo{width:220px;height:220px;margin:-110px 0 0 -110px}
  .sbx3-cap{display:none}
}

/* ===== v4: 3D "box" stage (you look into an open gold-edged box) + fast bottom-to-top build-in (2026-11-24) ===== */
.sbx2 .sbx2-floor{display:none}
.sbx3-room{position:absolute;inset:0;perspective:900px;perspective-origin:50% 45%;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.18) 40%,#000 62%);mask-image:linear-gradient(90deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.18) 40%,#000 62%)}
@media (max-width:960px){.sbx3-room{-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 30%,rgba(0,0,0,.15) 48%);mask-image:linear-gradient(180deg,#000 0%,#000 30%,rgba(0,0,0,.15) 48%)}}
.sbx3-room__in{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d}
.sbx3-f{--W:1500px;--H:620px;--D:1100px;position:absolute;left:0;top:0;display:block;box-sizing:border-box;border:1.5px solid rgba(248,178,4,.55);box-shadow:inset 0 0 60px rgba(248,178,4,.06);
  background-color:#080706;background-image:linear-gradient(rgba(248,178,4,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(248,178,4,.11) 1px,transparent 1px);background-size:60px 60px;
  opacity:0;transition:opacity .45s ease,transform .8s cubic-bezier(.2,.9,.25,1)}
.sbx3-f--back{width:var(--W);height:var(--H);margin:calc(var(--H)/-2) 0 0 calc(var(--W)/-2);background-color:#0b0905;
  background-image:radial-gradient(45% 60% at 72% 50%,rgba(248,178,4,.26),transparent 70%),linear-gradient(rgba(248,178,4,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(248,178,4,.10) 1px,transparent 1px);background-size:auto,60px 60px,60px 60px;
  transform:translateZ(calc(var(--D)*-1)) translateY(40px)}
.sbx3-f--floor,.sbx3-f--top{width:var(--W);height:var(--D);margin:calc(var(--D)/-2) 0 0 calc(var(--W)/-2)}
.sbx3-f--floor{transform:translateY(calc(var(--H)/2 + 120px)) translateZ(calc(var(--D)/-2)) rotateX(90deg);background-color:#0a0805}
.sbx3-f--top{transform:translateY(calc(var(--H)/-2 - 120px)) translateZ(calc(var(--D)/-2)) rotateX(-90deg);background-color:#050505}
.sbx3-f--left,.sbx3-f--right{width:var(--D);height:var(--H);margin:calc(var(--H)/-2) 0 0 calc(var(--D)/-2)}
.sbx3-f--left{transform:translateX(calc(var(--W)/-2 - 120px)) translateZ(calc(var(--D)/-2)) rotateY(90deg)}
.sbx3-f--right{transform:translateX(calc(var(--W)/2 + 120px)) translateZ(calc(var(--D)/-2)) rotateY(-90deg)}
/* build-in: the box assembles from the floor up, fast */
.sbx2.is-on .sbx3-f{opacity:1}
.sbx2.is-on .sbx3-f--back{transform:translateZ(calc(var(--D)*-1));transition-delay:.12s}
.sbx3-f--floor{transition-delay:0s}
.sbx2.is-on .sbx3-f--left,.sbx2.is-on .sbx3-f--right{transition-delay:.08s}
.sbx2.is-on .sbx3-f--top{transition-delay:.18s}
/* content rises from the bottom, quick and smooth */
.sbx2-inner{transform:translateY(60px);opacity:0;transition:transform .7s cubic-bezier(.2,.9,.25,1),opacity .45s ease}
.sbx2.is-on .sbx2-inner{transform:none;opacity:1}
.sbx2-rise{transform:translateY(18px);transition:opacity .45s ease calc(var(--d,0s) * .4),transform .6s cubic-bezier(.2,.9,.25,1) calc(var(--d,0s) * .4)}
.sbx2-w{transition:opacity .4s ease,filter .45s ease,transform .55s cubic-bezier(.2,.9,.25,1);transition-delay:calc(.05s + var(--i)*.03s)}
.sbx2-blob{transition:opacity .6s ease,transform .8s cubic-bezier(.22,1,.36,1)}
.sbx2.is-on .sbx2-blob{opacity:.55}
.sbx3-gl{transition:opacity .5s ease .15s}
.sbx3-cap{transition:opacity .4s ease .5s}
.sbx2-edge{transition:--sbx2-p .9s cubic-bezier(.65,0,.35,1) .35s}
@media (prefers-reduced-motion:reduce){.sbx3-f,.sbx2-inner{transition:none}.sbx3-f{opacity:1}.sbx2-inner{transform:none;opacity:1}}

/* ===== v6: more motion graphics in the 3D room (2026-11-24) ===== */
.sbx2{padding-top:56px}
/* floor grid flows towards the viewer */
.sbx3-f--floor{animation:sbx3-flow 2.4s linear infinite;animation-play-state:paused}
@keyframes sbx3-flow{to{background-position:0 60px,0 0}}
/* a gold data-stream light running round the back wall edge */
.sbx3-run{position:absolute;inset:-1.5px;border-radius:2px;padding:2px;pointer-events:none;background:conic-gradient(from var(--sbx3-a,0deg),transparent 0deg,transparent 300deg,rgba(248,178,4,.2) 320deg,#FFE9A8 352deg,transparent 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);filter:drop-shadow(0 0 6px rgba(248,178,4,.8));animation:sbx3-orbit 4.5s linear infinite;animation-play-state:paused}
@property --sbx3-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes sbx3-orbit{to{--sbx3-a:360deg}}
/* scanner beam sweeping across the walls */
.sbx3-scan{position:absolute;top:0;bottom:0;left:-30%;width:22%;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(248,178,4,.16) 45%,rgba(255,233,168,.35) 50%,rgba(248,178,4,.16) 55%,transparent);mix-blend-mode:screen;animation:sbx3-scan 6s cubic-bezier(.45,0,.2,1) infinite;animation-play-state:paused}
.sbx3-f--left .sbx3-scan{animation-delay:1.2s}.sbx3-f--right .sbx3-scan{animation-delay:2.4s}
@keyframes sbx3-scan{0%{left:-30%}55%,100%{left:110%}}
/* back-wall tiles light up like live data */
.sbx3-tiles{position:absolute;inset:0;pointer-events:none}
.sbx3-tiles b{position:absolute;left:calc(var(--x) * 60px + 1px);top:calc(var(--y) * 60px + 1px);width:58px;height:58px;background:rgba(248,178,4,.22);box-shadow:inset 0 0 0 1px rgba(255,220,120,.45),0 0 24px rgba(248,178,4,.35);opacity:0;animation:sbx3-tile 6s ease-in-out infinite;animation-delay:var(--d);animation-play-state:paused}
@keyframes sbx3-tile{0%,100%{opacity:0}12%{opacity:1}30%{opacity:.15}45%{opacity:0}}
/* gold sparks rising through the room */
.sbx3-sparks{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.sbx3-sparks i{position:absolute;bottom:-10px;left:var(--l);width:calc(var(--s) * 3px);height:calc(var(--s) * 3px);border-radius:50%;background:#FFD978;box-shadow:0 0 calc(var(--s) * 8px) rgba(248,178,4,.9);opacity:0;animation:sbx3-rise var(--t) linear infinite;animation-delay:var(--d);animation-play-state:paused}
@keyframes sbx3-rise{0%{transform:translate(0,0);opacity:0}10%{opacity:.9}80%{opacity:.5}100%{transform:translate(calc(var(--s) * 18px),-560px);opacity:0}}
/* the light behind the bulb breathes */
.sbx3-halo{animation:sbx3-breathe 4.2s ease-in-out infinite;animation-play-state:paused}
@keyframes sbx3-breathe{0%,100%{filter:blur(6px) brightness(1)}50%{filter:blur(10px) brightness(1.45)}}
/* run only while the section is on screen */
.sbx2.is-live .sbx3-f--floor,.sbx2.is-live .sbx3-run,.sbx2.is-live .sbx3-scan,.sbx2.is-live .sbx3-tiles b,.sbx2.is-live .sbx3-sparks i,.sbx2.is-live .sbx3-halo{animation-play-state:running}
@media (max-width:960px){.sbx3-sparks i:nth-child(n+10){display:none}}
@media (max-width:760px){.sbx2{padding-top:40px}}
@media (prefers-reduced-motion:reduce){.sbx3-f--floor,.sbx3-run,.sbx3-scan,.sbx3-tiles b,.sbx3-sparks i,.sbx3-halo{animation:none!important}.sbx3-sparks,.sbx3-scan{display:none}}

/* ===== v7: smooth + always-visible content (2026-11-24) =====
   Content never sits at opacity 0: it only slides up. Heavy repaints swapped for GPU-only motion. */
.sbx2-inner,.sbx2-rise,.sbx2-w,.sbx3-f,.sbx3-cap{opacity:1}
.sbx2-w{filter:none;transform:translateY(8px)}
.sbx2.is-on .sbx2-w{transform:none}
.sbx2-inner{transform:translateY(36px);transition:transform .6s cubic-bezier(.2,.9,.25,1)}
.sbx2-inner,.sbx3-room{will-change:transform}
/* room fade: a gradient overlay instead of a mask (a mask re-composites the whole room every frame) */
.sbx3-room{-webkit-mask-image:none!important;mask-image:none!important}
.sbx3-room::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,5,5,.88) 0%,rgba(5,5,5,.82) 40%,rgba(5,5,5,0) 62%)}
@media (max-width:960px){.sbx3-room::after{background:linear-gradient(180deg,rgba(5,5,5,0) 0%,rgba(5,5,5,0) 30%,rgba(5,5,5,.85) 48%)}}
/* floor flow: move a layer (GPU) instead of repainting the background */
.sbx3-f--floor{animation:none!important;overflow:hidden;background-image:none}
.sbx3-f--floor::before{content:"";position:absolute;left:0;right:0;top:-60px;bottom:0;background-image:linear-gradient(rgba(248,178,4,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(248,178,4,.11) 1px,transparent 1px);background-size:60px 60px;will-change:transform;animation:sbx3-flow2 2.4s linear infinite;animation-play-state:paused}
@keyframes sbx3-flow2{to{transform:translateY(60px)}}
.sbx2.is-live .sbx3-f--floor::before{animation-play-state:running}
/* scanner: transform instead of left, no blend mode */
.sbx3-scan{left:-30%;mix-blend-mode:normal;will-change:transform;animation-name:sbx3-scan2}
@keyframes sbx3-scan2{0%{transform:translateX(0)}55%,100%{transform:translateX(640%)}}
/* data-stream: no per-frame drop-shadow filter */
.sbx3-run{filter:none}
/* halo breathes with scale (GPU), blur stays static */
.sbx3-halo{filter:blur(8px);will-change:transform,opacity;animation-name:sbx3-breathe2}
@keyframes sbx3-breathe2{0%,100%{scale:1}50%{scale:1.08}}
.sbx2-blob,.sbx3-sparks i,.sbx3-tiles b{will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){.sbx3-f--floor::before{animation:none!important}.sbx2-inner,.sbx2-w{transform:none}}
/* data-stream light: two light bars gliding along the back wall's top and bottom edges (transform only) */
.sbx3-run{background:none!important;-webkit-mask:none!important;mask:none!important;padding:0;animation:none!important;overflow:hidden;inset:-1px}
.sbx3-run::before,.sbx3-run::after{content:"";position:absolute;left:0;width:18%;height:2px;background:linear-gradient(90deg,transparent,rgba(248,178,4,.5) 40%,#FFE9A8 80%,transparent);box-shadow:0 0 10px rgba(248,178,4,.8);will-change:transform;animation:sbx3-glide 4.5s linear infinite;animation-play-state:paused}
.sbx3-run::before{top:0}
.sbx3-run::after{bottom:0;animation-direction:reverse;animation-delay:-2.25s}
@keyframes sbx3-glide{from{transform:translateX(-100%)}to{transform:translateX(556%)}}
.sbx2.is-live .sbx3-run::before,.sbx2.is-live .sbx3-run::after{animation-play-state:running}
/* glow blobs: the radial gradients are already soft, the 70px blur only cost frames */
.sbx2-blob{filter:none}
@media (prefers-reduced-motion:reduce){.sbx3-run::before,.sbx3-run::after{animation:none!important}}

/* ===== v8: mobile fit (2026-11-25). The email field's built-in width stretched the grid column past narrow phones. ===== */
.sbx2-inner>*{min-width:0}
#wsb-root.wsb-inline .wsx-emailbox{min-width:0}
#wsb-root.wsb-inline #email-input{min-width:0;width:100%;flex:1 1 0}
@media (max-width:960px){.sbx2-inner{grid-template-columns:minmax(0,1fr)}}
@media (max-width:400px){
  #wsb-root.wsb-inline #email-form .wsx-emailbox{padding-left:12px;padding-right:12px}
  #wsb-root.wsb-inline #step-3 .wsx-banner{flex-wrap:wrap;gap:8px}
}
.sbx2-title em,.sbx2 .wsx-h22{text-wrap:balance}
.sbx2-lead{text-wrap:pretty}
@media (max-width:960px){.sbx2-eyebrow{position:relative;z-index:1;background:#1b1505}}
@media (max-width:760px){.sbx2-lead{text-wrap:balance}}

/* v9 (2026-11-25): label pill removed; the closing line is shown big */
.sbx2-big{margin:16px 0 0;font-size:clamp(21px,2vw,26px);line-height:1.25;font-weight:700;letter-spacing:-.01em;color:#fff;text-wrap:balance}
.sbx2-big em{font-style:normal;color:#f8b204}

@media (max-width:960px){.sbx2-big{margin-top:18px}}
@media (max-width:760px){.sbx2-big{font-size:21px}.sbx2-big em{display:block}}

/* v10 (2026-11-25): "Chat to Inbox" story animation replaces the WebGL bulb (assets/js/solution-story.js) */
.sbx4-story{position:absolute;left:-30px;top:-24px;width:calc(100% + 60px);height:calc(100% + 48px);z-index:1;pointer-events:none;display:block}
.sbx2 .sbx3-gl,.sbx2 .sbx3-cap{display:none}
@media (max-width:760px){.sbx3-visual{height:220px}.sbx4-story{left:-10px;width:calc(100% + 20px);top:-10px;height:calc(100% + 20px)}}

/* v11 (2026-11-25): contact line on the last step; compact phone layout */
#wsb-root .wsx-help{margin:0;padding-top:10px;border-top:1px solid rgba(15,23,42,.08);width:100%;font-size:13px;line-height:1.5;color:#64748B;text-align:center;text-wrap:balance}
#wsb-root .wsx-help a{display:inline-block;color:#8A5B00;font-weight:600;text-decoration:underline;text-underline-offset:3px}
#wsb-root.wsb-inline #step-4{gap:7px;padding-top:12px;padding-bottom:14px}
#wsb-root.wsb-inline #step-4 .wsx-halo{width:56px;height:56px}
#wsb-root.wsb-inline #step-4 .wsx-medal{width:42px;height:42px}
@media (max-width:760px){
  .sbx2{padding:16px 18px 36px}
  .sbx3-room{display:none}
  .sbx2-inner{gap:6px}
  .sbx3-visual{height:170px;background:radial-gradient(60% 55% at 50% 48%,rgba(248,178,4,.20),transparent 72%)}
  .sbx4-story{left:0;top:0;width:100%;height:100%}
  .sbx2-title{font-size:23px;line-height:1.22}
  .sbx2-lead{margin-top:8px;font-size:13.5px;line-height:1.55}
  .sbx2-big{margin-top:12px;font-size:19px}
  .sbx2-bar{margin-top:16px}
  #wsb-root.wsb-inline .wsx-ta textarea{height:96px}
}

/* v12: the last step fits one screen (the story animation already shows the big tick) */
#wsb-root.wsb-inline #step-4 .wsx-halo{display:none}
#wsb-root.wsb-inline #step-4{gap:6px;padding-top:14px;padding-bottom:12px}
#wsb-root.wsb-inline #step-4>*{margin-top:0;margin-bottom:0}
#wsb-root.wsb-inline #step-4 .wsx-h24{font-size:18px;line-height:1.3}
#wsb-root.wsb-inline #step-4 .wsx-p{font-size:13.5px;line-height:1.5;max-width:520px}
#wsb-root.wsb-inline #step-4 .wsx-receipt>div{padding-top:7px;padding-bottom:7px;row-gap:2px}
#wsb-root.wsb-inline #step-4 .wsx-link{padding-top:2px;padding-bottom:2px;min-height:0}
#wsb-root .wsx-help{padding-top:7px;font-size:12.5px}
/* the paragraph under the heading stays visible on every step (2026-11-26) */

/* v13: 500-word counter is visible under the problem box */
#wsb-root.wsb-inline .wsx-ta-foot{display:flex;justify-content:space-between;position:static;margin:0;padding:0 26px 6px;background:transparent}
#wsb-root.wsb-inline .wsx-count{font-size:11.5px}
@media (max-width:760px){#wsb-root.wsb-inline .wsx-ta-foot{padding:0 18px 6px}}

/* ===== v14: presenter (2026-11-25). Her open hand reaches to the Solution Box; the story animation floats above it.
   Image is 1473x1068: hand at 21% across / 66% down, head starts at 60% across. ===== */
.sbx5-host{position:absolute;z-index:1;pointer-events:none;transform:translateX(36px);transition:transform .9s cubic-bezier(.22,1,.36,1) .15s}
.sbx2.is-on .sbx5-host{transform:none}
.sbx5-host::before{content:"";position:absolute;left:44%;right:-4%;top:-4%;bottom:0;background:radial-gradient(50% 55% at 55% 42%,rgba(248,178,4,.34),rgba(248,178,4,.10) 55%,transparent 78%)}
.sbx5-host img{position:relative;display:block;width:100%;height:100%;max-width:none;-webkit-mask-image:linear-gradient(180deg,#000 88%,transparent);mask-image:linear-gradient(180deg,#000 88%,transparent)}
.sbx3-halo{display:none}
@media (prefers-reduced-motion:reduce){.sbx5-host{transform:none;transition:none}}
@media (min-width:961px){
  .sbx5-host{right:-22px;bottom:-54px;width:552px;height:400px}
  .sbx3-visual{height:400px;align-self:end;margin-bottom:-10px}
  .sbx4-story{left:-14px;top:22px;width:244px;height:186px}
}
@media (max-width:960px){
  .sbx2-inner{max-width:560px}
  .sbx5-host{top:0;right:-14px;width:262px;height:190px}
  .sbx3-visual{height:190px;background:none}
  .sbx4-story{left:0;top:4px;width:47%;height:122px}
}
@media (min-width:761px) and (max-width:960px){
  .sbx5-host{right:20px;width:331px;height:240px}
  .sbx3-visual{height:240px}
  .sbx4-story{left:30px;width:44%;height:158px}
}
@media (min-width:961px){
  .sbx2{padding-top:38px;padding-bottom:42px}
  .sbx5-host{bottom:-42px;width:524px;height:380px}
  .sbx3-visual{height:370px}
  .sbx4-story{left:-26px;top:4px;width:266px;height:200px}
}

/* ===== v15 (2026-11-25): scroll lag fix. The live 3D box (five surfaces up to 1500x1100) is now one flat picture of itself. */
.sbx3-room{perspective:none;background:#050505 url("../solution/sbx-room.webp") center/100% 100% no-repeat}
.sbx3-room::before{content:"";position:absolute;left:20.4%;top:calc(22.6% - 1px);width:11%;height:2px;background:linear-gradient(90deg,transparent,rgba(248,178,4,.55) 40%,#FFE9A8 80%,transparent);animation:sbx3-glide 4.5s linear infinite;animation-play-state:paused}
.sbx2.is-live .sbx3-room::before{animation-play-state:running}
@media (prefers-reduced-motion:reduce){.sbx3-room::before{display:none}}
