/* One continuous studio, with a static editorial fallback. */
.choco-story { position: relative; margin: 0; color: var(--cocoa); background: var(--cream); }
.choco-story > .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-stage { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; min-height: 680px; width: min(1600px,100%); margin: auto; padding: 80px 24px 32px; }
.story-copy { position: relative; z-index: 2; padding-left: clamp(0px,3vw,48px); }
.story-eyebrow { display: block; color: var(--caramel); font: 500 12px/1.5 'Instrument Sans',Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.story-heading { font-family: 'Bright Sunlist',Georgia,serif; font-weight: 400; font-size: clamp(38px,4.7vw,73px); line-height: 1.06; max-width: 470px; margin: 0 0 22px; }
.story-copy p { max-width: 320px; color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }
.story-steps { display: grid; }
.story-step { grid-area: 1 / 1; }
.story-step:not(:first-child) { visibility: hidden; }
.story-visual-slot { width: min(100%,calc(100svh - 120px)); aspect-ratio: 1; position: relative; justify-self: center; }
.story-visual { position: absolute; inset: 0; transform-origin: 0 0; }
.story-visual > img,.story-visual > canvas:not([data-renderer="webgl"]) { mask-image: linear-gradient(90deg,transparent,#000 5%,#000 91%,transparent); }
.story-visual img,.story-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-visual canvas { visibility: hidden; }
.story-sequence-ready .story-visual canvas { visibility: visible; }
.story-sequence-ready .story-poster { visibility: hidden; }
.story-visual .story-carry-image { visibility: hidden; pointer-events: none; }
.story-in-transit .story-carry-image { visibility: visible; opacity: var(--carry-opacity,0); }
.story-in-transit .story-poster,.story-in-transit canvas { opacity: calc(1 - var(--carry-opacity,0)); }
.story-rail { display: none; }
.story-skip { color: var(--muted); font-size: 12px; text-underline-offset: 5px; margin-top: 32px; display: inline-block; }
.story-enhanced { height: 430svh; }
.story-enhanced .story-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.story-enhanced .story-step { visibility: visible; opacity: 0; pointer-events: none; transform: translateY(10px); transition: none; }
.story-enhanced .story-step.is-current { opacity: 1; pointer-events: auto; transform: none; }
.story-enhanced .story-rail { display: flex; position: absolute; left: clamp(24px,5vw,72px); right: clamp(24px,5vw,72px); bottom: 28px; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.story-track { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.story-track i { display: block; width: 100%; height: 1px; background: var(--cocoa); transform: scaleX(var(--story-progress,0)); transform-origin: left; }
.story-in-transit .story-visual { z-index: 6; pointer-events: none; }
.story-source-away img { visibility: hidden; }
.story-finale { text-align: center; padding-block: 42px 95px; max-width: 900px; }
.story-finale h2 { font-family: 'Bright Sunlist',Georgia,serif; font-weight: 400; font-size: clamp(36px,5vw,68px); line-height: 1.12; margin: 0 0 24px; }
.story-finale p { max-width: 470px; margin: 0 auto 28px; color: var(--muted); }
.story-finale .actions { justify-content: center; align-items: center; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
 .story-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 0; padding: 88px 0 48px; min-height: 0; }
 .story-copy { padding: 0 24px; text-align: center; }
 .story-eyebrow { font-size: 10px; margin-bottom: 10px; }
 .story-heading { font-size: clamp(32px,9vw,44px); line-height: 1.07; margin: 0 auto 12px; max-width: 370px; }
 .story-copy p { font-size: 14px; line-height: 1.5; margin: auto; max-width: 300px; }
 .story-visual-slot { width: min(100vw,calc(100svh - 265px)); min-width: 240px; align-self: center; }
 .story-enhanced { height: 330svh; }
 .story-enhanced .story-rail { left: 24px; right: 24px; bottom: max(20px,env(safe-area-inset-bottom)); gap: 12px; font-size: 10px; }
 .story-skip { position: absolute; bottom: -6px; right: 18px; transform: translateY(100%); margin: 0; font-size: 10px; z-index: 3; }
 .story-finale { padding: 26px 24px 56px; }
 .story-finale .actions { gap: 18px; }
}
@media (max-height: 600px) and (min-width: 600px) {
 .story-stage { grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr; padding: 80px 24px 36px; }
 .story-copy { text-align: left; }
 .story-eyebrow { margin-bottom: 8px; }
 .story-heading { font-size: 32px; }
 .story-copy p { font-size: 13px; }
 .story-visual-slot { width: min(100%,calc(100svh - 100px)); min-width: 180px; }
 .story-skip { position: static; transform: none; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
 .story-enhanced { height: auto; }
 .story-enhanced .story-stage { position: relative; height: auto; }
 .story-step { transition: none !important; transform: none !important; }

 .story-skip,.story-rail { display: none !important; }
}

.story-enhanced .story-copy { will-change: opacity; }
/* Flavor controls stay in the same place throughout the scene. */
.story-choices[hidden] { display: none !important; }
.story-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: min(100%,330px); margin: 0 0 28px; }
.story-choices button { appearance: none; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(71,46,30,.26); border-radius: 24px; background: transparent; color: var(--cocoa); font: 500 13px/1.2 'Instrument Sans',Arial,sans-serif; cursor: pointer; transition: background .18s,border-color .18s; }
.story-choices button:hover { border-color: var(--cocoa); }
.story-choices button[aria-pressed="true"] { border-color: var(--cocoa); background: rgba(255,255,255,.44); box-shadow: inset 0 0 0 1px var(--cocoa); }
.story-choices button:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 4px; }
.story-choices button[data-loading] { border-style: dashed; }
.story-choices i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #654332; }
.story-choices [data-story-flavor="pistache"] i { background: #78813c; }
.story-choices [data-story-flavor="speculoos"] i { background: #ad682f; }
.story-choices [data-story-flavor="cacahuete"] i { background: #c69357; }
.story-status.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-steps { min-height: 244px; }
.story-skip { margin-top: 12px; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
 .story-stage { padding-top: 76px; }
 .story-copy { padding: 0 16px; }
 .story-eyebrow { margin-bottom: 8px; }
 .story-choices { width: 100%; max-width: 460px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 0 auto 18px; }
 .story-choices button { font-size: 11px; padding: 6px 2px; gap: 4px; min-height: 44px; }
 .story-choices i { flex-basis: 6px; width: 6px; height: 6px; }
 .story-steps { min-height: 152px; }
 .story-visual-slot { width: min(100vw,calc(100svh - 365px)); min-width: 180px; }
 .story-skip { display: none; }
}
@media (max-width: 380px) and (max-height: 650px) {
 .story-stage { padding-top: 72px; padding-bottom: 36px; }
 .story-heading { font-size: 29px; margin-bottom: 9px; }
 .story-copy p { font-size: 12px; max-width: 285px; }
 .story-choices { margin-bottom: 10px; }
 .story-choices button { font-size: 10px; gap: 3px; }
 .story-steps { min-height: 125px; }
 .story-visual-slot { width: min(100vw,calc(100svh - 310px)); }
}
@media (max-height: 600px) and (min-width: 600px) {
 .story-stage { grid-template-columns: .95fr 1.05fr; padding: 65px 22px 34px; }
 .story-copy { padding: 0; }
 .story-choices { margin: 0 0 10px; gap: 4px; }
 .story-choices button { font-size: 10px; min-height: 44px; padding: 4px; }
 .story-eyebrow { display: none; }
 .story-steps { min-height: 146px; }
 .story-heading { font-size: 29px; margin-bottom: 10px; }
 .story-copy p { font-size: 12px; }
 .story-visual-slot { width: min(100%,calc(100svh - 100px)); }
}
@media (prefers-reduced-motion: reduce) {
 .story-choices button { transition: none; }
}
