/* HOME PAGE UPDATE — 03 Comics / 04 Art / 05 Live Illustration. */
.pws-home .pws-home-samples{padding-block:64px 48px!important;}
.pws-home .pws-home-sample-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:28px;}
.pws-home .pws-home-sample-card{height:100%;overflow:hidden;}
.pws-home .pws-home-sample-card .pws-home-project-card__image{margin:0 0 8px!important;aspect-ratio:1.9;flex-shrink:0;background:#f4f0eb;}
.pws-home .pws-home-sample-card .pws-home-project-card__image img{width:100%;height:100%;display:block;object-fit:contain;}
.pws-home .pws-home-sample-card .pws-home-text-link{margin-top:auto;padding-top:10px;}
.pws-home .pws-home-sample-actions{display:flex!important;justify-content:center!important;margin:32px 0 0!important;gap:16px;}
.pws-home .pws-home-samples h2{margin:0!important;text-transform:uppercase;}
.pws-home .pws-home-live{padding:64px 0!important;margin:48px 0 0!important;background:#000;color:#fff;text-align:center;}
.pws-home .pws-home-live h2{margin:0!important;color:#fff!important;text-transform:uppercase;}
.pws-home .pws-home-live p{max-width:720px;margin:20px auto 0!important;color:#fff!important;}
.pws-home .pws-home-live .pws-home-feature__actions{justify-content:center!important;margin-top:28px!important;gap:16px!important;}
.pws-home .pws-home-contact .wp-block-buttons{justify-content:flex-end;}
@media(max-width:1000px){.pws-home .pws-home-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.pws-home .pws-home-sample-grid{grid-template-columns:1fr;}.pws-home .pws-home-samples{padding-block:40px!important;}.pws-home .pws-home-live{margin-top:24px!important;padding-block:48px!important;}.pws-home .pws-home-contact .wp-block-buttons{justify-content:center;}}

/* Live Illustration band: the established tear on both edges, lit from above.
   Only the background is masked, leaving content and button shadows intact. */
:root:root:root:root:root:root:root .pws-home .pws-home-live{
 position:relative!important;isolation:isolate;overflow:visible!important;z-index:1;
 background:transparent!important;--pws-live-paper-color:#000;
}
:root:root:root:root:root:root:root .pws-home .pws-home-live>.pws-home-container{position:static!important}
:root:root:root:root:root:root:root .pws-home .pws-home-live>.pws-home-container>*{position:relative;z-index:1}
/* Flipped cutout is shadowless: the dark sheet rises into the white area above. */
:root:root:root:root:root:root:root .pws-home .pws-home-live::before{
 content:"";position:absolute;left:0;top:calc(-1 * var(--pws-paper-height,82px));
 width:100%;height:var(--pws-paper-height,82px);pointer-events:none;z-index:-1;
 background:var(--pws-live-paper-color);transform:scaleY(-1);
 -webkit-mask:url("paper-mask.svg") repeat-x left top / var(--pws-paper-width,1384px) var(--pws-paper-height,82px);
 mask:url("paper-mask.svg") repeat-x left top / var(--pws-paper-width,1384px) var(--pws-paper-height,82px);
 box-shadow:none!important;filter:none!important;
}
/* Same bottom silhouette and placement as the Home hero, on a background layer. */
:root:root:root:root:root:root:root .pws-home .pws-home-live>.pws-home-container::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:var(--pws-live-paper-color);
 -webkit-mask-image:linear-gradient(#000,#000),url("paper-mask.svg");
 mask-image:linear-gradient(#000,#000),url("paper-mask.svg");
 -webkit-mask-size:100% calc(100% - 60px),var(--pws-paper-width,1384px) var(--pws-paper-height,82px);
 mask-size:100% calc(100% - 60px),var(--pws-paper-width,1384px) var(--pws-paper-height,82px);
 -webkit-mask-position:0 0,0 calc(100% + 16px);mask-position:0 0,0 calc(100% + 16px);
 -webkit-mask-repeat:no-repeat,repeat-x;mask-repeat:no-repeat,repeat-x;
 -webkit-mask-composite:source-over;mask-composite:add;
}
:root:root:root:root:root:root:root .pws-home .pws-home-live::after{
 content:"";position:absolute;left:0;bottom:var(--pws-paper-offset,-16px);
 width:100%;height:var(--pws-paper-height,82px);pointer-events:none;z-index:3;
 background:transparent url("paper-tear.svg") repeat-x left top / var(--pws-paper-width,1384px) var(--pws-paper-height,82px);
 box-shadow:none!important;filter:none!important;
}
/* Home recent-comic invitation: image bleeds to the right and beyond the band. */
.pws-home-recent-comics{position:relative;isolation:isolate;min-height:360px;margin:0 0 32px;background:var(--pws-color-white,#fff);}
.pws-home-recent-comics>.pws-home-container{position:relative;z-index:1;display:flex;align-items:center;min-height:360px;}
.pws-home-recent-comics__copy{width:43%;padding:64px 0;}
.pws-home-recent-comics__copy h2{max-width:460px;margin:0 0 24px!important;}
.pws-home-recent-comics .pws-home-feature__actions{display:flex;flex-wrap:wrap;gap:16px;justify-content:flex-start;}
.pws-home-recent-comics__image{position:absolute;z-index:0;right:0;top:-32px;bottom:-32px;width:55%;margin:0!important;overflow:hidden;clip-path:polygon(0 0,100% 32px,100% calc(100% - 32px),0 100%);}
.pws-home-recent-comics__image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border:0;}
.pws-reader-back{gap:8px;}
@media(max-width:700px){
 .pws-home-recent-comics{margin-bottom:24px;}
 .pws-home-recent-comics>.pws-home-container{min-height:0;}
 .pws-home-recent-comics__copy{width:100%;padding:48px 0 24px;}
 .pws-home-recent-comics__image{position:relative;top:auto;bottom:auto;width:100%;height:300px;clip-path:polygon(0 0,100% 24px,100% calc(100% - 24px),0 100%);}
}

/* Thin ink rule follows the rising bottom diagonal without outlining the image. */
.pws-home-recent-comics__image::after{content:"";position:absolute;inset:0;background:var(--pws-color-ink,#111);pointer-events:none;clip-path:polygon(0 calc(100% - 1px),100% calc(100% - 33px),100% calc(100% - 32px),0 100%);}
@media(max-width:700px){
 .pws-home-recent-comics__copy{text-align:center;}
 .pws-home-recent-comics__copy h2{margin-inline:auto!important;}
 .pws-home-recent-comics .pws-home-feature__actions{justify-content:center;gap:12px;}
 :root:root:root:root:root:root:root:root:root:root .pws-home-recent-comics .pws-home-button{padding:12px!important;white-space:nowrap;min-width:0;}
 .pws-home-recent-comics__image::after{clip-path:polygon(0 calc(100% - 1px),100% calc(100% - 25px),100% calc(100% - 24px),0 100%);}
 :root:root:root:root:root:root:root:root:root:root .pws-home .pws-home-live{padding-bottom:calc(var(--pws-section-space,48px) + 32px)!important;}
}
