/* V17 — flexible packaging is a full product direction, with authentic packs. */
.flex-feature{
 position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1.15fr;
 align-items:center;min-height:420px;margin:10px 0 64px;padding:46px 4%;
 overflow:hidden;background:var(--orange);color:#fff;text-decoration:none;
 transition:background .4s ease;
}
.flex-feature-copy{position:relative;z-index:3;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:35px}
.flex-feature-title{max-width:8.7ch;margin:0;font-size:clamp(46px,5.7vw,90px);line-height:1.04;letter-spacing:-.035em;font-weight:500;text-transform:uppercase;text-wrap:balance}
.flex-feature-copy>p{max-width:310px;margin:0;font-size:clamp(17px,1.35vw,20px);line-height:1.55;letter-spacing:-.012em;text-wrap:pretty}
.flex-feature-media{position:relative;align-self:stretch;min-width:0;min-height:330px;pointer-events:none}
.flex-feature-pack{position:absolute;display:block;width:75%;height:115%;object-fit:contain;top:-5%;filter:drop-shadow(0 16px 15px #2a080c24);transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.flex-feature-pack-fresh{left:-9%;z-index:1;transform:rotate(-14deg)}
.flex-feature-pack-bread{right:-9%;top:0;z-index:2;transform:rotate(13deg)}
.flex-feature-pack-grain{left:18%;top:3%;z-index:3;transform:rotate(-2deg)}
.flex-feature-arrow{position:absolute;right:28px;top:26px;z-index:4;display:grid;place-items:center;width:38px;height:38px;pointer-events:none}
.flex-feature-arrow svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.flex-feature:focus-visible{outline:2px solid var(--ink);outline-offset:6px}
@media(hover:hover){
 .flex-feature:hover{background:#c9442e;color:#fff}
 .flex-feature:hover .flex-feature-pack-fresh{transform:translate(-10px,-5px) rotate(-18deg)}
 .flex-feature:hover .flex-feature-pack-bread{transform:translate(10px,-4px) rotate(17deg)}
 .flex-feature:hover .flex-feature-pack-grain{transform:translateY(-10px) rotate(1deg)}
 .flex-feature:hover .flex-feature-arrow svg{transform:translate(2px,-2px)}
}

/* Slider names stay readable, and the control icon does not move on hover. */
.flex-materials{display:grid;grid-template-columns:1.2fr 1fr;align-items:start;gap:28px 48px;margin-top:36px;padding-top:28px;border-top:1px solid var(--flex-line);text-align:left}
.flex-materials>div{min-width:0}
.flex-materials h3{margin:0 0 16px;font-size:clamp(18px,1.5vw,23px);line-height:1.45;font-weight:500;letter-spacing:0;text-wrap:pretty}
.flex-materials ul{display:flex;flex-wrap:wrap;gap:12px clamp(16px,2.5vw,38px);margin:0;padding:0;list-style:none}
.flex-materials li{font-size:clamp(24px,2.5vw,38px);line-height:1.2;font-weight:500;letter-spacing:.015em;white-space:nowrap;color:var(--orange)}
.flex-materials p{max-width:38ch;margin:0;font-size:clamp(16px,1.25vw,20px);line-height:1.65;color:#585858;text-wrap:pretty}
.flex-materials p+p{margin-top:6px}
@media(max-width:760px){.flex-materials{grid-template-columns:1fr;gap:28px;margin-top:28px;padding-top:24px}.flex-materials h3{margin-bottom:12px}.flex-materials li{font-size:26px}}
.flex-thumbs{grid-template-columns:repeat(6,minmax(max-content,1fr));overflow-x:auto;max-width:100%}
.flex-thumbs .flex-thumb>.flex-thumb-label{font-size:13px;line-height:1.4;font-weight:500;max-width:none;min-width:0;flex:0 0 auto;letter-spacing:0;white-space:nowrap;overflow-wrap:normal}
.flex-thumbs .flex-thumb{min-height:84px;gap:9px}
/* Each box follows the pack's visible alpha bounds, not its 1254px canvas.
   Crop dimensions and source offsets are emitted by the local builder. */
.flex-thumbs .flex-thumb>.flex-thumb-crop{position:relative;display:block;overflow:hidden;flex:0 0 auto;min-width:0;max-width:none;width:var(--flex-thumb-lg-w);height:var(--flex-thumb-lg-h);padding:0;margin:0;font-size:0;line-height:0}
.flex-thumbs .flex-thumb>.flex-thumb-crop>.flex-thumb-source{position:absolute;display:block;flex:none;max-width:none;max-height:none;min-width:0;width:var(--flex-thumb-img-w);height:var(--flex-thumb-img-h);left:var(--flex-thumb-img-x);top:var(--flex-thumb-img-y);object-fit:fill;object-position:50% 50%;transform:none}
@media(max-width:1050px){.flex-thumbs .flex-thumb>.flex-thumb-crop{width:var(--flex-thumb-md-w);height:var(--flex-thumb-md-h)}}
@media(max-width:760px){.flex-thumbs .flex-thumb>.flex-thumb-crop{width:var(--flex-thumb-sm-w);height:var(--flex-thumb-sm-h)}}
.flex-controls button{padding:0;display:grid;place-items:center;line-height:1;transition:background .25s ease,border-color .25s ease,color .25s ease}
.flex-controls button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transform:none}
.flex-controls button:is(:hover,:focus-visible){transform:none;background:var(--orange);border-color:var(--orange);color:#fff}
.flex-controls button:is(:hover,:focus-visible) svg{transform:none}
@media(max-width:1100px){
 .flex-feature{min-height:360px;padding:36px 3.5%;margin-bottom:48px;grid-template-columns:1fr 1fr}
 .flex-feature-title{font-size:clamp(42px,5.5vw,64px)}
 .flex-feature-media{min-height:290px}
 .flex-feature-copy>p{font-size:17px;max-width:270px}
 /* Each top line follows its own name/picture width. Long labels grow their
    own track rather than wrapping or forcing all six buttons equally wide. */
 .flex-thumbs{grid-template-columns:repeat(6,max-content);overflow-x:auto;max-width:100%;padding-bottom:9px;scroll-padding-inline:1px;scrollbar-width:thin;overscroll-behavior-x:contain}
 .flex-thumbs .flex-thumb{padding:12px 10px;gap:10px;min-width:166px;min-height:80px;justify-content:center}
 .flex-thumbs .flex-thumb img{flex-shrink:0}
}
@media(max-width:650px){
 .flex-feature{grid-template-columns:1fr;gap:4px;min-height:0;padding:30px 24px 20px;margin:6px 0 42px}
 .flex-feature-copy{gap:20px}
 .flex-feature-title{font-size:clamp(40px,10vw,61px);width:100%;max-width:none;padding-right:30px}
 .flex-feature-copy>p{font-size:16px;line-height:1.5;max-width:280px;padding-right:5px}
 .flex-feature-media{height:245px;min-height:245px;margin:4px -8px 0}
 .flex-feature-pack{height:116%;width:72%;top:-6%}
 .flex-feature-pack-fresh{left:-5%;top:-6%}
 .flex-feature-pack-bread{right:-4%;top:-1%}
 .flex-feature-pack-grain{left:16%;top:1%}
 .flex-feature-arrow{top:23px;right:17px;width:30px;height:30px}
 .flex-feature-arrow svg{width:25px;height:25px}
 .flex-thumbs{gap:7px}
 .flex-thumbs .flex-thumb{justify-content:center;min-width:170px;min-height:80px}
 .flex-thumbs .flex-thumb>.flex-thumb-label{font-size:13px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){
 .flex-feature,.flex-feature-pack,.flex-feature-arrow svg,.flex-controls button{transition:none}
 .flex-feature:hover .flex-feature-pack-fresh{transform:rotate(-14deg)}
 .flex-feature:hover .flex-feature-pack-bread{transform:rotate(13deg)}
 .flex-feature:hover .flex-feature-pack-grain{transform:rotate(-2deg)}
 .flex-feature:hover .flex-feature-arrow svg{transform:none}
}
