/* Hero carousel (hero-lab.js): framed portraits on a wide ring, turning slowly on the hero's white background. */
.hw{--w:clamp(124px,13.6vw,200px);--d:clamp(7px,.75vw,11px);--r:calc(var(--w) * 6.5); /* 36 frames: a ring wide enough that about nine are in view */
  position:relative;height:calc(var(--w) * 1.75);margin-top:clamp(18px,2.6vw,40px);overflow:hidden;perspective:2200px;perspective-origin:50% 46%;background:var(--white)}
/* both sides fade into the white page, so frames arrive from and leave into it */
.hw{-webkit-mask-image:linear-gradient(90deg,transparent 1%,#000 17%,#000 83%,transparent 99%);mask-image:linear-gradient(90deg,transparent 1%,#000 17%,#000 83%,transparent 99%)}

.hw .orbit{position:absolute;left:50%;top:50%;width:var(--w);height:var(--w);margin:calc(var(--w) / -2) 0 0 calc(var(--w) / -2);transform-style:preserve-3d;transform:translateZ(calc(var(--r) * -1))}
/* a white sheet through the middle of the ring hides the far half, so only frames facing you are seen */
.hw .orbit::before{content:"";position:absolute;left:-300vw;right:-300vw;top:-300%;bottom:-300%;background:#fff}
.hw .ring{position:absolute;inset:0;transform-style:preserve-3d;animation:hw-spin 240s linear infinite}
.hw.paused .ring{animation-play-state:paused}
@keyframes hw-spin{to{transform:rotateY(-360deg)}}

/* one frame = a shallow box: front face, four sides going back by --d, and its shadow on the wall behind */
.hw .fr{--frame:#151515;--side:#050505;--lip:rgba(255,255,255,.14);position:absolute;inset:0;transform-style:preserve-3d;
  transform:rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r))}
.hw .fr.white{--frame:#FBFAF7;--side:#D9D6CF;--lip:rgba(18,18,18,.1)}
.hw .face{position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.1),rgba(0,0,0,.14)),var(--frame);box-shadow:inset 0 0 0 1px var(--lip)}
.hw .fr.white .face{background:linear-gradient(135deg,#FFFFFF,#F1EFEA)}
/* the print sits a little below the frame's surface */
.hw .face img{position:absolute;inset:7%;width:86%;height:86%;object-fit:cover;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.35),inset 0 0 0 1px rgba(0,0,0,.2)}
.hw .glass{position:absolute;inset:7%;background:linear-gradient(128deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 32%,rgba(255,255,255,0) 68%,rgba(255,255,255,.07) 100%);box-shadow:inset 0 2px 5px rgba(0,0,0,.45),inset 0 0 0 1px rgba(0,0,0,.25)}
.hw .s{position:absolute;background:var(--side)}
.hw .s.l{left:0;top:0;width:var(--d);height:100%;transform-origin:0 50%;transform:rotateY(90deg);background:linear-gradient(90deg,var(--frame),var(--side))}
.hw .s.r{right:0;top:0;width:var(--d);height:100%;transform-origin:100% 50%;transform:rotateY(-90deg);background:linear-gradient(270deg,var(--frame),var(--side))}
.hw .s.t{left:0;top:0;height:var(--d);width:100%;transform-origin:50% 0;transform:rotateX(-90deg);background:var(--frame)}
.hw .s.b{left:0;bottom:0;height:var(--d);width:100%;transform-origin:50% 100%;transform:rotateX(90deg)}
.hw .sh{position:absolute;inset:4% 2% -9% 2%;transform:translateZ(calc(var(--d) * -1 - 2px));background:radial-gradient(closest-side,rgba(18,18,18,.5),rgba(18,18,18,.18) 62%,transparent);filter:blur(9px)}
@media(prefers-reduced-motion:reduce){.hw .ring{animation:none}}
