/* The seventeen stages of the bench (templates/_partials/stage-reel.html, js/reel.js) on partpier.com and the bench
   tour, and the small animations both pages share. A dark panel of its own: one tint per stage group, the brand
   orange for measurements. Without script every stage is a card showing its scene's last frame; with script one
   stage plays at a time. Every animated element is written where it ends, so a still page shows the result. */
.rl,.in{--rl-bg:#0b171e;--rl-bg2:#12232c;--rl-card:#172c37;--rl-line:#2c4350;--rl-tx:#eef3f5;--rl-mu:#93a6b1;--rl-or:#ff8a3d;
  --g:#7cc0ff;--g2:rgba(124,192,255,.16)}
[data-g=define]{--g:#7cc0ff;--g2:rgba(124,192,255,.16)}
[data-g=engineer]{--g:#b79cff;--g2:rgba(183,156,255,.16)}
[data-g=make]{--g:#ff9b55;--g2:rgba(255,155,85,.16)}
[data-g=ship]{--g:#3fd9c3;--g2:rgba(63,217,195,.15)}
[data-g=money]{--g:#ffd166;--g2:rgba(255,209,102,.16)}
[data-g=finish]{--g:#6ee7a0;--g2:rgba(110,231,160,.15)}

.rl{color:var(--rl-tx);font:400 16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.rl .ic{width:24px;height:24px;flex:none;display:block}
.rl-vh{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.rl-legend{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--rl-mu)}
.rl-legend li{display:flex;align-items:center;gap:8px}
.rl-sw{width:12px;height:12px;border-radius:4px;background:var(--g)}

/* without script: every stage a card */
.rl-ctl,.rl-rail{display:none}
.rl-stages{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:18px}
.rl-s{display:grid;gap:0;background:var(--rl-bg2);border:1px solid var(--rl-line);border-top:3px solid var(--g);border-radius:14px;overflow:hidden}
.rl-s.is-off{border-top-style:dashed}
.rl-scene{background:radial-gradient(120% 90% at 30% 20%,var(--g2),transparent 60%),var(--rl-bg);border-bottom:1px solid var(--rl-line)}
.rl-scene svg{display:block;width:100%;height:auto;aspect-ratio:480/300}
.rl-txt{padding:16px 18px 18px}
.rl-k{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:600 13px/1.2 system-ui;color:var(--g);letter-spacing:.01em}
.rl-txt h3{font:800 clamp(1.3rem,2vw,1.75rem)/1.08 "Archivo X","Archivo fb",system-ui,sans-serif;letter-spacing:-.045em;margin:0 0 .35em;color:var(--rl-tx)}
.rl-q{margin:0 0 .9em;color:var(--rl-mu)}
.rl-r{margin:0 0 .7em;padding:10px 12px;border-radius:10px;background:var(--g2);border-left:3px solid var(--g)}
.rl-r span{display:block;font-size:13px;color:var(--rl-mu)}
.rl-r strong{font-weight:650;font-size:1.12rem;font-variant-numeric:tabular-nums}
.rl-st{margin:0;font-size:13.5px;color:var(--rl-mu)}
.rl-st span{display:block}

/* with script: a player */
.rl.is-js .rl-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px}
.rl.is-js .rl-rail{display:grid;grid-template-columns:repeat(17,minmax(44px,1fr));gap:4px;list-style:none;margin:0 0 16px;padding:0 0 4px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity}
.rl.is-js .rl-stages{display:block}
.rl.is-js .rl-s{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:stretch;min-height:min(60vh,520px)}
.rl.is-js .rl-s:not(.is-on){display:none}
.rl.is-js .rl-scene{border-bottom:0;border-right:1px solid var(--rl-line);display:flex;align-items:center}
.rl.is-js .rl-txt{padding:clamp(18px,2.6vw,36px);display:flex;flex-direction:column;justify-content:center}
.rl.is-js .rl-s.is-on .rl-txt>*{animation:rl-in .5s cubic-bezier(.2,.7,.2,1) both}
.rl.is-js .rl-s.is-on .rl-txt>:nth-child(2){animation-delay:.06s}.rl.is-js .rl-s.is-on .rl-txt>:nth-child(3){animation-delay:.12s}
.rl.is-js .rl-s.is-on .rl-txt>:nth-child(4){animation-delay:.3s}.rl.is-js .rl-s.is-on .rl-txt>:nth-child(5){animation-delay:.4s}
.rl-b{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--rl-line);background:var(--rl-card);color:var(--rl-tx);font:600 15px/1 system-ui;cursor:pointer}
.rl-b:hover{border-color:var(--rl-mu)}
.rl-pp{min-width:104px;background:var(--rl-tx);color:var(--rl-bg);border-color:var(--rl-tx)}
.rl-pp .ic{width:18px;height:18px}
.rl .rl-i-pause,.rl .rl-pp[aria-pressed=true] .rl-i-play{display:none}
.rl .rl-pp[aria-pressed=true] .rl-i-pause{display:block}
.rl-count{margin:0 6px;font:600 15px/1 system-ui;color:var(--rl-mu);font-variant-numeric:tabular-nums}
.rl-count b{color:var(--rl-tx)}
.rl-bar{flex:1 1 200px;height:6px;border-radius:3px;background:var(--rl-line);overflow:hidden;min-width:120px}
.rl-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#7cc0ff,#b79cff 35%,#ff9b55 60%,#3fd9c3 80%,#ffd166 92%,#6ee7a0);background-size:var(--rl-span,100%) 100%}
.rl-tick{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:58px;padding:8px 2px 6px;border:0;border-radius:10px;background:transparent;color:var(--rl-mu);cursor:pointer;scroll-snap-align:start;font:600 11px/1.1 system-ui}
.rl-tick span{display:none}
.rl-tick::after{content:"";position:absolute;left:6px;right:6px;bottom:0;height:3px;border-radius:2px;background:var(--g);opacity:.35}
.rl-tick:hover{color:var(--rl-tx);background:var(--rl-bg2)}
.rl-tick.is-done{color:var(--g)}
.rl-tick.is-done::after{opacity:.8}
.rl-tick[aria-current=step]{color:var(--rl-bg);background:var(--g)}
.rl-tick[aria-current=step]::after{opacity:0}
.rl-tick .ic{width:24px;height:24px}

/* ── the scene's marks ── */
.rl text{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.rl-tx{fill:var(--rl-tx);font-size:15px}
.rl-mu{fill:var(--rl-mu);font-size:15px}
.rl-big{font-size:20px;font-weight:650}
.rl-sm{font-size:14px}
.rl-xs{font-size:11.5px}
text.rl-bd{font-weight:700;fill:var(--rl-tx)}
.rl-in{fill:var(--rl-bg);font-weight:700;font-variant-numeric:tabular-nums}
.rl-dt{fill:var(--rl-or);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.rl-ln{fill:none;stroke:var(--rl-tx);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.rl-ghost{fill:none;stroke:var(--rl-line);stroke-width:2;stroke-dasharray:6 6}
.rl-dim{fill:none;stroke:var(--rl-or);stroke-width:1.5}
.rl-card{fill:var(--rl-card);stroke:var(--g);stroke-width:1.5}
.rl-chip{fill:var(--g2);stroke:var(--g);stroke-width:1.25}
.rl-ok{fill:var(--g2);stroke:var(--g);stroke-width:1.5}
.rl-who{fill:rgba(255,138,61,.14);stroke:var(--rl-or);stroke-width:1.5}
.rl-chk{fill:none;stroke:var(--rl-tx);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rl-ok-s{stroke:var(--g);stroke-width:2.5}
.rl-zone{fill:var(--g2);stroke:var(--g);stroke-width:1.5;stroke-dasharray:7 5}
.rl-solid{fill:var(--rl-tx)}
.rl-row{fill:var(--rl-card);stroke:var(--rl-line)}
.rl-beam{fill:none;stroke:var(--g);stroke-width:7;stroke-linecap:round}
.rl-arrow{fill:none;stroke:var(--rl-or);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.rl-track{fill:var(--rl-card)}
.rl-gauge{fill:var(--g)}
.rl-bx{fill:var(--g2);stroke:var(--g);stroke-width:1}
.rl-limit{stroke:var(--rl-or);stroke-width:2;stroke-dasharray:4 3}
.rl-lo{stroke:var(--rl-bg);stroke-width:2}
.rl-wood{fill:#a8683a}
.rl-coat{fill:var(--g)}
.rl-rain{stroke:#7cc0ff;stroke-width:2;stroke-linecap:round;opacity:.7}
.rl-route{fill:none;stroke:var(--g);stroke-width:3;stroke-dasharray:1;stroke-dashoffset:0}
.rl-node{fill:var(--rl-bg);stroke:var(--g);stroke-width:3}
.rl-dot{fill:var(--rl-or);offset-rotate:0deg;opacity:0}
.go-a{offset-path:path("M60 80C170 80 200 150 300 150H430")}
.go-b{offset-path:path("M60 220C170 220 200 150 300 150H430")}
.rl-booth{fill:var(--g2);stroke:var(--g);stroke-width:1.5}
.rl-spray{stroke:var(--g);stroke-width:2.5;stroke-linecap:round;opacity:.0}
.rl-cast{fill:var(--g);stroke:var(--rl-tx);stroke-width:1.5;stroke-linejoin:round}
.rl-carry{transform:translateX(300px)}
.rl-sq{fill:var(--rl-card);stroke:var(--rl-line)}
.rl-sq1{fill:var(--rl-or)}
.rl-sqs{fill:var(--g)}
.rl-crate{fill:none;stroke:#c08a52;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.rl-kit{fill:var(--g2);stroke:var(--g);stroke-width:1.25}
.rl-box{fill:#8a6440;stroke:#c08a52;stroke-width:1.5}
.rl-truck{offset-path:path("M206 205H460");offset-distance:100%;offset-rotate:0deg}
.rl-stamp{fill:var(--g2);stroke:var(--g);stroke-width:1.5}
.rl-off{opacity:.38}
.rl-sagw{transform-box:fill-box}
/* the bars of the scene ("a-x", "a-y") grow from their own start */
.a-x{transform-box:fill-box;transform-origin:left center}
.a-y{transform-box:fill-box;transform-origin:center bottom}
.a-p{transform-box:fill-box;transform-origin:center}
.a-sag{transform-box:fill-box;transform-origin:center top}

/* ── the animations: only on the stage (or input panel) that plays ── */
.is-on .a-d{stroke-dasharray:1;animation:a-d .9s cubic-bezier(.45,0,.2,1) both}
.is-on .a-f{animation:a-f .55s cubic-bezier(.2,.7,.2,1) both}
.is-on .a-p{animation:a-p .5s cubic-bezier(.3,1.4,.5,1) both}
.is-on .a-x{animation:a-x .8s cubic-bezier(.3,0,.2,1) both}
.is-on .a-y{animation:a-y .7s cubic-bezier(.3,0,.2,1) both}
.is-on .a-v{animation:a-v .6s cubic-bezier(.5,0,.6,1.3) both}
.is-on .a-type{animation:a-type .5s steps(8,end) both}
.is-on .a-out{animation:a-out .7s cubic-bezier(.2,.7,.2,1) both}
.is-on .a-sag{animation:a-sag 1.4s cubic-bezier(.3,0,.2,1) both}
.is-on .rl-rain{animation:a-rain 1.1s linear infinite}
.is-on .rain1{animation-delay:.27s}.is-on .rain2{animation-delay:.55s}.is-on .rain3{animation-delay:.82s}
.is-on .rl-dot{animation:a-go 2.6s cubic-bezier(.5,0,.4,1) .9s infinite}
.is-on .go-b{animation-delay:1.3s}
.is-on .rl-carry{animation:a-carry 3.4s cubic-bezier(.5,0,.4,1) both}
.is-on .rl-cast{animation:a-coat 3.4s linear both}
.is-on .rl-spray{animation:a-spray .6s linear .9s 4 both}
.is-on .s1{animation-delay:1.1s}.is-on .s2{animation-delay:1.3s}
.is-on .rl-truck{animation:a-truck 3.2s cubic-bezier(.5,0,.4,1) 1.6s both}
.is-on .rl-route{animation:a-d 1.1s cubic-bezier(.45,0,.2,1) both}
.is-on .t1{animation-delay:.18s}.is-on .t2{animation-delay:.36s}.is-on .t3{animation-delay:.54s}.is-on .t4{animation-delay:.72s}
.is-on .t5{animation-delay:.9s}.is-on .t6{animation-delay:1.08s}.is-on .t7{animation-delay:1.26s}.is-on .t8{animation-delay:1.44s}
.is-on .t9{animation-delay:1.62s}.is-on .t10{animation-delay:1.8s}.is-on .t11{animation-delay:1.98s}.is-on .t12{animation-delay:2.16s}
.is-on .t13{animation-delay:2.34s}.is-on .t14{animation-delay:2.52s}.is-on .t15{animation-delay:2.7s}.is-on .t16{animation-delay:2.88s}
.is-on .t17{animation-delay:3.06s}.is-on .t18{animation-delay:3.24s}.is-on .t19{animation-delay:3.42s}.is-on .t20{animation-delay:3.6s}
.is-on .t21{animation-delay:3.78s}.is-on .t22{animation-delay:3.96s}.is-on .t23{animation-delay:4.14s}.is-on .t24{animation-delay:4.32s}
.is-paused .is-on,.is-paused .is-on *{animation-play-state:paused!important}
@keyframes a-d{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes a-f{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes a-p{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes a-x{from{transform:scaleX(0)}to{transform:none}}
@keyframes a-y{from{transform:scaleY(0)}to{transform:none}}
@keyframes a-v{from{opacity:0;transform:translateY(-70px)}to{opacity:1;transform:none}}
@keyframes a-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes a-out{from{opacity:0;transform:translateX(-150px) scale(.7)}to{opacity:1;transform:none}}
@keyframes a-sag{from{transform:scaleY(0)}to{transform:none}}
@keyframes a-rain{from{transform:translateY(-30px);opacity:0}30%{opacity:.8}to{transform:translateY(80px);opacity:0}}
@keyframes a-go{0%{offset-distance:0%;opacity:0}10%{opacity:1}90%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes a-carry{from{transform:none}to{transform:translateX(300px)}}
@keyframes a-coat{0%,38%{fill:#6b7a83}62%,100%{fill:var(--g)}}
@keyframes a-spray{0%{opacity:0;transform:none}50%{opacity:.9}100%{opacity:0;transform:translateX(40px)}}
@keyframes a-truck{from{offset-distance:0%}to{offset-distance:100%}}
@keyframes rl-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@media (max-width:860px){
  .rl.is-js .rl-s{grid-template-columns:1fr;min-height:0}
  .rl.is-js .rl-scene{border-right:0;border-bottom:1px solid var(--rl-line)}
  .rl.is-js .rl-rail{grid-template-columns:repeat(17,48px)}
  .rl-bar{order:5;flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){
  .rl *,.in *{animation:none!important}
}

/* the section that holds the reel on a page of its own (the bench tour) */
.rl-sec{background:#0b171e;color:#eef3f5;padding:clamp(40px,6vw,96px) 0}
.rl-wrap{width:min(1360px,100% - clamp(32px,6vw,120px));margin:auto}
.rl-eye{margin:0 0 .5em;color:#ff8a3d;font-weight:700}
.rl-sec h2{font:800 clamp(1.9rem,3.6vw,3.4rem)/1.02 "Archivo X","Archivo fb",Archivo,system-ui,sans-serif;letter-spacing:-.05em;margin:0 0 .4em;max-width:22ch;text-wrap:balance;color:#eef3f5}
.rl-lead{max-width:62ch;color:#93a6b1;margin:0 0 clamp(22px,3vw,40px)}
