/* The restored stage animates its image and feedback layers. Architecture stays on the pixel grid. */
html:root:root[data-theme] body.calm-home #home{perspective:none}
.calm-home #home :is(.v8-window-plane,.v8-console-plane,#hero-selectors){translate:none!important;scale:none!important;transform:none!important;will-change:auto;transform-style:flat}
.calm-home #home :is(.v8-frame-art,.v8-console-art,.v8-background-art){will-change:auto}
.calm-home #home .v8-relief-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill;pointer-events:none;user-select:none;will-change:auto}
.calm-home #home .v8-relief-console{z-index:3}
.calm-home #home .hero-stage{mask-image:none}
.calm-stage-canvas{position:absolute;pointer-events:none;z-index:4;overflow:visible}
.calm-stage-canvas .stage-rim{top:0!important;height:100%!important;mask-size:var(--calm-rim-size);mask-position:var(--calm-rim-position)}
.calm-home #home .hero-readable,.calm-home #home .hero-links{margin:0;padding:0}
.calm-home #home .hero-links{display:block}
.calm-home #home .media-layer{position:absolute;inset:0;width:100%;height:100%;transform-origin:center}
.calm-home #home .media-layer> :is(img,video),.calm-home #home .media-layer>picture[data-hero-ad-picture]>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.calm-home #home .mo-slot-assembly{container-type:normal;contain:none;transform-style:flat}
.calm-home #home .medallion-cover .face-layer,.calm-home #home .medallion-cover .face-layer>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.calm-home #home .medallion-cover{transition:filter 200ms}
.calm-home #home .medallion-art .stage-metal-mask{inset:auto;left:var(--calm-ring-left);top:var(--calm-ring-top);width:var(--calm-ring-width);height:var(--calm-ring-height)}
.calm-home #home .stage-selector-label{font-size:14px}
.calm-home #home .v8-console-scroll{overflow:hidden;touch-action:pan-y}
.calm-home #home .v8-browse::after{display:none}
/* Original wordmark and navigation feedback, without the added sweep nodes. */
.calm-library{padding:52px 0 62px}
.calm-library-wrap{position:relative;width:min(calc(100% - 80px),1880px);margin-inline:auto}
.calm-library-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.calm-library-heading h2{margin:0;font:600 clamp(30px,2.2vw,42px)/1.3 var(--mo-serif);letter-spacing:.02em}
.calm-library-heading>a{display:inline-flex;align-items:center;min-height:44px;padding:6px 2px;font:400 16px/1.4 var(--mo-serif)}
.calm-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px}
.calm-card{position:relative;isolation:isolate;display:grid;grid-template-columns:min(44%,250px) minmax(0,1fr);align-items:center;gap:20px;min-width:0;min-height:160px;padding:10px;border-radius:16px;background:var(--mo-paper);color:var(--mo-ink);box-shadow:0 4px 14px #3d2a190c;text-decoration:none;transition:transform 200ms ease,box-shadow 200ms ease}
.calm-card::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--mo-wall) center/cover no-repeat;opacity:.24;pointer-events:none}
.calm-card-thumbnail{position:relative;display:block;min-width:0;aspect-ratio:16/9;border-radius:10px;overflow:hidden;isolation:isolate}
.calm-card-thumbnail>img{width:100%;height:100%;object-fit:cover;transition:transform 200ms ease}
.calm-card-copy{display:block;align-self:start;padding:10px 14px 28px 0;min-width:0}
.calm-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;font:400 20px/1.3 var(--mo-serif)}
.calm-card-meta{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:10px;padding-right:25px;color:var(--mo-copy);font:400 15px/1.5 var(--mo-sans)}
.calm-card-arrow{position:absolute;right:20px;bottom:15px;font:400 23px/1 var(--mo-sans);color:var(--mo-gold);transition:transform 200ms ease}
.calm-card-frame{position:absolute;inset:0;pointer-events:none;opacity:.45}
.calm-card-frame>img{position:absolute;display:block;max-width:none}
.calm-frame-tl,.calm-frame-tr,.calm-frame-bl,.calm-frame-br{width:16px;height:16px}.calm-frame-tl{left:0;top:0}.calm-frame-tr{right:0;top:0}.calm-frame-bl{left:0;bottom:0}.calm-frame-br{right:0;bottom:0}.calm-frame-t,.calm-frame-b{left:16px;width:calc(100% - 32px);height:16px}.calm-frame-t{top:0}.calm-frame-b{bottom:0}.calm-frame-l,.calm-frame-r{top:16px;height:calc(100% - 32px);width:16px}.calm-frame-l{left:0}.calm-frame-r{right:0}
.calm-card:focus-visible{outline:2px solid #a87b3e;outline-offset:4px}
:root[data-theme=dark] .calm-card-frame{opacity:.72}
:root[data-theme=dark] .calm-card::before{opacity:.16}
:root[data-theme=dark] .calm-card:focus-visible{outline-color:#edc887}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.calm-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #3d2a191a}.calm-card:hover .calm-card-arrow{transform:translateX(4px)}.calm-card:hover .calm-card-thumbnail>img{transform:scale(1.03)}}
@media(max-width:1439px){.calm-library-wrap{width:calc(100% - 48px)}.calm-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}}
@media(max-width:1023px){.calm-card{min-height:132px;gap:14px}.calm-card-copy{padding-top:4px}.calm-card-meta{margin-top:8px}}
@media(max-width:767px){.calm-library{padding:34px 0 40px}.calm-library-wrap{width:calc(100% - 32px)}.calm-library-heading{gap:12px;margin-bottom:20px}.calm-library-heading h2{font-size:30px}.calm-library-heading>a{font-size:15px}.calm-library-grid{grid-template-columns:1fr;gap:12px}.calm-card{grid-template-columns:132px minmax(0,1fr);min-height:110px;gap:12px;padding:10px}.calm-card-copy{padding:0 0 20px}.calm-card-arrow{right:14px;bottom:11px;font-size:21px}.calm-card-meta{margin-top:7px;padding-right:24px}}
@media(prefers-reduced-motion:reduce){.calm-card,.calm-card *{animation:none!important;transition:none!important}.calm-card:hover,.calm-card:hover .calm-card-arrow,.calm-card:hover .calm-card-thumbnail>img{transform:none!important}}

.calm-home #home .hero-browse{filter:none!important;transition:filter 200ms!important;box-shadow:inset 0 1px 2px #fff9,0 2px 3px #7e613c26}
.calm-home #home .hero-browse:hover{filter:brightness(1.06)!important;box-shadow:inset 0 1px 2px #fff9,0 2px 3px #7e613c26}
@media(prefers-reduced-motion:reduce){.calm-home #home .hero-browse{transition:none!important}}

/* Newly generated pearl stone is confined to the small-card section. */
:root[data-theme=light] .calm-library{--mo-paper:#f5eee5;--mo-wall:image-set(url('/assets/home-calm-refined/wall-960.webp') 1x,url('/assets/home-calm-refined/wall-1920.webp') 2x)}


.calm-home #home .hero-enter{filter:none;transition:filter 200ms!important}
.calm-home #home .hero-enter:hover{filter:brightness(1.06)}
@media(prefers-reduced-motion:reduce){.calm-home #home .hero-enter{transition:none!important}}

/* The complete reflected floor belongs to the static scene rather than a fade. */
.calm-home #home[data-shell-scale] .v8-backdrop{mask:none!important}
.calm-home #home[data-shell-scale] .medallion::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);translate:-50% -50%;pointer-events:auto}
.calm-home #home .v8-crisp-art{position:absolute;max-width:none;object-fit:fill;pointer-events:none;user-select:none}
.calm-home #home .v8-crisp-console{z-index:3}
.calm-home #home .medallion-art{-webkit-box-reflect:below var(--reflection-gap,0px) linear-gradient(transparent,rgba(0,0,0,.13))}
.calm-home #home .medallion-art .stage-metal-mask{mask-image:none!important;clip-path:var(--calm-ring-clip)}
.calm-home #home .medallion-cover{inset:0;width:100%;height:100%;border-radius:50%}
.calm-home #home .v8-current-name{isolation:isolate;white-space:nowrap;color:#28190c}
.calm-home #home .v8-current-name[data-embossed=true] .v8-current-label{opacity:0}
.calm-home #home .v8-console-plane .medallion-name{background:none;box-shadow:none;border:0}
@media(min-width:1024px){.calm-home #home .hero-browse{min-width:calc(var(--type-unit)*.14)}}
@media(max-width:1023px){.calm-home #home .round-arrow{min-width:30px;min-height:30px}.calm-home #home .round-arrow::before{content:'';position:absolute;inset:-7px}}
