/* ---------------------------------------------------------------------------
   MCM custom engineering - 3D coverflow carousel
   Centre tile lit and forward, side tiles recede into the dark and loop endlessly.
   Desktop: mouse X drives scroll speed/direction. Mobile: auto-roll + gestures.
--------------------------------------------------------------------------- */
.cnc-reel{position:relative;border-top:1px solid var(--hairline);padding:96px 0 70px;overflow:hidden}
.cnc-reel .reel-head{max-width:var(--maxw);margin:0 auto 40px;padding:0 32px}
.cnc-reel .reel-head .eyebrow{color:var(--brass)}
.cnc-reel h2{font-size:clamp(30px,4vw,50px);line-height:1;margin:18px 0 12px}
.cnc-reel .reel-sub{color:var(--muted);max-width:56ch;font-size:15px}

/* the 3D stage */
.reel-stage{position:relative;height:560px;width:100%;
  perspective:1500px;perspective-origin:50% 45%;
  cursor:zoom-in;touch-action:pan-y;user-select:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%)}
.reel-track{position:absolute;inset:0;transform-style:preserve-3d}

/* wrapper holds the 3D stage AND a flat click catcher as siblings. The catcher must live
   OUTSIDE the stage because perspective + mask on the stage break pointer hit-testing inside it. */
.reel-wrap{position:relative;width:100%}
.reel-hit{position:absolute;top:0;bottom:0;left:0;right:0;z-index:60;
  background:transparent;border:0;padding:0;margin:0;cursor:zoom-in;appearance:none}

/* each tile is absolutely positioned; JS sets its transform every frame */
.reel-card{position:absolute;top:50%;left:50%;width:360px;height:300px;margin:-150px 0 0 -180px;
  border-radius:6px;overflow:hidden;
  will-change:transform,opacity,filter;backface-visibility:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,.55);cursor:zoom-in}
.reel-card img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.reel-card .rc-scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,14,17,0) 46%,rgba(11,14,17,.55) 74%,rgba(11,14,17,.96) 100%)}
.reel-card .rc-cap{position:absolute;left:0;right:0;bottom:0;padding:18px 18px;z-index:2;
  opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .35s ease}
.reel-card .rc-cap b{display:block;font-family:'industry','Archivo',sans-serif;font-weight:800;
  font-size:13px;letter-spacing:.13em;text-transform:uppercase;color:var(--brass);margin-bottom:4px}
.reel-card .rc-cap span{display:block;color:var(--body);font-size:13.5px;line-height:1.45}
/* only the centre (focused) card reveals its caption + brass hairline */
.reel-card.is-focus{cursor:zoom-in}
.reel-card.is-focus .rc-cap{opacity:1;transform:none}
.reel-card.is-focus{outline:1px solid rgba(176,141,87,.5);outline-offset:-1px}

.reel-hint{max-width:var(--maxw);margin:26px auto 0;padding:0 32px;color:var(--muted);font-size:12.5px;
  display:flex;align-items:center;gap:10px}
.reel-hint .dot{width:6px;height:6px;border-radius:50%;background:var(--brass);
  animation:reelpulse 2.2s var(--ease,cubic-bezier(.2,.7,.2,1)) infinite}
@keyframes reelpulse{0%,100%{opacity:.3}50%{opacity:1}}

/* lightbox (tap / click a tile) */
.reel-lb{position:fixed;inset:0;z-index:9999;background:rgba(6,9,12,.94);
  display:none;align-items:center;justify-content:center;padding:5vw;flex-direction:column;gap:16px}
.reel-lb.open{display:flex}
.reel-lb img{max-width:92vw;max-height:80vh;object-fit:contain;border-radius:4px;
  box-shadow:0 40px 90px rgba(0,0,0,.6)}
.reel-lb .lb-cap{color:var(--body);font-size:14px;text-align:center;max-width:60ch}
.reel-lb .lb-cap b{color:var(--brass);text-transform:uppercase;letter-spacing:.12em;font-size:12px;display:block;margin-bottom:4px;font-family:'industry','Archivo',sans-serif;font-weight:800}
.reel-lb .lb-close{position:absolute;top:20px;right:24px;background:none;border:1px solid var(--hairline);
  color:var(--offwhite);font-family:'industry','Archivo',sans-serif;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;font-size:12px;padding:9px 16px;border-radius:3px;cursor:pointer}

/* smaller stage + tiles on phones */
@media(max-width:760px){
  .reel-stage{height:440px;perspective:1050px}
  .reel-card{width:250px;height:210px;margin:-105px 0 0 -125px}
  .cnc-reel .reel-head,.reel-hint{padding:0 20px}
}
@media(max-width:400px){
  .reel-stage{height:400px}
  .reel-card{width:215px;height:180px;margin:-90px 0 0 -107px}
}

/* reduced motion: no auto-roll (JS checks this); make the stage a simple scroller feel */
@media(prefers-reduced-motion:reduce){
  .reel-card{transition:none}
  .reel-hint .dot{animation:none}
}
