/* book section: placeholder 3D book beside the text (built in code from the cover) */
#book .book-grid{grid-template-columns:1fr minmax(0,340px);align-items:center;gap:64px}
#book .book-frame{position:relative;display:block;width:100%;aspect-ratio:721/1000;background:radial-gradient(ellipse at 50% 38%,var(--mid) 0%,var(--deep) 48%,var(--ink) 100%);container-type:inline-size;perspective:1400px;overflow:hidden;border-radius:0}
#book .book-frame::after{content:"";position:absolute;left:18%;right:14%;top:calc(50% + 41cqw);height:8cqw;border-radius:50%;background:radial-gradient(ellipse,rgba(0,0,0,.7),rgba(0,0,0,0) 70%);filter:blur(4px)}
.book3d{--w:54cqw;--h:86.4cqw;--t:7.6cqw;position:absolute;left:50%;top:50%;width:var(--w);height:var(--h);margin:calc(var(--h)/-2) 0 0 calc(var(--w)/-2);transform-style:preserve-3d;transform:rotateY(30deg);z-index:1}
.book3d .f{position:absolute;backface-visibility:hidden}
.book3d .front{width:var(--w);height:var(--h);background:url(https://static.wixstatic.com/media/41e9db_3a225f3075ae4ee1a376286e18b3c7b2~mv2.png) center/cover;transform:translateZ(calc(var(--t)/2))}
.book3d .front::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.35) 0,rgba(255,255,255,.1) 2.2%,rgba(0,0,0,.18) 4%,rgba(0,0,0,0) 9%,rgba(0,0,0,.08) 100%)}
.book3d .back{width:var(--w);height:var(--h);background:var(--ink);transform:rotateY(180deg) translateZ(calc(var(--t)/2))}
.book3d .spine{width:var(--t);height:var(--h);left:calc(50% - var(--t)/2);background:url(https://static.wixstatic.com/media/41e9db_3a225f3075ae4ee1a376286e18b3c7b2~mv2.png) 0 0/auto 100%;transform:rotateY(-90deg) translateZ(calc(var(--w)/2));display:flex;align-items:center;justify-content:center}
.book3d .spine::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.25) 40%,rgba(0,0,0,.45))}
.book3d .spine span{position:relative;writing-mode:vertical-rl;color:var(--paper);font-family:var(--display);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:calc(var(--t)*.36);white-space:nowrap}
.book3d .pages{width:var(--t);height:var(--h);left:calc(50% - var(--t)/2);background:repeating-linear-gradient(90deg,#f3efe6 0 1px,#e2ddd2 1px 2px);transform:rotateY(90deg) translateZ(calc(var(--w)/2 - 1px))}
.book3d .top{width:var(--w);height:var(--t);top:calc(50% - var(--t)/2);background:repeating-linear-gradient(0deg,#f3efe6 0 1px,#e0dbcf 1px 2px);transform:rotateX(90deg) translateZ(calc(var(--h)/2 - 1px))}
@media(min-width:701px) and (max-width:1000px){#book .book-grid{grid-template-columns:1fr minmax(0,300px);gap:36px}}
/* two stacked landscape placeholders (phones show only the first) */
#book .book-stack{display:grid;gap:16px;align-self:start}
#book .book-frame.land{aspect-ratio:3/2}
#book .land .book3d{--w:31.25cqw;--h:50cqw;--t:4.4cqw}
#book .land.b2 .book3d{transform:rotateY(-28deg)}
#book .land.b2{background:radial-gradient(ellipse at 50% 38%,var(--hi) 0%,var(--mid) 45%,var(--deep) 100%)}
#book .land::after{top:calc(50% + 23.5cqw);height:5cqw;left:30%;right:30%}
@media(min-width:701px){#book .book-stack{position:sticky;top:96px}}
@media(max-width:700px){#book .book-grid{grid-template-columns:1fr;gap:32px}#book .book-stack{order:-1}#book .book-frame{max-width:none}#book .land.b2{display:none}}
/* iPad (portrait + landscape) and laptop: the two images stretch to exactly the height of the text, whatever the screen */
@media(min-width:701px){
  #book .book-grid{align-items:stretch}
  #book .book-stack{position:static;display:flex;flex-direction:column;gap:16px;align-self:stretch}
  #book .book-frame.land{aspect-ratio:auto;flex:1 1 0;min-height:220px;container-type:size}
  #book .land::after{display:none}
  #book .land .book3d{--bh:min(86.4cqw,78cqh);--h:var(--bh);--w:calc(var(--bh)*.625);--t:calc(var(--bh)*.088)}
  #book .land .shd{--bh:min(86.4cqw,78cqh);position:absolute;left:50%;top:calc(50% + var(--bh)/2 - 1.5cqh);width:calc(var(--bh)*.7);height:calc(var(--bh)*.07);margin-left:calc(var(--bh)*-.35);border-radius:50%;background:radial-gradient(ellipse,rgba(0,0,0,.7),rgba(0,0,0,0) 70%);filter:blur(4px)}
}