/* One continuous room; book contact points stay on the desktop. */
.hero.hero-desk{position:relative;isolation:isolate;width:100%;max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:3vw;padding:70px max(28px,calc((100vw - 1320px)/2)) 100px;min-height:660px;background:linear-gradient(90deg,#08091aeb,#08091a99 40%,#08091a15 75%),linear-gradient(0deg,#08091a,transparent 18%,transparent 85%,#08091a),url('../assets/optimized/Cerika_Room_Catalogue_Background-1600.webp') center/100% 100% no-repeat}
.hero-desk .hero-copy{max-width:600px}.hero-desk h1{font-size:clamp(42px,4.6vw,72px)}
.hero-desk .hero-visual{min-height:0;aspect-ratio:1.15;align-self:end;margin-bottom:45px;perspective:1400px}
.hero-desk .hero-visual:before,.hero-desk .hero-visual:after{display:none}
.hero-desk .hero-book-showcase .hero-book-slide{inset:auto;bottom:0;width:46%;display:block;opacity:1;filter:none;transform:none;transform-origin:bottom center;transition:transform .24s ease,filter .24s ease}
.hero-desk .hero-book-slide.is-active{left:1%;bottom:-10px;z-index:3}
.hero-desk .hero-book-slide.is-left{left:29%;bottom:10px;width:43%;z-index:2}
.hero-desk .hero-book-slide.is-right{left:56%;bottom:28px;width:40%;z-index:1}
.hero-desk .hero-book-showcase .book-hero{width:100%;max-width:none;transform:perspective(1100px) rotateY(-24deg);transform-origin:bottom center;transition:transform .24s ease;filter:drop-shadow(7px 9px 5px #0009)}
.hero-desk .hero-book-slide:after{content:'';position:absolute;z-index:-1;left:0;right:-5%;bottom:-3%;height:5%;background:#0009;border-radius:50%;filter:blur(5px)}
.hero-desk .hero-book-showcase .hero-book-slide:focus-visible{z-index:5;outline:2px solid #cbb5ff;outline-offset:8px;transform:translateY(-18px) scale(1.08)}
.hero-desk .hero-book-showcase .hero-book-slide:focus-visible .book-hero{transform:perspective(1100px) rotateY(0)}
@media(hover:hover) and (pointer:fine){.hero-desk .hero-book-showcase .hero-book-slide:hover{z-index:5;opacity:1;filter:drop-shadow(0 0 11px #9e67ff50);transform:translateY(-18px) scale(1.08)}.hero-desk .hero-book-showcase .hero-book-slide:hover .book-hero{transform:perspective(1100px) rotateY(0)}}
@media(max-width:920px){.hero.hero-desk{grid-template-columns:minmax(0,1fr);padding:48px 24px 100px;gap:30px;text-align:left;background-size:auto 100%;background-position:60% bottom;background-image:linear-gradient(180deg,#08091afa,#08091ae0 45%,#08091a20 78%,#08091a),url('../assets/optimized/Cerika_Room_Catalogue_Background-1600.webp')}.hero-desk .hero-copy{margin-inline:auto;width:100%}.hero-desk .hero-actions{justify-content:flex-start}.hero-desk .hero-visual{width:100%;max-width:600px;justify-self:center;aspect-ratio:1.45;margin:0}.hero-desk h1{font-size:clamp(40px,8vw,64px)}}
@media(prefers-reduced-motion:reduce){.hero-desk .hero-book-slide,.hero-desk .hero-book-showcase .book-hero{transition:none}.hero-desk .hero-book-showcase .hero-book-slide:hover,.hero-desk .hero-book-showcase .hero-book-slide:focus-visible{transform:none}.hero-desk .hero-book-showcase .hero-book-slide:hover .book-hero,.hero-desk .hero-book-showcase .hero-book-slide:focus-visible .book-hero{transform:perspective(1100px) rotateY(-24deg)}}
@media(max-width:920px){
 .hero.hero-desk{background:#08091a}
 .hero-desk .hero-visual{isolation:isolate}
 .hero-desk .hero-visual::before{display:block;z-index:-1;inset:-100px -24px -100px;border-radius:0;filter:none;background:linear-gradient(180deg,#08091a,transparent 30%,transparent 80%,#08091a),url('../assets/optimized/Cerika_Room_Catalogue_Background-1600.webp') center/100% 100% no-repeat}
}
/* All resting covers share one contact line within the photographed desktop. */
@media(min-width:921px){
 .hero-desk .hero-visual{position:absolute;right:max(28px,calc((100vw - 1320px)/2));bottom:28%;width:min(49%,650px);margin:0}
}
.hero-desk .hero-book-showcase .hero-book-slide.is-active{left:0%;bottom:0;width:40%;z-index:3}
.hero-desk .hero-book-showcase .hero-book-slide.is-left{left:29%;bottom:0;width:40%;z-index:2}
.hero-desk .hero-book-showcase .hero-book-slide.is-right{left:58%;bottom:0;width:40%;z-index:1}
.hero-desk .hero-book-showcase .book-hero{transform:perspective(1100px) rotateY(-24deg);filter:drop-shadow(5px 5px 3px #0008)}
.hero-desk .hero-book-slide:after{left:2%;right:-3%;bottom:-1.5%;height:3%;filter:blur(3px);background:#000b}
@media(max-width:920px){
 .hero-desk .hero-visual{aspect-ratio:1.1;margin:0}
 .hero-desk .hero-book-showcase{bottom:28%}
 .hero-desk .hero-visual::before{inset:0 -24px;background:linear-gradient(180deg,#08091a,transparent 25%,transparent 85%,#08091a),url('../assets/optimized/Cerika_Room_Catalogue_Background-1600.webp') center/100% 100% no-repeat}
}
/* Larger covers with enough exposed edge to select each story. */
.hero-desk .hero-book-showcase .hero-book-slide.is-active{left:0;width:52%}
.hero-desk .hero-book-showcase .hero-book-slide.is-left{left:23%;width:52%}
.hero-desk .hero-book-showcase .hero-book-slide.is-right{left:46%;width:52%}
@media(max-width:920px){
 .hero.hero-desk{padding-bottom:24px;gap:12px}
 .hero-desk .hero-visual{aspect-ratio:1.22;max-width:680px}
 .hero-desk .hero-book-showcase{bottom:28%}
}

.hero-desk-controls{display:none}
@media(max-width:920px){
 .hero-desk .hero-visual{aspect-ratio:1.18}
 .hero-desk .hero-book-showcase .hero-book-slide.is-active{width:52%;left:0}
 .hero-desk .hero-book-showcase .hero-book-slide.is-right{width:52%;left:46%}
 .hero-desk .hero-book-showcase .hero-book-slide.is-left{display:block;width:52%;left:23%}
 .hero-desk-controls{display:none}
 .hero-desk-controls .catalogue-reader-arrow{position:static;width:42px;height:42px;min-width:42px;transform:none}
}

.hero-desk h1 .hero-heading-line{display:block;color:inherit}.hero-desk h1 .hero-heading-phrase{color:inherit;white-space:nowrap}

.hero-desk h1:lang(en) .hero-heading-phrase{color:var(--pink)}

.hero-desk h1:lang(ms) .hero-heading-phrase{white-space:normal}

/* Keep the headline prominent and let each sentence wrap when needed. */
.hero-desk h1{font-size:clamp(42px,4.6vw,72px)}
@media(max-width:920px){.hero-desk h1{font-size:clamp(40px,8vw,64px)}}

/* Selection changes depth only; each cover keeps its shelf slot. */
.hero-desk .hero-book-showcase .hero-book-slide.is-front{z-index:5;transform:translateY(-18px) scale(1.08)}
.hero-desk .hero-book-showcase .hero-book-slide.is-front .book-hero{transform:perspective(1100px) rotateY(0)}
@media(prefers-reduced-motion:reduce){
 .hero-desk .hero-book-showcase .hero-book-slide.is-front{transform:none}
 .hero-desk .hero-book-showcase .hero-book-slide.is-front .book-hero{transform:perspective(1100px) rotateY(-24deg)}
}

/* Keep the Malay child address together when the sentence wraps. */
.hero-desk h1:lang(ms) em{white-space:nowrap}

/* Touch selection raises a cover in its existing slot. */
.hero-desk .hero-book-showcase .hero-book-slide.is-touch-selected{z-index:6;transform:translateY(-18px) scale(1.08)}
.hero-desk .hero-book-showcase .hero-book-slide.is-touch-selected .book-hero{transform:perspective(1100px) rotateY(0)}
@media(prefers-reduced-motion:reduce){.hero-desk .hero-book-showcase .hero-book-slide.is-touch-selected{transform:none}}

/* Place the edition control below the covers without moving their tabletop contact. */
.hero-desk .hero-book-language{position:absolute;right:0;top:100%;margin-top:28px;z-index:10;max-width:100%}
.hero-desk .hero-book-language .book-language-control{margin:0;max-width:100%;background:#101020ed}
@media(max-width:920px){.hero-desk .hero-visual{margin-bottom:96px}}

.hero-desk .hero-book-language{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;color:#bfb8cf;font-size:14px}
.hero-language-pills{display:inline-flex;gap:4px;padding:4px;border:0;border-radius:18px;background:#ffffff05}
.hero-language-pill{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border:0;border-radius:14px;background:transparent;color:#aca6bd;font:700 13px/1 "DM Sans",sans-serif;cursor:pointer}
.hero-language-pill[aria-pressed="true"]{background:#b89bec25;color:#f7f0ff;box-shadow:none}
.hero-language-pill:focus-visible{outline:2px solid white;outline-offset:2px}
.hero-language-pill:disabled{opacity:.6;cursor:wait}

.hero-desk .hero-intro{margin:0 0 24px;text-align:left}.hero-desk .no-signup-note{margin:16px 0 0}

/* Separate the two thoughts without adding an empty block to the hero. */
.hero-desk h1{line-height:1.08;margin-bottom:clamp(28px,2.5vw,36px)}
.hero-desk h1 .hero-heading-line+.hero-heading-line{margin-top:.08em}

/* Keep the two hero actions together when the viewport allows a readable row. */
@media(min-width:480px){
 .hero-desk .hero-actions{flex-wrap:nowrap;align-items:stretch}
 .hero-desk .hero-actions .button{flex:0 1 auto;min-width:0;padding:12px 20px;line-height:1.35;text-align:center;white-space:normal}
}
