/* The original horizontal rails remain usable if JavaScript is unavailable. */
.dds-home .testimonials-section{display:block;padding:clamp(2rem,4vw,3.5rem) var(--home-gutter);overflow:hidden}
.dds-home .testimonials-heading{max-width:1180px;margin:0 auto 1rem;padding:0}
.dds-home .testimonials-section [data-controls="testimonials-track"],.dds-home .testimonials-section .testimonials-dots{display:flex;max-width:1180px;margin-inline:auto;grid-column:auto}
.dds-home .testimonials-section .testimonials-dots{justify-content:center}

/* Each layer is an actual review or illustration, never a background duplicate. */
.dds-home .testimonials-content.is-stacked,
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked{
  position:relative;display:block;width:100%;margin-inline:auto;padding:0;
  overflow:hidden;scroll-snap-type:none;touch-action:pan-y;isolation:isolate;
}
.dds-home .testimonials-content.is-stacked{max-width:1100px;background:transparent}
.dds-home .testimonials-content.is-stacked .testimonial,
.dds-home .testimonials-content.is-stacked .testimonial+.testimonial,
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure,
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .illustration-piments{
  position:absolute;top:22px;left:50%;box-sizing:border-box;margin:0;
  z-index:var(--stack-z,0);opacity:var(--stack-opacity,0);
  filter:blur(var(--stack-blur,0px));
  transform:translateX(calc(-50% + var(--stack-x,0%))) scale(var(--stack-scale,1));
  transform-origin:center center;
  transition:transform 450ms cubic-bezier(.22,.72,.2,1),filter 450ms ease,opacity 450ms ease,box-shadow 450ms ease;
}
.dds-home .testimonials-content.is-stacked:not(.is-ready) .testimonial,
body[data-project="mash-moum"] .curated-illustrations.is-stacked:not(.is-ready) .story-figure{transition:none}
.dds-home .testimonials-content.is-stacked .testimonial,
.dds-home .testimonials-content.is-stacked .testimonial+.testimonial{
  display:flex;flex-direction:column;justify-content:center;align-items:stretch;
  flex:none;width:min(520px,68vw);min-height:var(--stack-card-height,350px);
  padding:clamp(1.4rem,3vw,2.3rem);border:0;border-radius:1.4rem;
  box-shadow:0 9px 25px #411b2824;
}
.dds-home .testimonials-content.is-stacked .testimonial.is-centered{box-shadow:0 20px 42px #411b2840}
.dds-home .testimonials-content.is-stacked .testimonial blockquote{font:400 clamp(1.2rem,1.9vw,1.55rem)/1.45 var(--serif);margin:0 0 1.5rem}
.dds-home .testimonials-content.is-stacked .testimonial:focus-within{filter:none}

body[data-project="mash-moum"] .illustration-stage{margin-top:clamp(1.5rem,3vw,2.5rem);border-radius:1.5rem;background:#e4d7b9;overflow:hidden}
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked{max-width:none}
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure,
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .illustration-piments{
  flex:none;width:min(520px,60vw);border-radius:1.1rem;
  background:#fff8ee;box-shadow:0 9px 25px #371b2326;
  overflow:hidden;
}
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure.is-active{box-shadow:0 20px 42px #371b2340}
body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure:focus-within{filter:none}
body[data-project="mash-moum"] .illustration-stage .story-figure button,
body[data-project="mash-moum"] .illustration-stage .story-figure:first-child button{padding:0;border-radius:0;background:#fff8ee}
body[data-project="mash-moum"] .illustration-stage .story-figure img,
body[data-project="mash-moum"] .illustration-stage .story-figure:first-child img{
  display:block;width:100%;height:auto;aspect-ratio:1;max-height:none;object-fit:contain;
}
body[data-project="mash-moum"] .illustration-stage figcaption{min-height:3.4rem;padding:.75rem 1rem;color:#4d1a1c;background:#fff8ee}
.illustration-navigation{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.8rem;color:#651d20}
.stack-status{margin:0;font:400 .875rem/1.4 'DM Sans',Arial,sans-serif}
.stack-arrows{display:flex;gap:.65rem}
.stack-arrows button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #651d20;border-radius:50%;background:transparent;color:#651d20;font:400 1.6rem/1 Georgia,serif;cursor:pointer}
.stack-arrows button:hover{background:#651d20;color:#fff4ea}
.stack-arrows button:focus-visible{outline:2px solid #651d20;outline-offset:3px}
body[data-project="mash-moum"] .illustration-controls{margin-top:.45rem}

@media(max-width:700px){
  .dds-home .testimonials-section{padding:1.6rem var(--home-gutter) 2rem}
  .dds-home .testimonials-content.is-stacked .testimonial,
  .dds-home .testimonials-content.is-stacked .testimonial+.testimonial{width:82vw;min-height:var(--stack-card-height,300px);padding:1.4rem}
  .dds-home .testimonials-content.is-stacked .testimonial blockquote{font-size:clamp(1.2rem,5.5vw,1.45rem);line-height:1.47}
  body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked{margin:0;padding:0}
  body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure,
  body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .illustration-piments{width:min(76vw,420px)}
}
@media(prefers-reduced-motion:reduce){
  .dds-home .testimonials-content.is-stacked .testimonial,
  .dds-home .testimonials-content.is-stacked .testimonial+.testimonial,
  body[data-project="mash-moum"] .illustration-stage .curated-illustrations.is-stacked .story-figure{transition:none}
}
