/* Ten complete, outpainted portfolio covers; controls stay within the full viewport. */
body[data-theme="works"] .hero.gal-hero[data-works-carousel]{width:100%;height:100svh!important;min-height:620px!important;margin:0;isolation:isolate;touch-action:pan-y;background:#171223}
body[data-theme="works"] [data-works-carousel] .works-hero-stage{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;animation:none!important;transform:none!important;filter:none;background:none}
[data-hero-slide]{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;z-index:0;overflow:hidden}
[data-hero-slide] img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--focal,50% 50%);max-width:none;user-select:none}
[data-hero-slide].is-active{visibility:visible;opacity:1;z-index:2}
[data-hero-slide].is-leaving{visibility:visible;opacity:1;z-index:1}
.is-ready[data-direction] [data-hero-slide].is-active{animation:hero-reveal-next .8s cubic-bezier(.2,.7,.2,1) both}
.is-ready[data-direction="prev"] [data-hero-slide].is-active{animation-name:hero-reveal-prev}
.is-ready [data-hero-slide].is-active img{animation:hero-drift 4.3s linear both}
.is-user-paused [data-hero-slide].is-active img{animation-play-state:paused}
@keyframes hero-reveal-next{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
@keyframes hero-reveal-prev{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes hero-drift{from{transform:scale(1.025)}to{transform:scale(1)}}
body[data-theme="works"] [data-works-carousel]::after{z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(17,11,30,.62),rgba(17,11,30,.12) 47%,transparent 72%),linear-gradient(0deg,rgba(17,11,30,.8),transparent 43%),linear-gradient(180deg,rgba(17,11,30,.46),transparent 20%)}
body[data-theme="works"] [data-works-carousel] .wrap{z-index:3;width:calc(100% - 12vw);max-width:none;padding-bottom:clamp(200px,24svh,260px);pointer-events:none}
body[data-theme="works"] [data-works-carousel] h1{font-size:clamp(56px,7vw,116px)!important;margin:18px 0 20px;text-shadow:0 2px 24px #0003}
body[data-theme="works"] [data-works-carousel] .wrap>p{font-size:clamp(16px,1.4vw,22px)!important;margin:0;max-width:540px!important}
.hero-work-meta{position:absolute;z-index:4;left:6vw;bottom:110px;max-width:46%;color:#fff;text-shadow:0 1px 12px #0008}
.hero-work-meta small{display:block;font-size:12px;letter-spacing:.16em;margin-bottom:10px;color:#e6d8ff}
.hero-work-meta strong{display:block;font-size:clamp(17px,1.6vw,24px);font-weight:500;line-height:1.4}
.hero-carousel-controls{position:absolute;z-index:4;right:6vw;bottom:110px;display:none;align-items:center;gap:12px;color:#fff}
.is-ready .hero-carousel-controls{display:flex}
.hero-carousel-controls button{appearance:none;display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;min-width:50px;padding:0 18px;border:1px solid #ffffff60;border-radius:99px;color:#fff;background:#17122360;backdrop-filter:blur(10px);font:inherit;font-size:14px;cursor:pointer;transition:background .2s,border-color .2s}
.hero-carousel-controls button:hover{background:#7854c9;border-color:#fff}
.hero-carousel-controls button:focus-visible,.hero-scroll-cue:focus-visible{outline:3px solid #dccbff;outline-offset:5px}
.hero-carousel-count{font:14px/1.2 system-ui,sans-serif;letter-spacing:.12em;min-width:65px;text-align:center}
.hero-carousel-count b{font-size:21px;font-weight:500}.hero-carousel-count span{opacity:.65}
.hero-control-arrow{font-size:24px;line-height:1}
.hero-swipe-tip{position:absolute;right:0;top:calc(100% + 12px);font-size:11px;letter-spacing:.08em;opacity:.8;white-space:nowrap}
.hero-carousel-controls [data-hero-pause]{padding:0;min-width:44px;min-height:44px;border-color:transparent;background:transparent}
.hero-pause-icon{font-size:15px}.is-paused .hero-pause-icon{font-size:0}.is-paused .hero-pause-icon::after{content:'▶';font-size:15px}
.hero-scroll-cue{position:absolute;z-index:4;bottom:27px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;min-height:44px;padding:0 22px;border:1px solid #ffffff55;border-radius:99px;background:#17122370;backdrop-filter:blur(10px);font-size:13px;letter-spacing:.12em;color:#fff!important;text-decoration:none;white-space:nowrap}
.hero-scroll-cue span:last-child{font-size:20px;animation:hero-scroll-nudge 1.6s ease-in-out infinite}
@keyframes hero-scroll-nudge{0%,100%{transform:translateY(-3px)}50%{transform:translateY(3px)}}
.hero-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#works-content{scroll-margin-top:70px}
html.fx-off .is-ready [data-hero-slide].is-active,html.fx-off .is-ready [data-hero-slide].is-active img{animation:none!important;clip-path:none!important;transform:none!important}
html.fx-off .hero-scroll-cue span:last-child{animation:none!important}
@media(max-width:900px){
 body[data-theme="works"] .hero.gal-hero[data-works-carousel]{min-height:600px!important}
 body[data-theme="works"] [data-works-carousel] .wrap{width:calc(100% - 48px);padding-bottom:275px}
 body[data-theme="works"] [data-works-carousel] h1{font-size:clamp(48px,10vw,80px)!important}
 body[data-theme="works"] [data-works-carousel] .wrap>p{max-width:350px!important;font-size:16px!important}
 [data-hero-slide] img{object-position:var(--mobile-focal,var(--focal,50% 50%))}
 .hero-work-meta{left:24px;right:24px;bottom:206px;max-width:none}.hero-work-meta small{font-size:10px;margin-bottom:7px}.hero-work-meta strong{font-size:17px}
 .hero-carousel-controls{left:24px;right:auto;bottom:129px;gap:9px}.hero-carousel-controls button{min-height:46px;min-width:46px;padding:0 14px}
 .hero-swipe-tip{left:0;right:auto;top:calc(100% + 10px)}
 .hero-scroll-cue{bottom:65px;font-size:11px;padding:0 16px;min-height:38px}
 body[data-theme="works"] [data-works-carousel]::after{background:linear-gradient(0deg,rgba(17,11,30,.88),rgba(17,11,30,.24) 66%,rgba(17,11,30,.35))}
}
@media(max-height:650px) and (min-width:901px){body[data-theme="works"] [data-works-carousel] .wrap{padding-bottom:200px}body[data-theme="works"] [data-works-carousel] h1{font-size:64px!important}}
@media(prefers-reduced-motion:reduce){.is-ready [data-hero-slide].is-active,.is-ready [data-hero-slide].is-active img,.hero-scroll-cue span:last-child{animation:none!important;transform:none;clip-path:none}}
