/* The homepage story: one big phone in the middle, two short lines around it. Every bit of scroll moves something
   (phone-story.js): the words rise in and out, the phone tilts, the next screen slides up over the last one, and
   each screen plays its own moment from --l (0 → 1, that scene's progress). Without scripts, the first moment stands. */
.phone-story-page .top{position:absolute;top:0;left:50%;width:100%;transform:translateX(-50%);z-index:10;padding-block:24px}
.phone-story-page{--story-lilac:#b8a4ff;--story-peach:#f9b992}
.story-symbols{position:absolute;width:0;height:0;overflow:hidden}
.si{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Wide screens: line one | phone | line two. --k (the phone's zoom) is measured by the script to fill the height. */
.phone-story{position:relative;--k:1.15;--s:0;--gut:48px;--halo:72px;--pad-top:30px;--pad-bottom:26px;
 --pw:calc(310px * var(--k));
 --cols:minmax(0,1fr) calc(var(--pw) + var(--halo)) minmax(0,1fr);
 --side:calc((100vw - 2 * var(--gut) - var(--pw) - var(--halo)) / 2);
 --fs:clamp(34px, calc(var(--side) / 5.8), 124px)}
/* Tall from the first paint, before the script runs: a browser restoring the scroll on reload must find the page at
   its real height, or scroll anchoring throws the visitor past the story. Nothing in the stage serves as an anchor. */
.phone-story{height:calc(100svh + 384svh)}
.story-sticky{position:sticky;top:0;height:100svh;min-height:300px;overflow:clip;overflow-anchor:none}
@media(scripting:none){.phone-story{height:auto}.story-sticky{position:relative}.story-hint{display:none}}
.story-stage{position:relative;box-sizing:border-box;height:100%;padding:var(--pad-top) var(--gut) var(--pad-bottom);display:grid;grid-template-columns:var(--cols);grid-template-rows:minmax(0,1fr)}
.story-visual{grid-area:1/2;position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;perspective:1600px}
.story-chapters{grid-area:1/1/2/4;position:relative;z-index:3;pointer-events:none}
.story-chapter{position:absolute;inset:0;visibility:hidden}
.story-chapter.is-shown{visibility:visible}
.story-heading{box-sizing:border-box;height:100%;margin:0;display:grid;grid-template-columns:var(--cols);grid-template-rows:minmax(0,1fr);align-items:center;font:900 var(--fs)/.92 var(--display);letter-spacing:-.05em;text-wrap:balance}
/* Widest word: « Re-engage. » / « Bienvenue! » at 5.6em; longest line: « Dans leur Wallet. » at 8em (portrait keeps it on one line). */
.story-line{display:block}
.story-line:first-child{grid-area:1/1;justify-self:end;text-align:right;margin-bottom:.9em;color:var(--ink);text-shadow:none}
.story-line:last-child{grid-area:1/3;justify-self:start;text-align:left;margin-top:.9em;color:var(--story-lilac);text-shadow:0 0 44px #8c70ff66}
.story-heading .story-word{display:inline-block;transform-origin:0 100%;color:inherit;text-shadow:inherit}
.phone-story:focus{outline:none}
.story-actions{position:absolute;left:var(--gut);bottom:var(--pad-bottom);z-index:4;display:flex;align-items:center;gap:22px}
.story-cta{border-radius:999px;padding:16px 22px;box-shadow:0 10px 35px #6b45f23b;font-size:15px}
.story-cta .si{width:17px;height:17px}
.story-skip{font-size:13px;color:#c0b6d8;text-decoration:none;text-underline-offset:5px}
.story-skip:hover{text-decoration:underline}
.story-place{position:absolute;right:var(--gut);bottom:var(--pad-bottom);z-index:4;display:flex;align-items:center;gap:9px;padding:10px 15px 10px 10px;background:#1c1432e6;border:1px solid #ad98d82b;border-radius:12px;box-shadow:0 8px 30px #0002;backdrop-filter:blur(10px)}
.story-place .bakery-logo{width:30px;height:30px}
.story-place strong{display:block;font-size:11px;font-weight:650}
.story-place small{display:block;margin-top:2px;font-size:9px;color:#afa3c7}
/* At the start, a quiet « scroll slowly » beside the phone: a dot glides down a hairline. It fades with the first bit
   of scroll and comes back at the top. Wide screens: in the right margin; portrait: between the phone and the edge. */
.story-hint{--track:56px;position:absolute;z-index:4;right:calc(var(--gut) / 2);top:calc((var(--pad-top) + 100% - var(--pad-bottom)) / 2);display:flex;flex-direction:column;align-items:center;gap:11px;transform:translate(50%, -50%);opacity:clamp(0, calc(1 - (var(--s) - .04) / .28), 1);pointer-events:none}
.story-hint>*{animation:story-hint-in 1s ease-out 1.2s both}
.story-hint-text{writing-mode:vertical-rl;font:600 11px/1 var(--mono);letter-spacing:.24em;text-transform:uppercase;white-space:nowrap;color:var(--story-lilac);opacity:.9}
.story-hint-track{position:relative;width:1px;height:var(--track);background:linear-gradient(#b8a4ff00,#b8a4ff66 30%,#b8a4ff66 70%,#b8a4ff00)}
.story-hint-track>i{position:absolute;left:-2px;top:0;width:5px;height:5px;border-radius:50%;background:var(--story-peach);box-shadow:0 0 8px #f9b992aa;animation:story-hint-dot 2.8s cubic-bezier(.45,0,.55,1) infinite}
@keyframes story-hint-in{from{opacity:0;transform:translateY(-10px)}}
@keyframes story-hint-dot{0%{transform:translateY(0);opacity:0}20%,80%{opacity:1}100%{transform:translateY(calc(var(--track) - 5px));opacity:0}}
@media(prefers-reduced-motion:reduce){.story-hint>*{animation:none}.story-hint-track>i{animation:none;top:calc(50% - 2.5px)}}

/* Around the phone: a glow, two orbits and two sparks that turn with the scroll. */
.story-visual::before{content:'';position:absolute;width:95%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#7b4fea30 0%,#6b45f214 45%,transparent 70%);transform:scale(1.7)}
.story-orbit{position:absolute;width:calc(var(--pw) * 1.55);aspect-ratio:1;border:1px solid #b8a4ff14;border-radius:50%;transform:rotate(calc(-26deg + var(--s) * 34deg));pointer-events:none}
.orbit-two{width:calc(var(--pw) * 1.95);border-color:#b8a4ff0a;transform:rotate(calc(14deg - var(--s) * 26deg))}
.orbit-one::after{content:'';position:absolute;top:9%;left:19%;width:6px;height:6px;border-radius:50%;background:var(--story-peach);box-shadow:0 0 14px #f9b99288}
.story-spark{position:absolute;color:#b8a4ff88;line-height:1}
.spark-one{top:12%;right:0;font-size:26px;transform:translateY(calc(var(--s) * -36px)) rotate(calc(var(--s) * 90deg))}
.spark-two{bottom:16%;left:0;font-size:16px;color:#f9b99299;transform:translateY(calc(var(--s) * 30px)) rotate(calc(var(--s) * -120deg))}

/* The phone keeps its 310 × 612 drawing; zoom scales all of it. The script tilts it. */
.story-device{position:relative;width:310px;height:612px;flex:none;zoom:var(--k);transform:rotate(-2.4deg);will-change:transform}
.story-phone{position:relative;height:100%;padding:9px;border-radius:48px;background:linear-gradient(115deg,#a69ab2 0%,#393342 4%,#111019 10%,#1e1a26 48%,#5c5365 93%,#a394ac 100%);border:1px solid #b3a5bf;box-shadow:inset 0 0 0 2px #1c1824,inset 0 0 0 4px #716779,18px 30px 50px -22px #000c,0 50px 100px -30px #000b}
.story-screen{position:relative;width:100%;height:100%;overflow:hidden;border:2px solid #09070c;border-radius:39px;background:#0c0b11;isolation:isolate}
.phone-hardware i{position:absolute;width:3px;background:linear-gradient(90deg,#51475d,#b2a4b9);border-radius:2px;left:-3px;top:109px;height:28px}
.phone-hardware i:nth-child(2){top:153px;height:45px}.phone-hardware i:nth-child(3){left:auto;right:-3px;top:165px;height:65px}
.phone-island{position:absolute;top:19px;left:50%;transform:translateX(-50%);z-index:9;width:84px;height:24px;background:#08070b;border-radius:20px;box-shadow:0 1px 1px #ffffff09}
.phone-island i{position:absolute;right:9px;top:8px;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#232c42,#090a10);box-shadow:inset 0 0 1px #67728c}
.phone-status{position:absolute;left:30px;right:28px;top:25px;z-index:8;display:flex;justify-content:space-between;align-items:center;color:white;font-size:10px;font-weight:700;line-height:1}
.phone-signal{display:flex;align-items:flex-end;height:9px;gap:2px}.phone-signal i{display:block;background:currentColor;width:2px;height:4px;border-radius:1px}.phone-signal i:nth-child(2){height:6px}.phone-signal i:nth-child(3){height:8px}.phone-signal i:nth-child(4){height:10px}.phone-signal b{width:17px;height:9px;border:1px solid #fff9;border-radius:2px;margin:0 0 0 5px;position:relative}.phone-signal b::after{content:'';position:absolute;inset:1px;background:#fff;border-radius:1px}
.phone-home-indicator{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:8;width:95px;height:4px;border-radius:4px;background:#fff;opacity:.9;pointer-events:none}
.phone-story[data-step="1"] .phone-home-indicator{background:#3a2e27}

/* Each screen slides up over the one before it (the script sets its transform). */
.phone-scene{--l:1;position:absolute;inset:0;visibility:hidden;background:#121019;color:#fff;overflow:hidden;border-radius:37px 37px 0 0;box-shadow:0 -18px 40px #0008;transform-origin:50% 0}
.phone-scene.is-shown{visibility:visible}
.phone-scene[data-scene="1"]{z-index:1}.phone-scene[data-scene="2"]{z-index:2}.phone-scene[data-scene="3"]{z-index:3}.phone-scene[data-scene="4"]{z-index:4}.phone-scene[data-scene="5"]{z-index:5}
/* A tap: a ring that grows and fades once --l passes --tap-at. */
.story-tap{--t:clamp(0, calc((var(--l) - var(--tap-at, .6)) / .16), 1);position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#ffffff8c;opacity:calc((1 - var(--t)) * min(1, var(--t) * 8));transform:scale(calc(.3 + var(--t) * 1.7));pointer-events:none}

/* 1. The camera: the clip scrubs with the scroll, the banner zooms toward its code, the link pops up and is tapped. */
.camera-scene{background:#060606}
.camera-view{position:relative;height:calc(100% - 109px);overflow:hidden;background:#9a6947}
.camera-photo{position:absolute;width:100%;height:100%;object-fit:cover;transform:scale(calc(1.04 + var(--l) * .1));object-position:50% 50%;filter:brightness(.86)}
.camera-shade{position:absolute;inset:0;background:linear-gradient(#0007,transparent 22%,transparent 70%,#0003)}
.camera-grid{position:absolute;inset:0;background:linear-gradient(transparent 33.2%,#fff2 33.3%,transparent 33.6%,transparent 66.3%,#fff2 66.6%,transparent 66.9%),linear-gradient(90deg,transparent 33.2%,#fff2 33.3%,transparent 33.6%,transparent 66.3%,#fff2 66.6%,transparent 66.9%)}
.camera-banner{position:absolute;left:11px;right:11px;top:52%;transform:rotate(-1deg) scale(calc(1 + var(--l) * .16));transform-origin:80% 45%;box-shadow:0 7px 7px #0005;border-radius:2px;background:#000}
.camera-banner img{display:block;width:100%;height:auto;border-radius:2px}
.camera-banner::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(108deg,transparent 7%,#ffffff18 8%,transparent 10%,transparent 72%,#ffffff0c 75%,transparent 80%);box-shadow:inset 0 0 2px #fff8}
.camera-banner>i{position:absolute;top:5%;left:2.5%;width:4px;height:4px;background:#1d1727;border:1px solid #ccc;border-radius:50%;box-shadow:0 0 1px #000}.camera-banner>i:nth-of-type(2){left:auto;right:2.5%}.camera-banner>i:nth-of-type(3){top:auto;bottom:5%}.camera-banner>i:nth-of-type(4){top:auto;bottom:5%;left:auto;right:2.5%}
.camera-focus{position:absolute;right:24px;top:56%;width:100px;height:100px;transform:rotate(-1deg) scale(calc(1.35 - var(--l) * .35))}
.camera-focus>i{position:absolute;top:0;left:0;width:16px;height:16px;border-top:2px solid #ffdc65;border-left:2px solid #ffdc65;border-radius:5px 0 0 0;filter:drop-shadow(0 0 2px #0006)}
.camera-focus>i:nth-child(2){left:auto;right:0;transform:rotate(90deg)}.camera-focus>i:nth-child(3){top:auto;bottom:0;transform:rotate(-90deg)}.camera-focus>i:nth-child(4){top:auto;bottom:0;left:auto;right:0;transform:rotate(180deg)}
.camera-focus>span{position:absolute;left:4px;right:4px;top:calc(5% + var(--l) * 85%);height:1px;background:#ffdc65aa;box-shadow:0 0 12px #ffdc6599}
.camera-flash{position:absolute;left:17px;top:51px;display:grid;place-items:center;width:25px;height:25px;background:#0005;border-radius:50%;color:#ffe294}.camera-flash .si{width:15px;height:15px}
.camera-live{position:absolute;right:17px;top:55px;font-size:9px;letter-spacing:.08em;color:#ffdc65}
.camera-link{--a:clamp(0, calc((var(--l) - .3) / .14), 1);--tap-at:.6;position:absolute;left:50%;bottom:55px;transform:translateX(-50%) scale(calc(.55 + var(--a) * .45));opacity:var(--a);display:flex;align-items:center;gap:7px;white-space:nowrap;background:#ffdc65;border:1px solid #ffe7a2;border-radius:18px;padding:8px 12px;font:650 10px/1.2 var(--body);color:#31250d;box-shadow:0 4px 18px #0003;cursor:pointer}.camera-link .si{width:15px;height:15px}.camera-link b{margin-left:2px}
.camera-link:hover{background:#ffe6a0}
.camera-zoom{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);width:27px;height:27px;display:grid;place-items:center;background:#0006;color:#ffdf78;border-radius:50%;font-size:11px}
.camera-controls{height:109px;padding:10px 22px 18px;background:#09090a}
.camera-modes{display:flex;justify-content:center;gap:22px;font:500 8px/1.3 var(--body);letter-spacing:.1em}.camera-modes b{color:#ffdc65;font-weight:600}
.camera-shutter-row{display:flex;align-items:center;justify-content:space-between;padding-top:11px}.camera-thumbnail{width:30px;height:30px;border-radius:4px;background:url('/story/bakery.webp') center/cover}.camera-shutter{width:51px;height:51px;background:white;border:3px solid #101010;box-shadow:0 0 0 2px white;border-radius:50%}.camera-flip{width:30px;height:30px;border-radius:50%;background:#26262a;display:grid;place-items:center;font-size:23px}
.camera-video{opacity:0;transition:opacity .3s;pointer-events:none}
.camera-video.is-ready{opacity:1}
.reduced-motion .camera-video{display:none}

/* 2. The club page: the cover drifts, the page scrolls a little, the gift's card bumps, « Ajouter à Wallet » is tapped.
   Its colours are the real club page's for the bakery's card (#7b3a1b, white ink), from src/club-theme.js (tested). */
.club-scene{background:#fff3ee;color:#3c1d0e;padding-top:44px}
.club-scene::before{content:'';position:absolute;inset:0 0 auto;height:45px;background:#1c1718}
.browser-address{position:relative;z-index:1;height:29px;display:flex;justify-content:center;align-items:center;gap:6px;background:#fbe6dd;color:#6e5043;font-size:9px}.browser-address .si{width:10px;height:10px}.browser-address>span:last-child{position:absolute;right:18px;font-size:13px}
.club-cover{height:117px;position:relative;overflow:hidden;transform:translateY(calc(var(--l) * -16px))}.club-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 24%;transform:scale(calc(1.25 - var(--l) * .25))}
.club-content{position:relative;padding:29px 19px 14px;text-align:center;transform:translateY(calc(var(--l) * -16px))}
.club-content>.bakery-logo{position:absolute;top:-24px;left:calc(50% - 24px);width:48px;height:48px;border-radius:50%;box-shadow:0 0 0 4px #fff3ee}
.club-eyebrow{display:flex;align-items:center;justify-content:center;gap:5px;font:600 7px/1.4 var(--mono);letter-spacing:.14em;color:#7b3a1b;margin:4px 0 6px}.club-eyebrow::before{content:'';width:4px;height:4px;border-radius:50%;background:#7b3a1b;box-shadow:0 0 0 2.5px rgba(123,58,27,.12)}
.club-content h3{font:750 25px/.97 var(--display);letter-spacing:-.04em;margin:0}
.club-intro{font-size:11px;color:#3c1d0e;line-height:1.5;margin:10px 0 14px}
.club-gift{--g:clamp(0, calc((var(--l) - .15) / .3), 1);padding:10px 12px 11px;background:linear-gradient(155deg,#ffffff1f,#fff0 45%) #7b3a1b;color:#fff;border-radius:11px;text-align:left;box-shadow:0 0 0 calc(var(--g) * (1 - var(--g)) * 12px) #7b3a1b26,0 12px 22px -14px #000a;transform:scale(calc(1 + var(--g) * (1 - var(--g)) * .14))}
.club-gift-head{display:flex;align-items:center;gap:6px}.club-gift-head .bakery-logo{width:18px;height:18px}.club-gift-head b{flex:1;font-size:8.5px;font-weight:650}.club-gift-head span{font:600 5.5px/1.25 var(--mono);letter-spacing:.1em;text-align:right;opacity:.85}
.club-gift strong{display:block;margin:9px 0 3px;font:850 19px/1.05 var(--display);letter-spacing:-.015em}.club-gift p{margin:0;font-size:8.5px;line-height:1.4;opacity:.92}.club-gift small{display:block;margin-top:6px;font-size:5.8px;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.story-add-wallet{--tap-at:.56;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:8px;margin:17px 0 0;padding:11px 10px;background:#17151a;color:white;border:0;border-radius:9px;width:100%;cursor:pointer;font:600 12px/1.4 var(--body);box-shadow:0 7px 16px #311c131c}.story-add-wallet:hover{background:#332d38}
.story-add-wallet .story-wallet-icon{width:24px;height:22px;padding:4px;gap:2px;background:transparent}.story-add-wallet .story-wallet-icon i{height:3px}
.club-fine{font-size:8px;color:#81695e;margin:10px 0 0}

/* 3. Wallet: the pass rises into place, a sheen crosses it, then « ajouté ». */
.wallet-scene{padding:58px 13px 20px;background:linear-gradient(155deg,#25202d,#100e15)}
.wallet-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 5px 17px}.wallet-toolbar strong{font-size:26px;letter-spacing:-.035em}.wallet-toolbar button{color:#bca6ff;background:transparent;border:0;font:650 12px/1 var(--body);padding:8px;cursor:pointer}
.wallet-other{height:44px;margin:0 5px -14px;padding:12px 15px;background:linear-gradient(110deg,#808979,#4d564d);border:1px solid #ffffff15;border-radius:12px 12px 0 0;color:#eeecdf;font-size:8px;display:flex;justify-content:space-between}.wallet-other b{font-size:11px;font-style:italic}
.story-pass{--a:clamp(0, calc(var(--l) / .38), 1);--e:calc(1 - (1 - var(--a)) * (1 - var(--a)));position:relative;overflow:hidden;padding:17px 16px 15px;background:#7b3a1b;border:1px solid #b27d4b88;border-radius:14px;box-shadow:0 25px 35px #0005,inset 0 1px #ffffff12;color:#fff3e2;transform:translateY(calc((1 - var(--e)) * 150px)) rotate(calc((1 - var(--e)) * -5deg)) scale(calc(.88 + var(--e) * .12))}
.story-pass::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 42%,#ffffff26 50%,transparent 58%) no-repeat;background-size:260% 100%;background-position:calc(130% - var(--l) * 160%) 0}
.story-pass-head{display:flex;align-items:center;gap:7px}.bakery-logo{flex:none;width:35px;height:35px}.story-pass-head>strong{font-size:10px;line-height:1.15;flex:1}.story-pass-head>span{font:500 7px/1.5 var(--mono);text-align:right;color:#e6bb8a}.story-pass-head>span>b{font:700 9px/1.4 var(--body);color:#fff3e2}
.story-pass-caption{margin:18px 0 6px;color:#efbc83;font:500 8px/1.4 var(--mono);letter-spacing:.04em}
.story-pass-deal{max-width:190px;margin:0;font:800 37px/.99 var(--display);letter-spacing:-.04em;white-space:pre-line}
.story-pass-condition{font-size:8px;line-height:1.5;margin:10px 0 18px;color:#eac39f}
.story-pass-details{display:flex;justify-content:space-between}.story-pass-details small{display:block;font:500 6.5px/1.5 var(--mono);color:#e6bb8a}.story-pass-details strong{display:block;font-size:10px;margin-top:4px}.story-pass-details>div:last-child{text-align:right}
.story-pass-qr{width:101px;padding:7px 6px 5px;border-radius:7px;margin:16px auto 0;background:#fff;color:#241b19;text-align:center}.story-pass-qr img{display:block;width:89px;height:89px}.story-pass-qr code{display:block;font:600 8px/1.4 var(--mono);letter-spacing:.13em}
.wallet-success{--b:clamp(0, calc((var(--l) - .42) / .14), 1);display:flex;align-items:center;justify-content:center;gap:7px;margin:13px 0 0;font-size:11px;color:#d1ead4;opacity:var(--b);transform:translateY(calc((1 - var(--b)) * 12px)) scale(calc(.85 + var(--b) * .15))}.wallet-success .si{width:19px;height:19px;padding:3px;border-radius:50%;background:#324e39;stroke-width:2.5}
.wallet-promise{font-size:9px;text-align:center;color:#a99bbd;margin:7px 0 0;opacity:clamp(0, calc((var(--l) - .52) / .14), 1)}

/* 4–6. Lock screens: the wallpaper drifts, the notifications drop in, the distance counts down. */
.lock-wallpaper{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 0% 10%,#9884d9,transparent 55%),linear-gradient(165deg,#413079 0%,#21134a 50%,#4a2c4e 100%);overflow:hidden}
.lock-wallpaper i{position:absolute;border-radius:50%;filter:blur(1px);width:390px;height:600px;left:-240px;top:100px;transform:translate(calc(var(--l) * 46px), calc(var(--l) * -34px)) rotate(calc(-30deg + var(--l) * 12deg));background:linear-gradient(110deg,#d9c9f0,#8366b9 60%,#392356);box-shadow:12px 0 60px #10042444}
.lock-wallpaper i:nth-child(2){width:250px;height:540px;top:210px;left:145px;background:linear-gradient(90deg,#b898bd,#6f497a 70%,#382244);transform:translate(calc(var(--l) * -52px), calc(var(--l) * 26px)) rotate(calc(35deg - var(--l) * 10deg));opacity:.9}
.lock-wallpaper i:nth-child(3){width:160px;height:340px;top:390px;left:-20px;background:linear-gradient(110deg,#f5bba0,#985874);transform:translate(calc(var(--l) * 34px), calc(var(--l) * -46px)) rotate(calc(-43deg + var(--l) * 8deg));opacity:.8}
.nearby-scene .lock-wallpaper{transform:scaleX(-1)}
.lock-heading{position:relative;display:flex;flex-direction:column;align-items:center;padding-top:65px}.lock-heading>.si{width:16px;height:16px;stroke-width:2.5;opacity:.9}.lock-date{margin:13px 0 0;font-size:12px;font-weight:600;color:#e6dff6}.lock-clock{margin:1px 0 0;font:650 70px/1.05 var(--body);letter-spacing:-.045em;color:#e9e1fa}
.lock-notifications{position:relative;margin:27px 10px 0;display:grid;gap:8px}
.story-notification{display:flex;gap:8px;padding:13px 10px;background:#f8f3ff29;border:1px solid #ffffff2e;border-radius:17px;box-shadow:0 8px 25px #0e072519;backdrop-filter:blur(22px);text-align:left}
.welcome-scene .story-notification,.nearby-scene .notification-nearby{opacity:var(--a);transform:translateY(calc((1 - var(--a)) * -40px)) scale(calc(.9 + var(--a) * .1))}
.welcome-scene .story-notification{--a:clamp(0, calc((var(--l) - .06) / .22), 1)}
.nearby-scene{--a:clamp(0, calc((var(--l) - .4) / .2), 1)}
.nearby-scene .notification-nearby{background:#f8f3ff42;border-color:#ffffff4a}
.nearby-scene .notification-welcome{opacity:.55;transform-origin:top center;transform:translateY(calc((var(--a) - 1) * (100% + 8px))) scale(.96)}
.story-wallet-icon{display:grid;align-content:center;gap:2px;flex:none;width:29px;height:29px;padding:6px 5px;background:#161021;border-radius:8px}.story-wallet-icon i{height:4px;border-radius:2px;background:#a68dff}.story-wallet-icon i:nth-child(2){background:#ff945c}.story-wallet-icon i:nth-child(3){background:#fff1e4}
.story-notification>div{flex:1;min-width:0}.story-notification-meta{display:flex;justify-content:space-between;gap:3px;font:500 6.5px/1.3 var(--mono);letter-spacing:.035em;color:#e9e1f6bb;text-transform:uppercase}.story-notification strong{display:block;font-size:10px;letter-spacing:-.015em;line-height:1.3;margin:4px 0 3px}.story-notification p{margin:0;font-size:10px;line-height:1.42;color:#fff6ff}
.lock-gift-note{--b:clamp(0, calc((var(--l) - .36) / .18), 1);display:flex;align-items:center;gap:10px;width:160px;margin:46px auto 0;color:#d5c6e9;font-size:11px;line-height:1.5;opacity:var(--b);transform:translateY(calc((1 - var(--b)) * 16px))}.lock-gift-note>.si{width:28px;height:28px;stroke-width:1.2;flex:none;color:#f7c2a3;transform:rotate(calc(var(--b) * (1 - var(--b)) * 50deg))}
/* 6. A new offer: it drops in on top, the earlier notifications slide down to make room (its slot opens with the
   scroll, so they move by its real height) and the oldest fades away; then the croissant note rises. */
.offer-scene{--a:clamp(0, calc((var(--l) - .1) / .24), 1)}
.offer-scene .lock-wallpaper{transform:rotate(180deg)}
.offer-slot{max-height:calc(var(--a) * 120px);margin-bottom:calc((var(--a) - 1) * 8px);position:relative;z-index:2}
.offer-scene .notification-offer{background:#f8f3ff42;border-color:#ffffff4a;opacity:var(--a);transform:translateY(calc((1 - var(--a)) * -40px)) scale(calc(.9 + var(--a) * .1))}
.offer-scene .notification-nearby{opacity:calc(1 - var(--a) * .45);transform-origin:50% 0;transform:scale(calc(1 - var(--a) * .04))}
.offer-scene .notification-welcome{position:absolute;top:calc(100% + 8px);left:0;right:0;opacity:calc(.55 * (1 - var(--a)));transform-origin:50% 0;transform:translateY(calc(var(--a) * 24px)) scale(.96)}
.offer-note{--b:clamp(0, calc((var(--l) - .42) / .18), 1);margin-top:40px}.offer-note>.si{stroke-width:1.3}.offer-note>span>span{display:block}
.lock-dock{position:absolute;bottom:33px;left:28px;right:28px;display:flex;justify-content:space-between}.lock-dock>span{display:grid;place-items:center;width:38px;height:38px;background:#29193a55;border:1px solid #ffffff0b;backdrop-filter:blur(10px);border-radius:50%}.lock-dock .si{width:17px;height:17px}
.nearby-distance{position:relative;margin:25px auto 0;display:flex;align-items:center;justify-content:center;gap:8px;color:#eee2fa}.nearby-distance>.si{width:26px;height:26px;padding:5px;background:#ffffff1a;border-radius:50%;color:#ffd2b0;transform:translateY(calc(var(--a) * (1 - var(--a)) * -14px))}.nearby-distance strong{display:block;font-size:9px;font-weight:600}.nearby-distance span{display:block;font:500 8px/1.5 var(--mono);color:#d8c7e3;margin-top:2px}.nearby-distance span span{display:inline;margin:0;font-variant-numeric:tabular-nums}

.story-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.story-after{text-align:center;padding-block:110px 35px;max-width:900px}.story-after h2{font:750 clamp(38px,5vw,64px)/1.06 var(--display);letter-spacing:-.04em;margin:23px 0}.story-after h2 em{font-style:normal;color:var(--story-lilac)}.story-after>p:not(.kicker){max-width:530px;margin:0 auto;font-size:17px;color:#b4a7c9;line-height:1.7}

/* Before the script runs, and without it, the first moment stands on its own. */
.phone-story:not(.is-enhanced) .story-chapter[data-chapter="0"],.phone-story:not(.is-enhanced) .phone-scene[data-scene="0"]{visibility:visible}

/* Short wide screens (laptops, phones turned sideways). */
@media(max-height:620px){.phone-story{--pad-top:16px;--pad-bottom:16px;--halo:48px}.story-place{display:none}.story-hint{--track:32px;top:auto;bottom:var(--pad-bottom);transform:translateX(50%)}.story-hint-text{font-size:9px}.story-cta{padding:11px 16px;font-size:12px}.story-skip{font-size:11px}.story-actions{gap:14px}}

/* Portrait screens: line one above the phone, line two below it, the phone as big as the space between. */
@media(max-aspect-ratio:5/4),(max-width:599px){
 .phone-story{--k:.78;--gut:16px;--halo:0px;--pad-top:90px;--pad-bottom:max(14px, env(safe-area-inset-bottom));--fs:clamp(28px, 10.5vw, 60px);--row:calc(var(--fs) * 1.04);--rgap:10px}
 .story-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--row) minmax(0,1fr) var(--row);row-gap:var(--rgap)}
 .story-visual{grid-area:2/1}
 .story-chapters{grid-area:1/1/4/2}
 .story-heading{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--row) minmax(0,1fr) var(--row);row-gap:var(--rgap);line-height:1;text-wrap:nowrap}
 .story-line:first-child,.story-line:last-child{justify-self:center;text-align:center;white-space:nowrap;margin:0}
 .story-line:first-child{grid-area:1/1}.story-line:last-child{grid-area:3/1}
 .story-actions,.story-place{display:none}
 .story-hint{--track:46px;right:calc((100% - var(--pw)) / 4)}.story-hint-text{font-size:9px}
 .story-orbit{width:calc(var(--pw) * 1.35)}.orbit-two{width:calc(var(--pw) * 1.7)}
 .spark-one{right:4%}.spark-two{left:4%}
}
@media(max-width:760px){
 .phone-story-page .top{padding:15px 20px}.phone-story-page .top .wm{font-size:17px}.phone-story-page .top .mark{width:31px;height:31px}.phone-story-page .top .signin{font-size:12px;padding-right:0}.phone-story-page .top .lang{font-size:10px;padding:8px 10px}
 .story-after{padding-top:70px;padding-bottom:0}.story-after h2{font-size:37px}.story-after>p:not(.kicker){font-size:15px}.story-after .kicker{font-size:9px}
}
@media(max-width:760px) and (max-aspect-ratio:5/4){.phone-story{--pad-top:66px;--rgap:8px}}
@media(max-width:360px){
 .phone-story-page .top{flex-wrap:nowrap;gap:5px;padding-inline:12px}
 .phone-story-page .top .logo{gap:5px}.phone-story-page .top .wm{font-size:13px}.phone-story-page .top .mark{width:25px;height:25px}
 .phone-story-page .top nav{gap:3px}.phone-story-page .top .signin{font-size:10px;padding-left:5px}.phone-story-page .top .lang{font-size:9px;padding:7px 8px}
 .phone-story{--pad-top:58px}.story-after{overflow-wrap:break-word}
}
@media(prefers-reduced-motion:reduce){.camera-video{display:none}}
.phone-story-page .wallet,.phone-story-page .wcard{min-width:0}
