
/* Concept 09: targeted scene and book improvements, retaining approved styling. */
/* Each environment remains a real-looking photographic room and each piece is placed into ONE existing frame. */
.insitu-stage{background:#e4d8c8!important;aspect-ratio:1.71!important;overflow:hidden;position:relative}
.real-scene{object-fit:fill!important;inset:0!important;width:100%!important;height:100%!important;filter:none!important}
.real-art-frame{z-index:3;box-sizing:border-box;left:18.9%!important;top:10.5%!important;width:47.4%!important;height:54.8%!important;border:clamp(3px,.48vw,7px) solid var(--frame-finish,#ad8763);padding:0!important;background:#e6dfd3!important;box-shadow:1px 3px 10px #0006,0 0 1px 2px #fff8 inset!important;transition:border-color .28s ease!important}
.real-frame-mat{background:#e9e2d5!important;width:100%;height:100%;padding:6%!important;box-sizing:border-box}
.real-frame-mat img{object-fit:contain!important;background:#e9e2d5;box-shadow:none!important;width:100%;height:100%}
.insitu-stage[data-room=gallery] .real-art-frame{left:24.3%!important;top:13.5%!important;width:32.7%!important;height:53.8%!important}
.insitu-stage[data-room=study] .real-art-frame{left:42.5%!important;top:9.4%!important;width:31.2%!important;height:43.0%!important}
/* The scene's existing frames are covered in exact alignment, rather than stacking a second frame on top. */
@media(max-width:800px){.insitu-stage{aspect-ratio:1.71!important}}
@media(max-width:480px){.insitu-stage{aspect-ratio:1.71!important}.real-art-frame{border-width:3px!important}.real-frame-mat{padding:4.7%!important}}
/* Original studio identity: vertical brand seal in the quiet final chapter */
.closing{position:relative}
.closing-vertical-logo{width:95px;margin:0 auto 33px;position:relative;opacity:.82;filter:drop-shadow(0 2px 8px #0002)}
.closing-vertical-logo img{width:100%;height:auto;display:block;object-fit:contain}
@media(max-width:600px){.closing-vertical-logo{width:66px;margin-bottom:24px}}
/* Book: a paper-like, responsive flip with a realistic turning shadow, curved leaf and cloth cover. */
.frag-book{transform-style:preserve-3d;perspective:1800px;overflow:visible!important;isolation:isolate;filter:drop-shadow(15px 22px 24px #0009)}
.frag-book-left,.frag-book-right{backface-visibility:hidden}
.frag-turn-leaf{display:block!important;opacity:0;z-index:20;position:absolute;top:0;left:50%;width:50%;height:100%;overflow:visible;border-radius:1px 15px 20px 2px;transform-origin:0 50%;background:linear-gradient(96deg,#bfb2a0 0%,#f5eee1 10%,#faf6ed 70%,#d6c8b2 100%);box-shadow:inset 9px 0 18px -13px #0008;pointer-events:none;transform-style:preserve-3d;backface-visibility:visible}
.frag-turn-leaf img{width:100%;height:100%;object-fit:contain;padding:6%;box-sizing:border-box;filter:saturate(.84)}
.frag-turn-leaf:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;background:linear-gradient(95deg,#47392a34 0%,transparent 18%,#fff8 50%,transparent 78%,#7e706329 98%);mix-blend-mode:multiply;box-shadow:inset 17px 0 22px -20px #0008,inset -9px 0 13px -12px #0009}
.frag-turn-leaf:after{content:'';position:absolute;z-index:-1;top:2.5%;right:-5px;width:19px;height:94%;transform:rotateY(72deg);background:linear-gradient(90deg,#fff6e9,#b7a68b);border-radius:0 45% 45% 0;filter:blur(.4px)}
.frag-book.turn-forward .frag-turn-leaf{opacity:1;animation:osPageFlipForward 1.07s cubic-bezier(.22,.08,.23,1) both}
.frag-book.turn-backward .frag-turn-leaf{left:0;transform-origin:100% 50%;opacity:1;animation:osPageFlipBackward 1.07s cubic-bezier(.22,.08,.23,1) both}
@keyframes osPageFlipForward{0%{transform:rotateY(0deg) skewY(0deg);border-radius:2px 5px 8px 2px;filter:brightness(1)}20%{transform:rotateY(-27deg) skewY(.8deg);border-radius:2px 22px 37px 2px;filter:brightness(1.1)}45%{transform:rotateY(-86deg) skewY(2deg);border-radius:1px 46px 60px 2px;filter:brightness(.84)}70%{transform:rotateY(-137deg) skewY(.6deg);border-radius:2px 23px 25px 2px;filter:brightness(.88)}100%{transform:rotateY(-179deg) skewY(0deg);border-radius:2px;filter:brightness(1)}}
@keyframes osPageFlipBackward{0%{transform:rotateY(0deg) skewY(0deg)}25%{transform:rotateY(42deg) skewY(-1deg);border-radius:38px 1px 2px 42px}55%{transform:rotateY(112deg) skewY(-1.8deg);border-radius:55px 1px 2px 60px}100%{transform:rotateY(179deg) skewY(0deg);border-radius:2px}}
.os-book-cover-art{display:none;position:absolute;inset:0;z-index:5;background:linear-gradient(110deg,#d2c4ad 0%,#f3eddf 12%,#f9f3e8 72%,#d5c5aa);box-shadow:inset 6px 0 13px #a38c6a6b;justify-content:center;align-items:center;padding:8%;color:#27261f}
.os-book-cover-inner{height:100%;width:100%;border:1px solid #c9bba7;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;text-align:center;padding:4%}
.os-book-cover-inner img{height:12%;width:auto;filter:brightness(0);opacity:.82}
.os-book-cover-inner span{font:500 9px var(--sans);letter-spacing:.24em}
.os-book-cover-inner strong{font:400 clamp(42px,4vw,78px)/1 var(--serif);letter-spacing:-.05em}
.os-book-cover-inner em{font:italic clamp(15px,1.45vw,22px) var(--serif)}
.os-book-cover-inner small{font:italic 17px var(--serif)}
.os-book-cover-mode .frag-book-left{display:none!important}
.os-book-cover-mode .frag-book-right{display:block!important;grid-column:1/-1;width:59%;max-width:680px;margin-left:auto;box-shadow:12px 21px 30px #0008;border-left:16px solid #b3a18c}
.os-book-cover-mode .frag-book-right>img,.os-book-cover-mode .frag-page-right-mark{display:none}
.os-book-cover-mode .os-book-cover-art{display:flex}
.os-book-cover-mode:before{display:none}
.os-book-cover-mode:after{left:40%;right:1%}
.os-book-cover-mode .frag-book-right{cursor:pointer}
.os-book-intro-mode .frag-book-left{background:linear-gradient(90deg,#eee7db,#faf4e9 85%,#d4c6b3)}
.os-book-intro-mode .frag-book-right>img{filter:grayscale(.15) brightness(1.15);opacity:.84}
.frag-book-page{transition:none!important}
/* On phone, show one upright leaf, not two stacked rectangles. A single page curls on a swipe. */
@media(max-width:600px){
 .frag-book{aspect-ratio:.77!important;min-height:0!important;display:block!important;perspective:1000px}
 .frag-book-left{min-height:100%!important;width:100%!important;position:absolute!important;inset:0!important;z-index:3;border-radius:4px;padding:7% 9% 9%!important}
 .frag-book-right{display:none!important}
 .os-book-cover-mode .frag-book-left{display:none!important}
 .os-book-cover-mode .frag-book-right{display:block!important;width:95%;height:100%;max-width:none;margin-left:auto;border-left-width:11px}
 .frag-turn-leaf{left:0!important;width:100%!important;transform-origin:left center!important;z-index:30}
 .frag-book.turn-backward .frag-turn-leaf{transform-origin:right center!important}
 .frag-page-signature{max-width:120px;margin-top:auto}
 .frag-book-left>p{font-size:clamp(17px,5vw,22px)!important}
 .frag-book-left h3{font-size:clamp(36px,10vw,49px)!important}
 .frag-book:before{display:none!important}
}
@media(prefers-reduced-motion:reduce){.frag-book.turn-forward .frag-turn-leaf,.frag-book.turn-backward .frag-turn-leaf{animation:none!important;display:none!important}}

