/* "At our booth": an open editorial story, no cards. Two chapters on the page itself:
   product on a soft stage, copy beside it, sides alternate. Animates with transform / opacity (plus one stroke draw)
   and only starts when a chapter scrolls into view. */
.booth { position: relative; overflow: hidden; isolation: isolate; background: #fff; padding: 96px 0 104px; }
.booth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.booth-bg::before { content: ""; position: absolute; left: -12%; top: -10%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(247,134,30,.10), transparent 65%); }
.booth-bg svg { position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; overflow: visible; }
.booth-bg path { fill: none; stroke: #f7861e; stroke-width: 2; opacity: .16; }
.booth-bg g { transform-origin: 310px 310px; animation: arcspin 40s linear infinite; }
@keyframes arcspin { to { transform: rotate(360deg); } }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translate(var(--rx, 0), 34px); transition: opacity .9s cubic-bezier(.16,1,.3,1) var(--rd, 0s), transform .9s cubic-bezier(.16,1,.3,1) var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.words .w { display: inline-block; }
.js .words:not(.in) .w { opacity: 0; transform: translateY(70%) rotate(3deg); }
.js .words.in .w { animation: wordin .8s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .07s); }
@keyframes wordin { from { opacity: 0; transform: translateY(70%) rotate(3deg); } to { opacity: 1; transform: none; } }

/* header: heading left, story steps right */
.booth-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.booth-head h2 { font-size: clamp(28px, 3.2vw, 42px); max-width: 560px; }
.booth-sub { margin: 16px 0 0; max-width: 480px; color: var(--mute); font-size: 15.5px; line-height: 1.6; }

.bflow { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 520px); }
.bflow::before, .bflow::after { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 21px; height: 2px; border-radius: 2px; }
.bflow::before { background: var(--line); }
.bflow::after { background: linear-gradient(90deg, #f7861e, #ffb45c); transform: scaleX(0); transform-origin: left; }
.bflow.in::after { animation: flowline 1.6s cubic-bezier(.65,0,.35,1) .5s forwards; }
@keyframes flowline { to { transform: scaleX(1); } }
.bflow li { position: relative; z-index: 1; text-align: center; }
.bflow b { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 800; color: var(--mute); }
.bflow.in li b { animation: nodein .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.4s + var(--n) * .55s); border-color: var(--orange); color: #c25e00; background: #fff8f0; }
@keyframes nodein { from { transform: scale(.5); } to { transform: scale(1); } }
.bflow strong { display: block; font-size: 14px; line-height: 1.3; color: var(--ink); }
.bflow small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--mute); }

/* chapters */
.bchaps { display: flex; flex-direction: column; }
.bchap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.bchap.rev { grid-template-columns: .92fr 1.08fr; }
.bchap.rev .bchap-visual { order: 2; }

/* product stage: soft blob + ghost numeral, no box */
.bchap-visual { margin: 0; }
.bstage { position: relative; aspect-ratio: 1 / .9; display: grid; place-items: center; }
.bblob { position: absolute; inset: 2% 3%; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
.tone-warm .bblob { background: radial-gradient(circle at 40% 35%, #fff4e6 0%, #ffe3c4 55%, #ffd5a6 100%); }
.tone-cool .bblob { background: radial-gradient(circle at 60% 35%, #f6f9fc 0%, #e4ecf5 55%, #d3dfec 100%); }
.bchap.in .bblob, .anim.in .bblob { animation: blobmove 16s ease-in-out infinite alternate; }
@keyframes blobmove { from { transform: rotate(0) scale(1); } to { transform: rotate(7deg) scale(1.04); } }
.bnum { position: absolute; top: -4%; left: -2%; z-index: 0; font-size: clamp(120px, 15vw, 210px); line-height: 1; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(16,33,47,.12); user-select: none; }
.rev .bnum { left: auto; right: -2%; }
.bshot { position: relative; z-index: 1; width: 86%; }
.bshot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 30px rgba(16,33,47,.28)); }
.bchap.in .bshot, .anim.in .bshot { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bscan { position: absolute; inset: 6% 4%; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent 0 88%, rgba(247,134,30,.28) 98%, transparent 100%); transform: translateX(-100%); opacity: 0; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%); }
.bchap.in .bscan, .anim.in .bscan { animation: scan 6.5s ease-in-out 1.4s infinite; }
@keyframes scan { 0% { transform: translateX(-100%); opacity: 0; } 8% { opacity: 1; } 60% { transform: translateX(100%); opacity: 1; } 68%,100% { transform: translateX(100%); opacity: 0; } }
.bchap-visual figcaption { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #3a4a5a; }
.bchap-visual figcaption a { color: #c25e00; }
.bchap-visual figcaption a:hover { text-decoration: underline; }

/* hotspots (positioned on the product image itself) */
.hot { position: absolute; left: var(--x); top: var(--y); z-index: 3; }
.hot i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(16,33,47,.3); }
.hot i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--orange); opacity: 0; }
.hot em { position: absolute; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink); padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.96); border: 1px solid rgba(16,33,47,.1); box-shadow: 0 10px 22px -10px rgba(16,33,47,.4); }
.hot.r em { left: 16px; top: -14px; } .hot.l em { right: 16px; top: -14px; }
.hot.t em { left: 50%; bottom: 18px; transform: translateX(-50%); } .hot.b em { left: 50%; top: 18px; transform: translateX(-50%); }
.bchap.in .hot i, .anim.in .hot i { animation: hotpop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.9s + var(--n) * .45s); }
.bchap.in .hot i::after, .anim.in .hot i::after { animation: hotping 2.4s ease-out infinite; animation-delay: calc(1.5s + var(--n) * .45s); }
.bchap.in .hot em, .anim.in .hot em { animation: hotlabel .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(1.1s + var(--n) * .45s); }
.js .bchap:not(.in) .hot { opacity: 0; }
@keyframes hotpop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hotping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes hotlabel { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

/* copy side */
.bchap-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.bstep { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a65700; }
.bstep b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11.5px; letter-spacing: 0; }
.bstep::after { content: ""; width: 56px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), transparent); }
.blogo { display: flex; align-items: center; gap: 16px; }
.blogo-ic { width: 52px; height: 52px; flex: none; }
.blogo span { font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.035em; color: #0b2036; }
.blogo em { font-style: normal; color: var(--orange); }
.bchap-copy > p { margin: 0; max-width: 500px; color: var(--mute); font-size: 17px; line-height: 1.65; }
.blink { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #c25e00; }
.blink span { transition: transform .25s; }
.blink:hover span { transform: translateX(4px); }

/* viz strip */
.bviz { width: 100%; max-width: 520px; margin-top: 10px; height: 172px; padding: 14px 18px; border-radius: 18px; background: #0b2036; color: #fff; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(11,32,54,.7); }
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fa3b8; }
.viz-head span { display: inline-flex; align-items: center; gap: 8px; }
.viz-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.bchap.in .viz-head span::before, .anim.in .viz-head span::before { animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70%,100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
.viz-head small { font-size: 10px; letter-spacing: .1em; color: #5f7790; }

.arms { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.arms li { display: grid; grid-template-columns: 44px 1fr 74px; align-items: center; gap: 12px; font-size: 12px; }
.arms span { font-weight: 700; color: #cfd9e3; }
.arms em { font-style: normal; font-weight: 600; color: #8fa3b8; text-align: right; }
.trk { height: 7px; border-radius: 7px; background: rgba(255,255,255,.1); overflow: hidden; }
.trk i { display: block; height: 100%; border-radius: inherit; transform: scaleX(.08); transform-origin: left; background: linear-gradient(90deg, #f7861e, #ffb45c); }
.arms .cool .trk i { background: linear-gradient(90deg, #4aa3ff, #8fd0ff); }
.arms .out .trk i { background: linear-gradient(90deg, #4ade80, #86efac); }
.arms .load .trk i { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
.bchap.in .arms .trk i, .anim.in .arms .trk i { animation: armfill var(--t) cubic-bezier(.45,0,.3,1) infinite; animation-delay: var(--dl); }
@keyframes armfill { 0% { transform: scaleX(.05); } 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .4; } }

/* PiatIQ curve */
.curve-viz { display: block; width: 100%; height: calc(100% - 14px); margin-top: 6px; overflow: visible; }
.curve-viz text { font-family: Inter, sans-serif; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; }
.cv-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.cv-line { fill: none; stroke: #f7861e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cv-fill { fill: url(#cvfill); }
.cv-stop { stroke: #4ade80; stroke-width: 1.4; stroke-dasharray: 3 3; }
.cv-saved { fill: rgba(74,222,128,.14); }
.cv-peak circle:first-child { fill: #fff; } .cv-peak circle:last-child { fill: none; stroke: #f7861e; stroke-width: 1.6; }
.cv-t-peak { fill: #ffd2a1; } .cv-t-stop { fill: #86efac; } .cv-t-axis { fill: #5f7790; font-weight: 600; }
.bchap.in .cv-line, .anim.in .cv-line { stroke-dasharray: 1; animation: cvline 9s ease-in-out infinite; }
.bchap.in .cv-fill, .anim.in .cv-fill { animation: cvfill 9s ease-in-out infinite; }
.bchap.in .cv-peak, .anim.in .cv-peak { animation: cvpeak 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bchap.in .cv-stop, .anim.in .cv-stop { animation: cvstop 9s ease-in-out infinite; }
.bchap.in .cv-saved, .anim.in .cv-saved { animation: cvsaved 9s ease-in-out infinite; transform-box: fill-box; transform-origin: left; }
.bchap.in .cv-t-peak, .anim.in .cv-t-peak { animation: cvlab1 9s ease-in-out infinite; }
.bchap.in .cv-t-stop, .anim.in .cv-t-stop { animation: cvlab2 9s ease-in-out infinite; }
@keyframes cvline { 0% { stroke-dashoffset: 1; opacity: 1; } 38% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cvfill { 0%,20% { opacity: 0; } 40%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cvpeak { 0%,36% { opacity: 0; transform: scale(.3); } 44% { opacity: 1; transform: scale(1.25); } 50%,92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes cvstop { 0%,48% { opacity: 0; } 56%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cvsaved { 0%,56% { opacity: 0; transform: scaleX(0); } 72%,92% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes cvlab1 { 0%,40% { opacity: 0; } 48%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cvlab2 { 0%,60% { opacity: 0; } 70%,92% { opacity: 1; } 100% { opacity: 0; } }

/* the join between the two chapters */
.bjoin { display: flex; flex-direction: column; align-items: center; margin: 28px 0 24px; }
.bj-line { width: 2px; height: 56px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--orange)); transform: scaleY(0); transform-origin: top; }
.bj-line + b + .bj-line { background: linear-gradient(180deg, var(--orange), transparent); transform-origin: top; }
.bjoin b { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); color: var(--orange); font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 14px 30px -10px rgba(247,134,30,.55); }
.bjoin b::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(247,134,30,.55); }
.bjoin small { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a65700; }
.js .bjoin:not(.in) b, .js .bjoin:not(.in) small { opacity: 0; transform: scale(.5); }
.bjoin b, .bjoin small { transition: opacity .6s .5s, transform .8s cubic-bezier(.34,1.56,.64,1) .5s; }
.bjoin.in .bj-line { animation: linegrow .7s cubic-bezier(.65,0,.35,1) forwards; }
.bjoin.in .bj-line + b + .bj-line { animation-delay: .9s; }
@keyframes linegrow { to { transform: scaleY(1); } }
.bjoin.in b::before { animation: arcspin 14s linear infinite; }
.bjoin.in b { animation: joinbeat 3s ease-in-out 2s infinite; }
@keyframes joinbeat { 0%,100% { box-shadow: 0 14px 30px -10px rgba(247,134,30,.55), 0 0 0 0 rgba(247,134,30,.35); } 50% { box-shadow: 0 14px 30px -10px rgba(247,134,30,.55), 0 0 0 14px rgba(247,134,30,0); } }

/* closing line + chips */
.bclose { margin: 56px auto 0; max-width: 640px; text-align: center; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bclose em { font-style: normal; color: var(--orange); }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: #3a4a5a; transition: border-color .2s, color .2s, background-color .2s; }
.chips li:hover { border-color: rgba(247,134,30,.5); color: #c25e00; background: #fff8f0; }

@media (max-width: 1000px) {
  .booth-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .bchap, .bchap.rev { gap: 48px; }
}
@media (max-width: 860px) {
  .booth { padding: 64px 0; }
  .bchap, .bchap.rev { grid-template-columns: 1fr; gap: 28px; }
  .bchap.rev .bchap-visual { order: 0; }
  .bchap-visual { --rx: 0px !important; }
  .bchap-copy { --rx: 0px !important; }
  .bstage { max-width: 560px; margin-inline: auto; }
  .rev .bnum { left: -2%; right: auto; }
  .bviz { max-width: none; }
  .booth-bg svg { width: 420px; height: 420px; right: -160px; top: -100px; }
}
@media (max-width: 560px) {
  .blogo-ic { width: 44px; height: 44px; }
  .bchap-copy > p { font-size: 15.5px; }
  .bviz { padding: 12px 14px; height: 176px; }
  .arms li { grid-template-columns: 38px 1fr 64px; gap: 8px; }
  .hot em { font-size: 11px; padding: 5px 9px; }
  .bflow strong { font-size: 13px; } .bflow small { font-size: 11.5px; }
  .curve-viz text { font-size: 15px; }
  .curve-viz .cv-t-axis, .curve-viz .s2 { display: none; }
  .curve-viz .s1 { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .booth *, .booth *::before, .booth *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .words:not(.in) .w, .js .bjoin:not(.in) b, .js .bjoin:not(.in) small, .js .bchap:not(.in) .hot { opacity: 1 !important; transform: none !important; }
  .trk i { transform: scaleX(.7); } .bflow::after { transform: scaleX(1); } .bj-line { transform: scaleY(1); }
}

.anim .hot { }
.js .anim:not(.in) .hot { opacity: 0; }
