/* Interactive method hero. All styles are scoped to hx-* classes. */
.hx-explorer{margin-top:48px;border:1px solid #d5deeb;border-radius:10px;background:radial-gradient(ellipse at 82% 100%,#285ab508,transparent 62%),#ffffff;overflow:hidden}
.hx-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 26px 12px;min-height:55px}.hx-kicker,.hx-overline,.hx-caption,.hx-panel-foot,.hx-motion,.hx-choice,.hx-depth-select select,.hx-unroll-guide,.hx-matrix-demo>div>span{font-family:var(--mono)}
.hx-kicker{font-size:10px;letter-spacing:1.3px;color:#596170}.hx-motion{display:flex;align-items:center;gap:7px;background:none;border:0;color:#596170;padding:3px 0;font-size:10px;white-space:nowrap}.hx-motion:hover{color:var(--accent)}.hx-motion:disabled{cursor:default;color:#596170}
.hx-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:0 26px;gap:20px}.hx-tabs button{display:flex;gap:10px;align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid #d5deeb;color:#596170;font-size:17px;padding:9px 0 12px;transition:color .2s,border-color .2s}.hx-tabs button>span{font:10px var(--mono);color:#70777f}.hx-tabs button i{margin-left:auto;font-style:normal;font-size:19px;opacity:0;transform:translate(-3px,3px);transition:opacity .2s,transform .2s}.hx-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent)}.hx-tabs button[aria-selected=true]>span{color:var(--accent)}.hx-tabs button[aria-selected=true] i{opacity:1;transform:translate(0,0)}.hx-tabs button:hover{color:var(--text)}
.hx-explorer button:focus-visible,.hx-explorer a:focus-visible,.hx-explorer select:focus-visible,.hx-panel:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.hx-panel{padding:0 26px}.hx-panel[hidden]{display:none}.hx-overline{display:block;font-size:9px;letter-spacing:1.1px;color:#596170;line-height:1.5}.hx-caption{display:block;font-size:9px;line-height:1.65;color:#596170;letter-spacing:0}.hx-caption strong{color:var(--accent);font-weight:400}.hx-panel-foot{display:flex;align-items:center;gap:9px;min-height:47px;padding:12px 0;border-top:1px solid #d5deeb;color:#596170;font-size:10px;line-height:1.6}.hx-status-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);flex:none}.hx-panel-foot p{margin:0}.hx-learn-scene{display:grid;grid-template-columns:1fr 58px 1.2fr 1fr;gap:20px;align-items:center;min-height:249px;padding:24px 0}.hx-tokens{font:23px/1.8 var(--mono);letter-spacing:3px;color:#697683;margin:15px 0 10px;white-space:nowrap}.hx-tokens b{font-weight:400;color:var(--accent);animation:hx-token-glow 3.8s ease-in-out infinite}.hx-tokens div:nth-child(2) b{animation-delay:1.2s}.hx-tokens div:nth-child(3) b{animation-delay:2.4s}
.hx-flow{height:36px;display:flex;align-items:center;position:relative;color:#6d8095;overflow:hidden}.hx-flow>span{height:1px;background:#4a6179;flex:1;opacity:.55}.hx-flow>b{font:25px var(--sans);font-weight:300;margin-top:-3px}.hx-flow>i{position:absolute;left:0;top:6px;font:12px var(--mono);font-style:normal;color:var(--accent);background:#ffffff;padding:3px 0;animation:hx-flow-token 3.8s linear infinite;opacity:0}.hx-core>.hx-overline{margin-bottom:11px}.hx-core-block{padding:8px 11px;text-align:center;font:10px/1.6 var(--mono);color:#43536b;border:1px solid #d5deeb;border-radius:3px;background:#f4f7fb}.hx-recurrent{position:relative;margin:6px 0}.hx-middle{background:#eaf1fc;border-color:#568ec9;color:var(--accent);display:flex;align-items:center;justify-content:center;gap:10px;position:relative;z-index:1;animation:hx-middle-pulse 3.8s ease-in-out infinite}.hx-loop{display:inline-block;font:21px/1 var(--sans);animation:hx-loop-turn 3.8s ease-in-out infinite}.hx-loop-path{position:absolute;right:-10px;top:-6px;bottom:-6px;width:20px;border:1px solid #5980aa;border-left:0;border-radius:0 9px 9px 0;opacity:.7}.hx-loop-path:before{content:"";position:absolute;top:-3px;left:0;width:5px;height:5px;border-left:1px solid #5980aa;border-top:1px solid #5980aa;transform:rotate(-45deg)}.hx-core>.hx-caption{margin-top:11px;text-align:center}.hx-learn-copy{padding-left:25px;margin-left:10px;border-left:1px solid #d5deeb}.hx-mini-core{display:none}.hx-learn-copy h3{font-size:23px;font-weight:450;letter-spacing:-.7px;line-height:1.2;margin:0 0 12px}.hx-learn-copy p{font-size:12px;line-height:1.65;color:#596170}.hx-next{display:inline-flex;align-items:center;gap:14px;color:var(--accent);font-size:11px;border:0;background:none;padding:0;margin-top:14px;text-align:left}.hx-next:hover{color:#193e80}.hx-next span{font-size:15px}
.hx-expand-scene{display:grid;grid-template-columns:1fr 1fr;gap:35px;min-height:249px;padding:22px 0 16px}.hx-depth-demo{border-left:1px solid #d5deeb;padding-left:35px}.hx-control-heading{display:flex;justify-content:space-between;gap:14px;align-items:center}.hx-control-heading h3{font-size:19px;font-weight:450;letter-spacing:-.5px;line-height:1.3;margin:4px 0 0}.hx-choice{border:1px solid #d5deeb;border-radius:4px;padding:2px;display:flex;margin:0;flex:none;gap:2px}.hx-choice label{cursor:pointer;position:relative}.hx-choice input{position:absolute;width:1px;height:1px;opacity:0}.hx-choice label>span{display:block;padding:5px 8px;font-size:11px;line-height:1.3;color:#596170;border-radius:2px}.hx-choice input:checked+span{background:var(--accent);color:#ffffff}.hx-choice input:focus-visible+span{outline:2px solid #d7e9ff;outline-offset:4px}.hx-choice label:hover>span{color:var(--text)}.hx-choice label:hover>input:checked+span{color:#ffffff}.hx-depth-select{position:relative;display:flex;align-items:center}.hx-depth-select select{font-size:11px;padding:8px 28px 8px 10px;appearance:none;background:#ffffff;border:1px solid #d5deeb;border-radius:4px;color:var(--accent);cursor:pointer}.hx-depth-select>span:last-child{pointer-events:none;position:absolute;right:10px;font-size:15px;color:var(--accent);top:3px}.hx-matrix-demo{display:flex;align-items:center;justify-content:center;gap:30px;min-height:125px;padding-top:13px}.hx-matrix-source,.hx-matrix-target{display:flex;flex-direction:column;align-items:center;gap:7px}.hx-matrix-demo>div>span{font-size:8px;letter-spacing:.6px;color:#596170}.hx-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;border:1px solid #4d7096;border-radius:3px;width:57px;aspect-ratio:1;background:#edf2fa}.hx-matrix i{display:block;background:#285ab555;border:1px solid #285ab54a;min-width:0;min-height:0}.hx-matrix i:nth-child(3n+1){background:#285ab5a1}.hx-matrix i:nth-child(4),.hx-matrix i:nth-child(8){background:#285ab525}.hx-matrix i:nth-child(5){background:#285ab5ed}.hx-static-arrow{font-size:23px;color:#677788}.hx-tiles{display:grid;grid-template-columns:repeat(var(--hx-multiplier),1fr);width:92px;aspect-ratio:1;gap:3px;align-content:stretch}.hx-tiles .hx-matrix{width:100%;height:100%;padding:2px;gap:1px;border-color:#577faa;animation:hx-tile-appear .35s ease both;animation-delay:calc(var(--hx-tile-index,0)*15ms)}.hx-tiles[style*="4"]{gap:2px}.hx-tiles[style*="4"] .hx-matrix{gap:1px;padding:1px;border-radius:2px}.hx-small-note{font-size:11px;line-height:1.6;color:#596170;margin-top:7px;max-width:390px}.hx-unroll-guide{display:flex;align-items:center;justify-content:center;gap:9px;font-size:8px;letter-spacing:.4px;min-height:46px;color:#596170;white-space:nowrap}.hx-unroll-guide>span{font-size:19px;color:var(--accent)}.hx-unroll-guide>b{font-size:14px;font-weight:400;color:#687e95}.hx-depth-model{display:grid;grid-template-columns:29px 1fr 29px;gap:8px;margin:3px 0 12px;min-height:63px}.hx-depth-bookend{display:flex;flex-direction:column;gap:7px;align-items:center}.hx-depth-bookend>i{display:block;width:100%;height:44px;border:1px solid #62707e;background:#778a9e25;border-radius:3px}.hx-depth-model span{display:block;font:9px var(--mono);color:#596170;text-align:center;white-space:nowrap}.hx-depth-copies{height:44px;display:flex;gap:4px}.hx-depth-copies>i{flex:1;min-width:0;height:100%;border:1px solid #568dc7;background:linear-gradient(180deg,#59a9ff40,#59a9ff15);border-radius:2px;animation:hx-layer-appear .3s ease both;animation-delay:calc(var(--hx-layer-index,0)*12ms)}.hx-depth-middle>span{margin-top:7px;color:var(--accent)}.hx-depth-copies[data-depth="24"]{gap:2px}.hx-expand-foot{justify-content:space-between;flex-wrap:wrap;gap:4px 15px}.hx-expand-foot>p{color:#43536b}.hx-expand-foot>span{color:#596170;font-size:9px}
.hx-train-scene{display:grid;grid-template-columns:1fr 45px 1fr 1.6fr;gap:22px;min-height:249px;align-items:center;padding:24px 0}.hx-real-data,.hx-untied-model{text-align:center}.hx-image-stack{height:106px;position:relative;width:150px;margin:15px auto 10px}.hx-image-stack img{position:absolute;left:27px;top:4px;width:93px;height:93px;object-fit:cover;border:3px solid #b8c3cf;border-radius:5px;box-shadow:0 5px 20px #0005}.hx-image-stack img:first-child{transform:translateX(-25px) rotate(-12deg);opacity:.8}.hx-image-stack img:nth-child(2){transform:translateX(25px) rotate(10deg);opacity:.9}.hx-image-stack img:nth-child(3){transform:rotate(-1deg)}.hx-image-flow>i{width:12px;height:12px;border:1px solid var(--accent);background:#354c64;top:12px;padding:0}.hx-untied-blocks{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;height:91px;margin:22px 0 18px}.hx-untied-blocks>i{border:1px solid #75a0cf;background:linear-gradient(180deg,#97afc935,#285ab510);border-radius:3px;animation:hx-target-learn 4s ease-in-out infinite}.hx-untied-blocks>i:nth-child(2n){background:#285ab542;animation-delay:.45s}.hx-untied-blocks>i:nth-child(3n){background:#285ab565;animation-delay:.9s}.hx-untied-blocks>i:nth-child(5){background:#285ab520;animation-delay:1.35s}.hx-performance{padding-left:26px;border-left:1px solid #d5deeb}.hx-accuracy{display:flex;align-items:center;gap:18px;margin:12px 0 8px}.hx-accuracy>div>span{display:block;font-size:10px;color:#596170;margin-bottom:3px}.hx-accuracy strong{font-size:36px;letter-spacing:-1.5px;font-weight:450;color:#43536b;line-height:1.1;white-space:nowrap}.hx-accuracy small{font-size:16px;letter-spacing:0}.hx-accuracy>div:last-child strong,.hx-accuracy>div:last-child>span{color:var(--accent)}.hx-accuracy>b{font-size:20px;font-weight:400;color:#5f7082}.hx-gain{color:#596170;font-size:10px}.hx-gain strong{color:var(--accent);font-size:13px;font-weight:450;margin-right:5px}.hx-result-context{font:9px/1.5 var(--mono);color:#596170;margin-top:10px}.hx-performance .hx-next{margin-top:9px}.hx-no-script{font-size:12px;color:var(--muted);padding:0 26px 18px}.hx-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hx-explorer [hidden]{display:none!important}.hx-paused *,.hx-paused *:before,.hx-paused *:after{animation-play-state:paused!important}.hx-paused .hx-tiles .hx-matrix,.hx-paused .hx-depth-copies>i{animation:none!important}
@keyframes hx-token-glow{0%,100%{opacity:.5}24%,65%{opacity:1}}@keyframes hx-flow-token{0%{opacity:0;transform:translateX(-22px)}12%,70%{opacity:1}100%{opacity:0;transform:translateX(72px)}}@keyframes hx-loop-turn{0%,20%{transform:rotate(0)}65%,100%{transform:rotate(360deg)}}@keyframes hx-middle-pulse{0%,100%{box-shadow:0 0 0 #285ab500}45%,70%{box-shadow:0 0 20px #285ab518;border-color:#aad1ff}}@keyframes hx-tile-appear{from{opacity:.1;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes hx-layer-appear{from{opacity:.1;transform:translateX(-9px)}to{opacity:1;transform:translateX(0)}}@keyframes hx-target-learn{0%,100%{border-color:#4c6a8b}50%{border-color:#aad1ff;background-color:#285ab530}}
@media(max-width:1000px){.hx-learn-scene{grid-template-columns:1fr 35px 1.2fr .9fr;gap:15px}.hx-tokens{font-size:19px;letter-spacing:1px}.hx-learn-copy{padding-left:18px;margin-left:4px}.hx-learn-copy h3{font-size:21px}.hx-core-block{font-size:9px;padding:8px}.hx-train-scene{grid-template-columns:.9fr 25px 1fr 1.6fr;gap:15px}.hx-performance{padding-left:20px}.hx-accuracy{gap:10px}.hx-accuracy strong{font-size:30px}.hx-image-stack{width:120px}.hx-image-stack img{left:16px;width:86px;height:86px}.hx-expand-scene{gap:22px}.hx-depth-demo{padding-left:22px}.hx-control-heading{gap:9px}.hx-control-heading h3{font-size:17px}.hx-choice label>span{padding:5px 6px}.hx-unroll-guide{font-size:7px;gap:6px}}
@media(max-width:760px){.hx-learn-scene{grid-template-columns:1fr 45px 1.2fr;gap:18px;padding-top:24px}.hx-learn-copy{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.5fr;gap:10px 24px;padding:17px 0 0;margin:2px 0 0;border-left:0;border-top:1px solid #d5deeb;align-items:center}.hx-learn-copy h3{font-size:21px;margin:0}.hx-learn-copy p{font-size:12px}.hx-learn-copy .hx-next{grid-column:2;margin-top:0}.hx-tokens{font-size:23px;letter-spacing:3px}.hx-core-block{font-size:11px}.hx-expand-scene{grid-template-columns:1fr;gap:22px}.hx-depth-demo{border-left:0;border-top:1px solid #d5deeb;padding:20px 0 0}.hx-matrix-demo{min-height:122px}.hx-control-heading h3{font-size:20px}.hx-unroll-guide{font-size:8px;gap:9px}.hx-depth-copies{gap:7px}.hx-train-scene{grid-template-columns:1fr 45px 1.2fr;gap:20px}.hx-performance{grid-column:1/-1;border-left:0;border-top:1px solid #d5deeb;padding:20px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:5px 20px;align-items:center}.hx-performance>.hx-overline,.hx-performance>.hx-accuracy{grid-column:1;grid-row:auto}.hx-performance>.hx-overline{grid-row:1}.hx-performance>.hx-accuracy{grid-row:2/5;margin:0}.hx-performance>.hx-gain{grid-column:2;grid-row:1}.hx-performance>.hx-result-context{grid-column:2;grid-row:2;margin:0}.hx-performance>.hx-next{grid-column:2;grid-row:3/5;margin:0}.hx-accuracy strong{font-size:31px}.hx-image-stack{width:150px}.hx-image-stack img{left:27px;width:93px;height:93px}.hx-expand-foot>span{flex-basis:100%}}
@media(max-width:480px){.hx-explorer{margin-top:32px}.hx-topline{padding:16px 16px 10px;gap:10px}.hx-kicker{font-size:8px;letter-spacing:.8px}.hx-motion{font-size:9px}.hx-tabs{padding:0 16px;gap:15px}.hx-tabs button{font-size:15px;gap:7px;padding-bottom:10px}.hx-tabs button>span{font-size:9px}.hx-tabs button i{font-size:16px}.hx-panel{padding:0 16px}.hx-learn-scene{grid-template-columns:1fr 26px 1.18fr;gap:10px}.hx-overline{font-size:8px;letter-spacing:.7px}.hx-tokens{font-size:16px;letter-spacing:1px;margin-top:19px;margin-bottom:16px;line-height:1.8}.hx-core-block{font-size:8px;padding:7px 4px}.hx-middle{gap:5px}.hx-loop{font-size:15px}.hx-loop-path{right:-6px}.hx-caption{font-size:8px}.hx-core>.hx-caption{margin-top:10px}.hx-learn-copy{grid-template-columns:1fr 1.3fr;gap:10px 18px}.hx-learn-copy h3{font-size:20px}.hx-learn-copy p{font-size:11px}.hx-next{font-size:10px}.hx-panel-foot{font-size:9px;min-height:50px;line-height:1.65}.hx-control-heading h3{font-size:18px}.hx-choice label>span{padding:5px 8px}.hx-depth-select select{font-size:10px}.hx-matrix-demo{gap:35px}.hx-small-note{font-size:10px}.hx-unroll-guide{font-size:7px}.hx-depth-model{grid-template-columns:26px 1fr 26px;gap:6px}.hx-depth-copies{gap:5px}.hx-train-scene{grid-template-columns:1fr 24px 1.05fr;gap:10px}.hx-image-stack{width:110px;height:99px;margin-top:17px}.hx-image-stack img{width:75px;height:75px;left:17px;top:12px}.hx-image-stack img:first-child{transform:translateX(-15px) rotate(-12deg)}.hx-image-stack img:nth-child(2){transform:translateX(17px) rotate(10deg)}.hx-untied-blocks{height:76px;gap:4px;margin-top:26px;margin-bottom:22px}.hx-performance{grid-template-columns:1fr;gap:6px;text-align:left}.hx-performance>.hx-overline,.hx-performance>.hx-accuracy,.hx-performance>.hx-gain,.hx-performance>.hx-result-context,.hx-performance>.hx-next{grid-column:1;grid-row:auto}.hx-performance>.hx-accuracy{gap:22px;margin:7px 0 5px}.hx-accuracy strong{font-size:37px}.hx-performance>.hx-next{margin-top:4px}.hx-no-script{padding-inline:16px}.hx-depth-copies[data-depth="24"]{gap:2px}}
@media(prefers-reduced-motion:reduce){.hx-explorer *,.hx-explorer *:before,.hx-explorer *:after{animation:none!important;transition:none!important}.hx-flow>i{display:none}.hx-tokens b{opacity:1}}
/* Keep tile sizes comparable so the width control visibly grows the matrix. */
.hx-matrix-source>.hx-matrix{width:45px}
.hx-tiles{width:calc(45px * var(--hx-multiplier));transition:width .25s ease}
.hx-matrix-demo{min-height:218px;gap:26px}
@media(max-width:480px){.hx-matrix-source>.hx-matrix{width:34px}.hx-tiles{width:calc(34px * var(--hx-multiplier))}.hx-matrix-demo{min-height:174px;gap:19px}}

/* Two-stage illustration: more inputs and a continuous shared-block loop. */
.hx-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.hx-learn-scene{grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr);max-width:700px;margin:auto;gap:32px;min-height:280px}
.hx-flow{height:46px;overflow:hidden}
.hx-flow>i{top:11px;animation:hx-input-stream 2.2s linear infinite;background:#fff;padding:2px;font-size:13px;white-space:nowrap}
.hx-flow>i:nth-of-type(2){animation-delay:-.55s}.hx-flow>i:nth-of-type(3){animation-delay:-1.1s}.hx-flow>i:nth-of-type(4){animation-delay:-1.65s}
.hx-tokens b{animation-duration:2.2s}
.hx-loop{animation:hx-loop-continuous 1.25s linear infinite}
.hx-middle{animation:hx-middle-pulse 1.25s ease-in-out infinite}
.hx-loop-path{right:-17px;width:28px;opacity:1;border-color:#2563eb}
.hx-loop-path:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 3px #2563eb18;transform:translate(-50%,-50%);animation:hx-recurrent-route 1.25s linear infinite}
@keyframes hx-input-stream{0%{left:-25%;opacity:0}12%,85%{opacity:1}100%{left:100%;opacity:0}}
@keyframes hx-loop-continuous{to{transform:rotate(360deg)}}
@keyframes hx-recurrent-route{0%{left:0;top:100%}25%{left:100%;top:100%}75%{left:100%;top:0}100%{left:0;top:0}}
@media(max-width:760px){.hx-learn-scene{gap:20px;grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr)}.hx-tokens{font-size:20px;letter-spacing:1px}}
@media(max-width:480px){.hx-learn-scene{gap:9px;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);padding:24px 6px 24px 0;min-height:250px}.hx-tokens{font-size:12px;letter-spacing:0;line-height:2}.hx-flow>i{font-size:8px;padding:2px 0;animation-duration:1.8s}.hx-flow>i:nth-of-type(4){display:none}.hx-loop-path{right:-10px;width:19px}.hx-core-block{font-size:8px;padding:7px 3px}.hx-middle{gap:3px}}
@media(prefers-reduced-motion:reduce){.hx-flow>i,.hx-loop-path:after{display:none}.hx-loop,.hx-middle,.hx-tokens b{animation:none!important}.hx-tokens b{opacity:1}}

/* Keep the descriptive data label and bracket rows within narrow phones. */
@media(max-width:480px){.hx-source>.hx-overline{font-size:9px;letter-spacing:0;line-height:1.7}}
@media(max-width:360px){.hx-source .hx-tokens{font-size:10px}}
