/* Isolated paper transition. Native scrolling; the original portfolio is untouched. */
.aps-paper {--paper:#eee9df;--ink:#15262b;position:relative;isolation:isolate;background:#eee9df;color:var(--ink);border-block:1px solid #d5d0c7;scroll-margin-top:84px;}
.aps-paper *{box-sizing:border-box;}
.aps-paper .aps-paper-stage{max-width:1240px;margin:auto;padding:44px 32px 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;}
.aps-paper-head {width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;}
.aps-paper-kicker{margin:0 0 12px;font:700 11px/1.5 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#416167;}
.aps-paper h2{margin:0;color:var(--ink);font-size:clamp(30px,4.2vw,58px);line-height:1.08;letter-spacing:-.045em;max-width:650px;}
.aps-paper-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;font-size:12px;}
.aps-paper-tools[hidden]{display:none;}
.aps-paper-tools label{display:flex;align-items:center;gap:7px;cursor:pointer;}
.aps-paper-tools input{accent-color:#17616b;width:16px;height:16px;}
.aps-paper button{font:inherit;color:var(--ink);background:transparent;border:1px solid #9eaaa8;border-radius:4px;padding:10px 14px;cursor:pointer;}
.aps-paper a{color:var(--ink);}
.aps-paper button:hover,.aps-paper a:hover{color:#17616b;border-color:#17616b;}
.aps-paper button:focus-visible,.aps-paper a:focus-visible,.aps-paper input:focus-visible{outline:3px solid #007f94;outline-offset:5px;}
.aps-paper-visual{position:relative;width:min(100%,930px);aspect-ratio:3/2;perspective:1800px;}
.aps-paper-photo{position:absolute;inset:0;margin:0;box-shadow:0 18px 40px #11222926;background:#d1d8d8;}
.aps-paper-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.aps-paper-flap{display:none;position:absolute;top:0;bottom:0;width:50%;transform-style:preserve-3d;}
.aps-paper-left{left:0;transform-origin:right center;}
.aps-paper-right{right:0;transform-origin:left center;}
.aps-paper-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;}
.aps-paper-front{background-repeat:no-repeat;background-size:200% 100%;}
.aps-paper-left .aps-paper-front{background-position:left center;}
.aps-paper-right .aps-paper-front{background-position:right center;}
.aps-paper-front::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0000,#000);opacity:var(--fold-shade,0);}
.aps-paper-right .aps-paper-front::after{background:linear-gradient(90deg,#000,#0000);}
.aps-paper-back{transform:rotateY(180deg);background:var(--paper);border:1px solid #cbc5b9;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(16px,3vw,38px);color:var(--ink);box-shadow:inset 0 0 28px #8a847226;}
.aps-paper-back::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#fff0 0 3px,#978d7410 3px 4px);opacity:.25;}
.aps-paper-back small{font:700 10px/1.4 Arial,sans-serif;letter-spacing:.15em;}
.aps-paper-back strong{font-size:clamp(28px,4.4vw,66px);line-height:.95;letter-spacing:-.06em;font-weight:800;}
.aps-paper-back span{font:500 11px/1.4 Arial,sans-serif;letter-spacing:.08em;border-top:1px solid #bcb6aa;padding-top:12px;}
.aps-paper-centerline{display:none;position:absolute;inset:0 auto 0 50%;width:1px;background:#000;opacity:var(--fold-crease,.08);pointer-events:none;}
.aps-paper-footer{width:min(100%,930px);display:grid;grid-template-columns:1fr auto;gap:20px;align-items:end;}
.aps-paper-footer h3{margin:0 0 6px;color:var(--ink);font-size:19px;line-height:1.2;}
.aps-paper-footer p{margin:0;font-size:14px;line-height:1.55;max-width:620px;color:#486168;}
.aps-paper-link{font-weight:750;white-space:nowrap;border-bottom:1px solid;padding:8px 0;text-decoration:none;}
.aps-paper-progress{width:min(100%,930px);height:2px;background:#c8c9be;overflow:hidden;display:none;}
.aps-paper-progress span{display:block;height:100%;width:100%;background:#227482;transform:scaleX(var(--paper-progress,1));transform-origin:left center;}
.aps-paper.aps-paper-layout{height:210svh;min-height:1300px;}
.aps-paper-layout .aps-paper-stage{position:sticky;top:78px;height:calc(100svh - 78px);min-height:0;gap:18px;padding-block:28px;}
.aps-paper-layout .aps-paper-visual{width:min(100%,calc((100svh - 360px)*1.5),930px);}
.aps-paper-enhanced .aps-paper-photo{opacity:0;pointer-events:none;}
.aps-paper-enhanced .aps-paper-flap,.aps-paper-enhanced .aps-paper-centerline,.aps-paper-enhanced .aps-paper-progress{display:block;}
.aps-paper-enhanced .aps-paper-left{transform:rotateY(var(--paper-left,-165deg));}
.aps-paper-enhanced .aps-paper-right{transform:rotateY(var(--paper-right,165deg));}
.aps-paper.aps-paper-static .aps-paper-progress{display:none;}
@media(max-width:980px),(max-height:599px){
 .aps-paper .aps-paper-stage{padding:36px 20px;gap:24px;}
 .aps-paper-head{display:block;}
 .aps-paper-tools{margin-top:18px;justify-content:flex-start;}
 .aps-paper-footer{grid-template-columns:1fr;gap:14px;}
 .aps-paper-link{justify-self:start;}
}
@media(prefers-reduced-motion:reduce){
 .aps-paper.aps-paper-layout{height:auto;min-height:0;}
 .aps-paper-layout .aps-paper-stage{position:static;height:auto;min-height:0;}
 .aps-paper-layout .aps-paper-visual{width:min(100%,930px);}
 .aps-paper-enhanced .aps-paper-photo{opacity:1;}
 .aps-paper-enhanced .aps-paper-flap,.aps-paper-enhanced .aps-paper-centerline,.aps-paper-enhanced .aps-paper-progress{display:none;}
}

/* Four complete A4 pages: no crop, no invented artwork, no mirrored type. */
.aps-sheran .aps-paper-visual{aspect-ratio:420/297;}
.aps-sheran h2{font-size:clamp(30px,3.5vw,46px);}
.aps-sheran .aps-paper-photo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;aspect-ratio:420/297;}
.aps-sheran .aps-paper-photo[hidden]{display:none;}
.aps-sheran .aps-paper-photo img,.aps-sheran .aps-paper-face img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;}
.aps-sheran .aps-paper-photo img{min-width:0;min-height:0;}
.aps-sheran .aps-paper-front{background:#fff;}
.aps-sheran .aps-paper-back{padding:0;border:0;display:block;box-shadow:none;background:#fff;}
.aps-sheran .aps-paper-back::after{display:none;}
.aps-sheran.aps-paper-layout .aps-paper-visual{width:min(100%,calc((100svh - 390px)*1.41414),930px);}
.aps-sheran .sheran-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.aps-sheran:not(.sheran-ready) .aps-paper-visual{aspect-ratio:auto;display:grid;gap:20px;}
.aps-sheran:not(.sheran-ready) .aps-paper-photo{position:relative;inset:auto;}
.sheran-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;}
.sheran-tabs[hidden]{display:none;}
.sheran-tabs button[aria-pressed=true]{background:#174e58;color:#fff;border-color:#174e58;}
.sheran-pages{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;color:#416167;}
.sheran-pages a{display:inline-block;padding:5px 8px;border:1px solid #aeb8b4;border-radius:3px;text-decoration:none;}
.aps-sheran .aps-paper-footer{gap:10px 20px;}
.aps-sheran .aps-paper-tools{max-width:490px;}
@media(max-width:980px),(max-height:599px){.sheran-tabs{justify-content:flex-start;}.aps-sheran .aps-paper-stage{gap:18px;}}
@media(prefers-reduced-motion:reduce){.aps-sheran.aps-paper-layout .aps-paper-visual{width:min(100%,930px);}}
