/* A compact full-screen food film: natural scroll, contained art, clear controls. */
.flavour-story{position:relative;height:370svh;min-height:1850px;background:#fff4d2;color:#0d002c;border-block:1px solid #eddda9;isolation:isolate;--story-open:0;--story-meal:0}
.story-sticky{position:sticky;top:96px;box-sizing:border-box;height:calc(100svh - 96px);max-height:920px;display:grid;grid-template-columns:.72fr 1.28fr;grid-template-rows:1fr auto;align-items:center;gap:18px;padding:34px clamp(24px,5vw,80px) 26px;overflow:hidden;background:radial-gradient(ellipse at 72% 46%,#ffcd0033,transparent 62%)}
.story-copy{position:relative;z-index:3;max-width:420px}.story-copy>.section-label{font-size:10px;letter-spacing:.02em}.story-copy h2{font-size:clamp(29px,4vw,54px);line-height:1.6;margin:18px 0}.story-copy h2>span{color:#ce0077}.story-copy>p{font-size:12px;line-height:2;color:#685971}.story-phase-title{font-size:clamp(19px,2.25vw,27px);line-height:1.7;margin:18px 0 12px;color:#0d002c;min-height:54px}.story-counter{display:block;color:#aa8d43;font-size:10px;letter-spacing:.2em;margin-top:22px}.story-steps{display:flex;gap:10px;list-style:none;padding:0;margin:15px 0;font-size:10px;flex-wrap:wrap}.story-steps li{color:#8c7b8f;display:flex;align-items:center;gap:5px}.story-steps li::before{content:'';height:5px;width:5px;border-radius:50%;background:#d6c8cf}.story-steps .is-current{color:#0d002c;font-weight:bold}.story-steps .is-current::before{background:#d50079;box-shadow:0 0 0 4px #fe019411}
.story-stage{position:relative;width:100%;height:100%;min-height:0;direction:ltr;z-index:1;transform-style:flat}.story-stage::before{content:'';position:absolute;width:85%;aspect-ratio:1;border-radius:50%;border:1px solid #e7d394;left:7.5%;top:48%;transform:translateY(-50%) scale(calc(1 - var(--story-open)*.12));background:radial-gradient(circle,#ffcd0026,transparent 68%);z-index:-1}.story-stage::after{content:'';position:absolute;left:22%;right:22%;bottom:10%;height:22px;border-radius:50%;background:#8b4d191a;filter:blur(14px);opacity:calc(.4 + var(--story-meal)*.6);transform:scaleX(calc(.6 + var(--story-meal)*.5));z-index:-1}
.story-layer,.story-side{position:absolute;left:50%;top:46%;background-repeat:no-repeat;pointer-events:none;will-change:transform,opacity;transform:translate(-50%,-50%);opacity:0;filter:drop-shadow(0 7px 6px #61330913);backface-visibility:hidden}.story-layer{background-image:url('assets/motion/burger-atlas.webp')}.story-whole{position:absolute;left:50%;top:46%;height:auto;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none;z-index:30;will-change:transform,opacity;filter:drop-shadow(0 15px 12px #6d361021)}.story-side{background-image:url('assets/motion/meal-sides.webp')}.story-side[data-side=pepsi]{left:82%;top:34%;z-index:10}.story-side[data-side=fries]{left:24%;top:44%;z-index:11}.story-side[data-side=strip]{left:18%;top:72%;z-index:33}.story-side[data-side=hash]{left:81%;top:72%;z-index:34}.story-side[data-side=sauce-orange]{left:40%;top:86%;z-index:36}.story-side[data-side=sauce-white]{left:61%;top:86%;z-index:37}
.story-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:4;padding-top:15px;border-top:1px solid #e4d2a3}.story-footer .button{border-radius:100px;min-height:46px;white-space:nowrap}.story-footer>a:not(.button){font-size:11px;color:#6d5c77;text-decoration:underline;text-underline-offset:5px}.story-progress{position:absolute;inset-inline:0;bottom:0;height:3px;background:#ecdfbf;direction:ltr}.story-progress span{height:100%;display:block;width:0;background:#fe0194}.story-stage-label{position:absolute;left:50%;bottom:1%;transform:translateX(-50%);font-family:Montserrat,sans-serif;font-size:9px;letter-spacing:.14em;white-space:nowrap;color:#9a824f}.menu-preview-dialog{max-width:min(94vw,1100px);max-height:90svh;padding:50px 16px 16px;border-radius:18px}.menu-preview-dialog img{display:block;width:auto;max-width:100%;max-height:calc(90svh - 80px);object-fit:contain;margin:auto}.preview-only-image{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
@media(max-width:800px){.flavour-story{height:370svh;min-height:1600px}.story-sticky{top:84px;height:calc(100svh - 84px - 86px - env(safe-area-inset-bottom,0px));max-height:none;padding:13px 16px 12px;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:0;background:radial-gradient(ellipse at 50% 48%,#ffcd002b,transparent 64%)}.story-copy{max-width:none;text-align:center}.story-copy h2{font-size:25px;line-height:1.5;margin:5px 0 0}.story-copy h2 br{display:none}.story-copy>.section-label{font-size:9px}.story-copy>p,.story-counter{display:none}.story-phase-title{font-size:15px;min-height:26px;margin:3px 0;line-height:1.6}.story-steps{justify-content:center;gap:9px;font-size:9px;margin:6px 0 2px}.story-stage{min-height:0}.story-stage-label{font-size:7px;bottom:0}.story-footer{gap:12px;padding-top:9px;margin-top:7px;justify-content:center}.story-footer .button{font-size:11px;padding:10px 20px;gap:10px}.story-footer>a:not(.button){font-size:9px}.story-stage::before{width:79%;left:10.5%}}
@media(max-height:650px) and (max-width:800px){.story-copy h2{font-size:21px}.story-copy>.section-label,.story-steps{display:none}.story-phase-title{font-size:14px;margin:1px 0}.story-sticky{padding-top:8px}.story-stage-label{display:none}.story-footer .button{min-height:40px;font-size:10px}.story-footer>a:not(.button){font-size:8px}}
@media(prefers-reduced-motion:reduce){.flavour-story{height:auto;min-height:0}.story-sticky{position:relative;top:auto;height:auto;min-height:580px}.story-stage{height:440px}.story-layer,.story-side,.story-whole{will-change:auto}.story-progress{display:none}@media(max-width:800px){.story-sticky{min-height:0}.story-stage{height:340px}}}

.story-layer[data-ingredient="bun"]{aspect-ratio:394/198;background-size:318.2741% 633.3333%;background-position:1.7442% 12.5947%;z-index:27;}
.story-layer[data-ingredient="onions"]{aspect-ratio:384/104;background-size:326.5625% 1205.7692%;background-position:50.3448% 18.2609%;z-index:26;}
.story-layer[data-ingredient="cheddar-top"]{aspect-ratio:387/122;background-size:324.031% 1027.8689%;background-position:98.0392% 18.3746%;z-index:25;}
.story-layer[data-ingredient="beef-top"]{aspect-ratio:394/126;background-size:318.2741% 995.2381%;background-position:1.9767% 51.1525%;z-index:24;}
.story-layer[data-ingredient="cheddar-bottom"]{aspect-ratio:385/117;background-size:325.7143% 1071.7949%;background-position:49.9425% 52.2427%;z-index:23;}
.story-layer[data-ingredient="beef-bottom"]{aspect-ratio:391/132;background-size:320.7161% 950.0%;background-position:98.146% 50.9804%;z-index:22;}
.story-layer[data-ingredient="base"]{aspect-ratio:392/140;background-size:319.898% 895.7143%;background-position:1.8561% 88.5996%;z-index:21;}
.story-side[data-side="pepsi"]{aspect-ratio:248/456;background-size:412.9032% 336.8421%;background-position:18.8144% 5.1852%;}
.story-side[data-side="fries"]{aspect-ratio:502/316;background-size:203.9841% 486.0759%;background-position:98.0843% 11.3934%;}
.story-side[data-side="strip"]{aspect-ratio:487/218;background-size:210.2669% 704.5872%;background-position:2.9795% 50.3794%;}
.story-side[data-side="hash"]{aspect-ratio:464/241;background-size:220.6897% 637.3444%;background-position:94.4643% 50.9653%;}
.story-side[data-side="sauce-orange"]{aspect-ratio:388/344;background-size:263.9175% 446.5116%;background-position:9.7484% 93.0369%;}
.story-side[data-side="sauce-white"]{aspect-ratio:385/342;background-size:265.974% 449.1228%;background-position:88.8889% 93.0486%;}
/* Brand backdrop: warm paper, a yellow spotlight and quiet checkerboard corners. */
.flavour-story{background:#fff9ed;border-block-color:#f0dfb3}
.story-sticky{background:radial-gradient(ellipse at 78% 43%,#ffcd0045 0,transparent 57%),radial-gradient(ellipse at 0 100%,#fe01940b,transparent 40%),linear-gradient(135deg,#fffaf0,#fff3cf 60%,#fff9ed)}
.story-sticky::before,.story-sticky::after{content:'';position:absolute;width:112px;height:56px;pointer-events:none;z-index:0;opacity:.07;background:repeating-conic-gradient(#0d002c 0 25%,transparent 0 50%) 0 0/28px 28px;transform:rotate(-8deg)}
.story-sticky::before{inset-inline-start:-15px;top:24px}
.story-sticky::after{inset-inline-end:-20px;bottom:32px;background-image:repeating-conic-gradient(#ce0077 0 25%,transparent 0 50%);transform:rotate(8deg)}
.story-stage::before{border:0;background:radial-gradient(circle at 44% 34%,#ffdf56a6,#ffcd004d 57%,#ffcd0000 72%);box-shadow:none}
.story-stage::after{background:#79461121}
.story-footer{border-top-color:#ddc99b;background:transparent}
.story-steps li{color:#76667b}.story-counter,.story-stage-label{color:#81662d}
@media(max-width:800px){.story-sticky{background:radial-gradient(ellipse at 50% 55%,#ffcd0052,transparent 63%),linear-gradient(160deg,#fffaf0,#fff2cb 65%,#fff9ed)}.story-sticky::before,.story-sticky::after{width:72px;height:36px;background-size:18px 18px;opacity:.055}.story-sticky::before{top:132px}.story-sticky::after{bottom:76px}.story-stage::before{width:96%;left:2%;top:48%}}

/* Scroll choreography: a living spotlight, framing arcs and the final meal reveal. */
.story-stage::before{transform:translateY(-50%) translateX(calc(var(--story-open)*-8px)) scale(calc(.92 + var(--story-open)*.12 + var(--story-meal)*.07));background:radial-gradient(circle at 45% 36%,#ffe680b3,#ffcd0059 54%,#ffcd0000 73%)}
.story-stage::after{transform:translateY(calc(var(--story-open)*10px)) scaleX(calc(.5 + var(--story-meal)*.7));opacity:calc(.24 + var(--story-meal)*.5)}
.story-stage-label{opacity:calc(.6 + var(--story-finale)*.4);letter-spacing:calc(.14em + var(--story-finale)*.06em)}
.story-sticky::before{transform:translateY(calc(var(--story-meal)*-12px)) rotate(calc(-8deg + var(--story-open)*6deg))}
.story-sticky::after{transform:translateY(calc(var(--story-meal)*-15px)) rotate(calc(8deg - var(--story-open)*6deg))}
.story-footer .button{box-shadow:0 8px 24px #ce00771a;transform:scale(calc(1 + var(--story-finale)*.025))}
@media(prefers-reduced-motion:reduce){.story-sticky::before,.story-sticky::after,.story-stage::before,.story-stage::after,.story-footer .button{transform:none}.story-stage::before{transform:translateY(-50%)}}

/* Art direction: clean exploded stack, then a close, balanced meal grouping. */
.story-layer,.story-whole{top:50%}
.story-side[data-side=pepsi]{left:76%;top:34%}
.story-side[data-side=fries]{left:25%;top:47%}
.story-side[data-side=strip]{left:24%;top:76%}
.story-side[data-side=hash]{left:77%;top:76%}
.story-side[data-side=sauce-orange]{left:43%;top:86%}
.story-side[data-side=sauce-white]{left:61%;top:87%}
.story-stage::before{width:88%;left:6%;top:51%;opacity:.75;background:radial-gradient(circle,#ffde6273,transparent 70%)}
.story-sticky::before,.story-sticky::after{opacity:.035}
@media(max-width:800px){.story-copy h2{font-size:clamp(20px,5.6vw,25px);line-height:1.65}.story-copy{padding-inline:4px}.story-stage::before{width:92%;left:4%}.story-steps{font-size:9px;gap:8px}.story-sticky{padding-bottom:16px}.story-footer{position:relative;background:#fff8e6e8;border-radius:12px;padding:8px 6px;margin-top:4px}.story-footer .button{min-height:42px;padding:9px 15px}.story-stage-label{display:none}}
