/* Real tablets retain their perspective slot transforms during opening. */
.responsive-hero .stage figure[data-opening-tablet]{aspect-ratio:452/263;border:0;padding:0;background:transparent;box-shadow:none}
.responsive-hero .stage [data-opening-tablet] img{border-radius:0}
.responsive-hero .stage .active-tablet{transform:translate(-50%,-50%) rotateY(0deg) rotate(0deg)}

.carousel-layout-v001{position:relative;width:min(1420px,calc(100% - 24px));margin-inline:auto}
.carousel-layout-v001 .stage{width:calc(100% - 104px)}
.carousel-layout-v001 .carousel-controls{position:static}
.carousel-layout-v001 .carousel-prev,.carousel-layout-v001 .carousel-next{position:absolute;z-index:10;top:calc((100% - 44px)/2);transform:translateY(-50%);background:#fcfaf6}
.carousel-layout-v001 .carousel-prev{left:0}
.carousel-layout-v001 .carousel-next{right:0}
@media(max-width:600px){.carousel-layout-v001{width:calc(100% - 16px)}.carousel-layout-v001 .stage{width:calc(100% - 88px)}}

.expertise-overlap{isolation:isolate}
.expertise-overlap .responsive-hero{position:relative;z-index:0}
.expertise-overlap .band{position:relative;z-index:1}
#expertise{position:relative;z-index:2;color:#fcfaf5;background:#11191d linear-gradient(90deg,#10181be8,#10181bb0),url("../assets/expertise-atelier.webp") center 60%/cover no-repeat}
#expertise{background:linear-gradient(90deg,#10181beb,#10181baf),url("../assets/expertise-atelier.webp") center 60%/cover no-repeat,#11191d}
#expertise .tag,#expertise .services small{color:#f2bd64}
#expertise .intro,#expertise .services p{color:#ece6db}
#expertise .services article{border-color:#e4d8c55c}
#expertise .wrap{position:relative}
@media(max-width:620px){#expertise{background:linear-gradient(#10181bd9,#10181be8),url("../assets/expertise-atelier.webp") 68% center/cover no-repeat,#11191d}}
@media(prefers-reduced-motion:reduce){.expertise-overlap.is-ready .responsive-hero{position:static}}

/* Independent gutters keep the moving fan away from both 44 px circles. */
.carousel-layout-v001 .stage{width:calc(100% - 176px);max-width:var(--stage-width,1250px)}
.carousel-layout-v001 .carousel-prev,.carousel-layout-v001 .carousel-next{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;display:grid;place-items:center;top:var(--arrow-y,calc((100% - 44px)/2));font-size:20px}
@media(max-width:999px){.carousel-layout-v001 .stage{width:calc(100% - 128px)}}
/* Below this height (or at strong zoom), use the normal document flow. */
@media(min-width:1000px) and (min-height:640px){
  .responsive-hero.is-viewport-fit{height:calc(100svh - 85px);padding:12px 0 64px;display:flex;flex-direction:column;align-items:center}
  .responsive-hero.is-viewport-fit>.tag{margin-bottom:10px}
  .responsive-hero.is-viewport-fit h1{font-size:clamp(44px,6.7svh,70px);flex:none}
  .responsive-hero.is-viewport-fit .hero-copy{font-size:15px;line-height:1.5;margin:8px auto 12px;flex:none}
  .responsive-hero.is-viewport-fit .hero-actions{flex:none}
  .responsive-hero.is-viewport-fit .carousel-layout-v001{display:flex;flex-direction:column;flex:1;min-height:100px}
  .responsive-hero.is-viewport-fit .stage{height:auto;min-height:50px;flex:1;margin-top:12px;margin-bottom:8px}
  .responsive-hero.is-viewport-fit .carousel-controls{flex:none;min-height:44px}
}
/* The arrows follow the fan when a short viewport makes it narrower. */
.carousel-layout-v001{max-width:calc(var(--stage-width,1250px) + 176px)}
@media(max-width:999px){.carousel-layout-v001{max-width:calc(var(--stage-width,1250px) + 128px)}}

/* Circular orbit: native 3D transforms, driven by one continuous angular value. */
.responsive-hero .stage.ring-ready{perspective:1000px}
.responsive-hero .stage.ring-ready figure{top:59%;width:40%;max-width:none;transition:none;transform:translate(-50%,-50%) translate3d(var(--ring-x),var(--ring-y),var(--ring-z)) rotateY(var(--ring-yaw)) rotate(var(--ring-tilt)) scale(var(--ring-scale));filter:brightness(var(--ring-light));will-change:transform}
@media(max-width:999px){.responsive-hero .stage.ring-ready figure{width:43%}}

.stage.ring-ready{touch-action:pan-y pinch-zoom}
.stage.ring-ready figure{cursor:grab;user-select:none;-webkit-user-select:none}
.stage.ring-ready.is-dragging figure{cursor:grabbing}

/* The workshop moves inside its own clipped section; the page stays in normal flow. */
#expertise.has-background-scroll{isolation:isolate;overflow:clip;background:#11191d}
#expertise.has-background-scroll::before{content:"";position:absolute;inset:-420px 0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#10181beb,#10181baf),url("../assets/expertise-atelier.webp") center 60%/cover no-repeat;transform:translateY(var(--expertise-shift,0px))}
@media(max-width:620px){#expertise.has-background-scroll::before{background:linear-gradient(#10181bd9,#10181be8),url("../assets/expertise-atelier.webp") 68% center/cover no-repeat}}
@media(prefers-reduced-motion:reduce){#expertise.has-background-scroll::before{transform:none}}

/* Mobile-only layout: 359px stage × .507 = 182px central tablet at 375px. */
@media(max-width:600px){
 .carousel-layout-v001 .stage{width:100%;height:clamp(150px,45vw,190px);margin:14px auto 12px}
 .responsive-hero .stage.ring-ready figure{width:50.7%}
 .carousel-layout-v001 .carousel-controls{position:static;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px}
 .carousel-layout-v001 .carousel-prev,.carousel-layout-v001 .carousel-next{position:static;transform:none;flex:0 0 44px}
 .carousel-layout-v001 .carousel-preview{max-width:calc(100% - 108px);min-width:145px}
}
