/* ============================================================
   Cinematic depth for the homepage panels (2026-11-14, Alex: "it is still a bit flat ... make it 3D-ish, rolling with the scroll").
   assets/cinema.js adds the classes below to a few big blocks and sets --rx / --ty / --sc / --sw / --swo / --shy / --shb / --sha on them while they scroll:
   - a stack of 1px shadows under the block = the slab's thickness (big / mid / thin)
   - the block leans away as it enters from below, lies perfectly FLAT when it is in the middle of the screen (text stays sharp) and leans a little toward you as it leaves
   - the shadow grows and softens as it comes toward you; one soft light sweep crosses the face of the big ones as they settle
   - on the Meet Curio card, Curio's picture stands a little in front of the card
   Not applied for visitors who asked for less motion (the script does not start and nothing here changes anything without its classes). ============================================================ */
.hp-curio-in.solo{perspective:1100px; perspective-origin:50% 40%;}

.cinema{position:relative; transition:box-shadow .25s ease, border-color .25s ease, translate .25s ease !important;}   /* translate = the small hover lift of a card (styles.css, "Depth") */
.cinema:not(#hpMeetCard){transform:perspective(1100px) translate3d(0,var(--ty,0px),0) rotateX(var(--rx,0deg)) scale(var(--sc,1)); transform-origin:50% 100%;}
.cinema-live{will-change:transform;}

/* thickness + shadow */
.cinema-big{
  box-shadow:0 1px 0 #E3D5F3, 0 2px 0 #DDCDEF, 0 3px 0 #D7C5EB, 0 4px 0 #D1BDE7, 0 5px 0 #CBB5E3, 0 6px 0 #C5AEDF,
    0 var(--shy,22px) var(--shb,34px) -18px rgba(47,2,78,var(--sha,.42));}
.cinema-mid{
  box-shadow:0 1px 0 #E6DAF4, 0 2px 0 #DFD0F0, 0 3px 0 #D8C8EC, 0 4px 0 #D2C0E8,
    0 var(--shy,20px) var(--shb,32px) -18px rgba(47,2,78,var(--sha,.34));}
.cinema-thin{
  box-shadow:0 1px 0 #E8DDF5, 0 2px 0 #E0D3F1, 0 3px 0 #D9CAED,
    0 var(--shy,14px) var(--shb,26px) -16px rgba(47,2,78,var(--sha,.28));}

/* the Meet Curio card itself keeps its own transform (it needs the 3D context for Curio's lift) */
#hpMeetCard.cinema{transform-style:preserve-3d; transform-origin:50% 100%; transform:translate3d(0,var(--ty,0px),0) rotateX(var(--rx,0deg)) scale(var(--sc,1));}
#hpMeetCard .hp-mc-pic{transform:translateZ(34px);}
#hpMeetCard .hp-mc-body{transform:translateZ(10px);}

/* one soft light sweep */
.cinema-sweep::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 62%);
  background-size:320% 100%; background-repeat:no-repeat; background-position:var(--sw,120%) 0; opacity:var(--swo,0); mix-blend-mode:soft-light;}

@media (max-width:700px){
  .hp-curio-in.solo{perspective:800px;}
  #hpMeetCard .hp-mc-pic{transform:translateZ(22px);}
  .cinema:not(#hpMeetCard){transform:perspective(800px) translate3d(0,var(--ty,0px),0) rotateX(var(--rx,0deg)) scale(var(--sc,1));}
}
@media (prefers-reduced-motion:reduce){
  .cinema:not(#hpMeetCard),#hpMeetCard.cinema{transform:none !important; will-change:auto;}
  .cinema-sweep::after{display:none;}
  #hpMeetCard .hp-mc-pic,#hpMeetCard .hp-mc-body{transform:none;}
}
