/* 17 Nov 2026: the book band (a turning 3D wall of the book's films) and the two free guide cards under it.
   Used on the home page, the Courses page and the AI training page. */
.bookhero{position:relative;overflow:hidden;background:#20211f;color:var(--on-dark);min-height:680px;display:flex;align-items:center;padding:96px 0}
.bookhero[hidden]{display:none}
.bookhero .wrap{position:relative;z-index:2;width:100%}
.bh-copy{max-width:500px}
.bh-copy h2{font:700 clamp(34px,3.6vw,50px)/1.08 var(--serif);letter-spacing:-.015em;margin-top:10px}
.bh-copy .body{margin-top:18px;color:var(--on-dark-muted)}
.bh-copy .btn{margin-top:28px}
.bh-stage{position:absolute;z-index:1;top:47%;left:73%;width:0;height:0;perspective:1300px}
.bw-ring{--r:1010px;position:absolute;transform-style:preserve-3d;transform:translateZ(calc(-1*var(--r))) rotateX(-5deg) rotateY(0deg);animation:bwturn 110s linear infinite}
.bw-ring figure{position:absolute;left:-260px;top:-146px;width:520px;height:293px;margin:0;backface-visibility:hidden;border-radius:10px;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(250,250,250,.16),0 30px 60px rgba(0,0,0,.5);-webkit-box-reflect:below 12px linear-gradient(transparent 64%,rgba(0,0,0,.26))}
.bw-ring img{display:block;width:100%;height:100%;object-fit:cover}
.bookhero::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#20211f 0,rgba(32,33,31,.97) 40%,rgba(32,33,31,0) 58%,rgba(32,33,31,0) 90%,rgba(32,33,31,.7) 100%);pointer-events:none}
@keyframes bwturn{to{transform:translateZ(calc(-1*var(--r))) rotateX(-5deg) rotateY(-360deg)}}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.g2-card{display:flex;flex-direction:column;text-decoration:none;color:inherit;background:var(--card);border:1px solid var(--line);transition:transform .25s,box-shadow .25s}
.g2-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -24px rgba(0,0,0,.35)}
.g2-card img{display:block;width:100%;height:auto;border-bottom:1px solid var(--line)}
.g2-body{padding:24px 26px 28px;display:flex;flex-direction:column;flex:1}
.g2-body h3{font:600 22px/1.2 var(--serif);margin-top:8px}
.g2-body .body{margin-top:10px;flex:1}
.g2-body .tlink{margin-top:18px;align-self:flex-start}
@media (max-width:900px){
 .bookhero{display:block;min-height:0;padding:0 0 56px}
 .bh-stage{position:relative;left:auto;top:auto;width:100%;height:320px}
 .bw-ring{--r:710px;left:50%;top:150px}
 .bw-ring figure{left:-170px;top:-96px;width:340px;height:191px;border-radius:8px}
 .bookhero::after{background:linear-gradient(180deg,rgba(32,33,31,0) 0,rgba(32,33,31,0) 250px,#20211f 330px)}
 .bh-copy{max-width:none}
 .g3{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.bw-ring{animation:none}}
@media print{.bh-stage{display:none}}
/* 18 Nov 2026: the wall turns without end, so the reader gets a way to stop it (WCAG 2.2.2) */
.bw-pause{position:absolute;z-index:3;right:24px;bottom:20px;background:none;border:0;padding:6px 2px;font:600 13px/1.4 var(--sans);letter-spacing:.04em;color:var(--on-dark);text-decoration:underline;text-underline-offset:4px;cursor:pointer;min-height:24px}
.bookhero.paused .bw-ring{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.bw-pause{display:none}}
/* 18 Nov 2026: the other free courses as a short list under the three cards (AI training page) */
.more-head{font:700 clamp(22px,2vw,28px)/1.2 var(--serif);margin:56px 0 8px}
.more-courses{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-strong)}
.more-courses a{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:8px 24px;align-items:baseline;padding:16px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.more-courses .mc-t{font:600 19px/1.3 var(--serif)}
.more-courses .mc-m{font:500 13px/1.4 var(--sans);letter-spacing:.04em;color:var(--muted);white-space:nowrap}
.more-courses .ar{color:var(--red);text-align:right;transition:transform .2s}
.more-courses a:hover .mc-t{text-decoration:underline;text-underline-offset:4px}
.more-courses a:hover .ar{transform:translateX(4px)}
@media (max-width:620px){.more-courses a{grid-template-columns:minmax(0,1fr) 24px}.more-courses .mc-m{grid-column:1;grid-row:2;white-space:normal}.more-courses .ar{grid-row:1;grid-column:2}}
/* 18 Nov 2026: the course band names its languages and links straight to each one */
.bh-langs{margin-top:14px;font:600 15px/1.5 var(--sans);color:var(--on-dark)}
.bh-go{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:28px}
.bh-go .btn{margin-top:0}
.bh-go a:not(.btn){font:600 15px/1.4 var(--sans);color:var(--on-dark);text-decoration:underline;text-underline-offset:4px;padding:8px 0;min-height:24px}
