/* /book-spine-labels: How it works scene (a title rotated 90 degrees onto the spine of one standing book). */
.hub-anim.ha-book-spine-labels .ha-stage { min-height: 0; border: 1px solid #e7cfb4; background: radial-gradient(circle at 20% 20%, rgba(194, 65, 12, .08) 0 2px, transparent 2.5px) 0 0 / 22px 22px, linear-gradient(180deg, #fdf6ec 0%, #f6e7d4 100%); }
.hub-anim.ha-book-spine-labels .sc { display: flex; align-items: center; justify-content: center; gap: 1.6rem; min-height: 280px; }
.hub-anim.ha-book-spine-labels .sc-arrow { color: #7c2d12; flex: 0 0 auto; } .hub-anim.ha-book-spine-labels .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-book-spine-labels .bs-ed { position: relative; width: 220px; height: 230px; flex: 0 0 auto; padding: 12px; background: #fff; border: 2px solid #431407; border-radius: 14px; box-sizing: border-box; box-shadow: 6px 6px 0 #c2410c; }
.hub-anim.ha-book-spine-labels .bs-ed small { font: 800 .64rem/1 Manrope, Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9a3412; }
.hub-anim.ha-book-spine-labels .bs-deg { position: absolute; right: 12px; top: 8px; margin: 0; width: 46px; height: 22px; background: #fff7ed; border: 1.5px solid #c2410c; border-radius: 6px; font: 800 .74rem/22px Manrope, Inter, sans-serif; color: #7c2d12; text-align: center; }
.hub-anim.ha-book-spine-labels .bs-deg span { position: absolute; inset: 0; } .hub-anim.ha-book-spine-labels .bs-d0 { opacity: 0; }
.hub-anim.ha-book-spine-labels .bs-strip { position: absolute; left: 50%; top: 50%; width: 170px; height: 40px; margin: -12px 0 0 -85px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; background: #fff7ed; border: 1.5px dashed #c2410c; border-radius: 4px; box-sizing: border-box; transform: rotate(90deg); }
.hub-anim.ha-book-spine-labels .bs-strip b, .hub-anim.ha-book-spine-labels .bs-lab b { font: 800 .88rem/1.1 Georgia, "Times New Roman", serif; color: #431407; white-space: nowrap; }
.hub-anim.ha-book-spine-labels .bs-strip span, .hub-anim.ha-book-spine-labels .bs-lab span { font: 700 .58rem/1.2 Inter, system-ui, sans-serif; letter-spacing: .14em; color: #9a3412; }
.hub-anim.ha-book-spine-labels .bs-book { position: relative; width: 150px; height: 240px; flex: 0 0 auto; }
.hub-anim.ha-book-spine-labels .bs-cover { position: absolute; left: 52px; top: 8px; width: 90px; height: 228px; background: linear-gradient(90deg, #9a3412, #c2410c); border: 2px solid #431407; border-left: 0; border-radius: 0 6px 6px 0; transform: skewY(-6deg); transform-origin: left; }
.hub-anim.ha-book-spine-labels .bs-spine { position: absolute; left: 0; top: 0; width: 54px; height: 236px; background: linear-gradient(90deg, #7c2d12, #9a3412 45%, #7c2d12); border: 2px solid #431407; border-radius: 6px 0 0 6px; box-sizing: border-box; }
.hub-anim.ha-book-spine-labels .bs-lab { position: absolute; left: 50%; top: 50%; width: 170px; height: 40px; margin: -20px 0 0 -85px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; background: #fff; border: 1.5px solid #431407; border-radius: 3px; box-sizing: border-box; transform: rotate(90deg); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
@media (max-width: 640px) { .hub-anim.ha-book-spine-labels .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-book-spine-labels .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-book-spine-labels .ha-stage { padding-bottom: 3.4rem; } .hub-anim.ha-book-spine-labels .bs-ed { width: 200px; height: 210px; } }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-book-spine-labels .bs-strip { animation: bs-turn 10s ease infinite both; } .hub-anim.ha-book-spine-labels .bs-d0 { animation: bs-d0 10s ease infinite both; } .hub-anim.ha-book-spine-labels .bs-d90 { animation: bs-d90 10s ease infinite both; } .hub-anim.ha-book-spine-labels .bs-lab { animation: bs-lab 10s ease infinite both; }
 @keyframes bs-turn { 0%, 14% { transform: none; } 30%, 100% { transform: rotate(90deg); } }
 @keyframes bs-d0 { 0%, 14% { opacity: 1; } 18%, 100% { opacity: 0; } }
 @keyframes bs-d90 { 0%, 14% { opacity: 0; } 18%, 100% { opacity: 1; } }
 @keyframes bs-lab { 0%, 40% { opacity: 0; transform: translateX(-190px) rotate(90deg) scale(.9); } 56% { opacity: 1; transform: translateX(0) rotate(90deg) scale(1.06); } 62%, 94% { opacity: 1; transform: rotate(90deg); } 100% { opacity: 0; transform: rotate(90deg); } }
}
