/* Option 1.2 — a phone overwhelmed by notifications, then one clear message. */
.phone-stage {
 --phone-h:min(600px,calc(100svh - 190px));
 --phone-w:calc(var(--phone-h) / 1.96);
 --phone-top:155px;
 height:100svh;min-height:0;max-height:none;
 background:#fff;overflow:hidden;
}
.phone-story {height:190svh;min-height:1100px;background:#fff}
.phone-story-heading {position:absolute;top:31px;left:16px;right:16px;z-index:35;text-align:center;pointer-events:none}
.phone-story-heading h2 {font:450 clamp(34px,4vw,54px)/1.08 'Inter',-apple-system,sans-serif;letter-spacing:-.055em;color:#191919}
.phone-story-heading p {font-size:13px;color:#777;line-height:1.5;margin-top:13px;letter-spacing:-.2px}
.phone-halo {position:absolute;left:50%;top:calc(var(--phone-top) + var(--phone-h) * .5);width:72%;height:65%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#eceef338,transparent 64%);pointer-events:none;transition:opacity 1.4s}
.phone-frame {position:absolute;left:calc(50% - var(--phone-w) / 2);top:var(--phone-top);width:var(--phone-w);height:var(--phone-h);border-radius:calc(var(--phone-w) * .17);padding:8px;background:linear-gradient(110deg,#8c959e,#f8f9f9 9%,#fff 42%,#e0e0e4 72%,#818b96 96%,#eceef0);box-shadow:inset 0 0 0 1px #e6e7e9,0 0 0 1px #c0c5cb,0 0 0 4px #fafafa,0 22px 55px #4b536b17,0 6px 18px #454d5712}
.phone-frame:after {content:'';position:absolute;inset:4px;border:1px solid #fff;border-radius:inherit;pointer-events:none}
.phone-side-button {position:absolute;left:-3px;top:21%;height:5%;width:2px;background:linear-gradient(#a3aab1,#eff0f1,#a3aab1);border-radius:2px}
.side-button-two {top:29%;height:9%}.side-button-three{left:auto;right:-3px;top:28%;height:13%}
.phone-screen {position:relative;width:100%;height:100%;border-radius:calc(var(--phone-w) * .145);overflow:hidden;background:#f4f5f7;border:1px solid #969da68c;box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #fff;font-family:-apple-system,BlinkMacSystemFont,'Inter',sans-serif}
.phone-wallpaper {position:absolute;inset:0;background:radial-gradient(ellipse at 20% 58%,#d8dfef60,transparent 64%),radial-gradient(ellipse at 85% 20%,#e3e0ed65,transparent 60%),linear-gradient(135deg,#f5f6f8,#eef0f3 65%,#fff);transition:opacity 1.4s}
.phone-status {position:absolute;top:4%;left:9%;right:9%;display:flex;align-items:center;justify-content:space-between;font-size:calc(var(--phone-w) * .035);font-weight:600;color:#303238}
.phone-status-icons svg {width:calc(var(--phone-w) * .13);height:auto}
.dynamic-island {position:absolute;left:35%;top:2.8%;width:30%;height:4.8%;border-radius:30px;background:linear-gradient(155deg,#343c43,#070b10 60%);box-shadow:inset 0 1px 3px #55606e,0 1px 3px #363e5055}
.dynamic-island i {position:absolute;right:10%;top:25%;height:50%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 45% 40%,#26466a,#17232c 43%,#050c14 70%);box-shadow:0 0 0 1px #11181f}
.phone-clock {position:absolute;top:13%;left:0;right:0;text-align:center;color:#363d49;transition:color 1s}
.phone-clock span {font-size:calc(var(--phone-w) * .037);font-weight:500;letter-spacing:-.15px}
.phone-clock strong {display:block;font-size:calc(var(--phone-w) * .235);line-height:1.13;font-weight:350;letter-spacing:-.055em}
/* The same compact layout is used in the stack, waterfall, and overflow. */
.phone-notification-viewport {position:absolute;left:5%;right:5%;top:36%;height:41%;z-index:4;overflow:hidden;pointer-events:none;mask-image:linear-gradient(#000 0 80%,transparent 100%)}
.phone-inbox,.phone-waterfall {position:absolute;inset:0}
.ios-notification {display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:11px 12px;border:1px solid #ffffffb8;border-radius:21px;background:linear-gradient(125deg,#ffffffad,#f5f6fa96);box-shadow:inset 0 1px 1px #ffffffed,inset 0 -1px 1px #ccd2df48,0 5px 17px #34445c12;backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);font-family:-apple-system,BlinkMacSystemFont,'Inter',sans-serif;color:#24262d;text-align:left}
.real-app-icon {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:23%;box-shadow:0 0 0 .5px #00000006}
.ios-notification-copy{min-width:0}
.ios-notification-head {display:flex;justify-content:space-between;align-items:baseline;gap:7px;margin-bottom:2px;line-height:1.25}
.ios-notification-head strong {font-size:12px;font-weight:600;letter-spacing:-.16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ios-notification-head time {font-size:9px;color:#757981;flex-shrink:0}
.phone-stage .ios-notification p {font-size:12px;line-height:1.3;letter-spacing:-.12px;color:#34363c;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.arrival-card,.waterfall-card {position:absolute;top:0;left:0;width:100%;min-height:68px;opacity:0;will-change:transform,opacity;grid-template-columns:calc(var(--phone-w) * .104) minmax(0,1fr);padding:10px;border-radius:18px}
.arrival-card .ios-notification-head strong,.waterfall-card .ios-notification-head strong,.phone-stage .arrival-card p,.phone-stage .waterfall-card p {font-size:calc(var(--phone-w) * .041)}
.arrival-card .ios-notification-head time,.waterfall-card .ios-notification-head time{font-size:calc(var(--phone-w) * .03)}
.swipe-hand {position:absolute;left:58%;top:61%;z-index:12;width:43px;height:58px;opacity:0;pointer-events:none;filter:drop-shadow(0 3px 4px #15223722)}
.swipe-hand svg{position:relative;width:100%;height:100%;fill:#fffffff0;stroke:#b6bdc8;stroke-width:1.25;stroke-linejoin:round}
.touch-ring{position:absolute;width:32px;height:32px;left:3px;top:-9px;border:2px solid #ffffffc9;border-radius:50%;box-shadow:0 0 0 7px #ffffff38}
.phone-overflow {position:absolute;inset:0;z-index:5;pointer-events:none}
.phone-overflow .notification {left:50%;top:calc(var(--phone-top) + var(--phone-h) * .48);width:clamp(242px,22vw,305px);min-height:78px;opacity:0;filter:none;will-change:transform,opacity;transform:translate(calc(-50% + var(--dx) * var(--travel,0)),calc(-50% + var(--dy) * var(--travel,0))) rotate(calc(var(--r) * var(--travel,0))) scale(var(--scale,.72));transition:none}
.phone-stage.is-on .phone-overflow .notification {opacity:0;filter:blur(5px);transform:translate(-50%,-50%) scale(.4);transition:opacity .48s,filter .6s,transform .75s var(--ease)}
.phone-mode {position:absolute;z-index:30;bottom:7%;left:5%;right:5%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px 10px 13px;border:1px solid #fff;background:linear-gradient(145deg,#ffffffba,#f8f9fbdb);border-radius:20px;box-shadow:0 2px 10px #45506408;backdrop-filter:blur(16px)}
.phone-mode-label {display:flex;flex-direction:column;gap:4px;color:#383d45}
.phone-mode-label strong {font-size:calc(var(--phone-w) * .039);font-weight:600;letter-spacing:-.3px;white-space:nowrap}
.phone-mode-label>span {font-size:calc(var(--phone-w) * .027);color:#899099;white-space:nowrap}
.phone-mode-switch {flex-shrink:0;position:relative;width:68px;height:42px;min-height:42px;border-radius:30px;border:1px solid #cfd3d9;background:linear-gradient(#daddE3,#e9eaee);box-shadow:inset 0 1px 4px #59647320;transition:background .6s,border-color .6s}
.phone-switch-thumb {position:absolute;top:3px;left:3px;width:34px;height:34px;border:2px solid #fff;border-radius:50%;overflow:hidden;box-shadow:0 2px 5px #3c445e25;filter:grayscale(1);transition:transform .6s cubic-bezier(.2,1.2,.3,1),filter .6s}
.phone-switch-thumb img {width:100%;height:100%;display:block}
.phone-switch-check {position:absolute;left:10px;top:10px;color:#fff;font-size:15px;opacity:0;transition:opacity .4s}
.phone-mode-switch[aria-checked=true]{background:linear-gradient(#51d279,#44c66d);border-color:#4ac774}
.phone-mode-switch[aria-checked=true] .phone-switch-thumb {transform:translateX(26px);filter:grayscale(0)}
.phone-mode-switch[aria-checked=true] .phone-switch-check {opacity:1}
.phone-home-indicator {position:absolute;left:34%;right:34%;bottom:2%;height:4px;background:#585d67;border-radius:5px;opacity:.7}
.phone-important {position:absolute;top:38%;left:5%;right:5%;z-index:10;display:grid;grid-template-columns:calc(var(--phone-w) * .105) 1fr;align-items:center;gap:9px;padding:12px;background:linear-gradient(135deg,#ffffffe8,#ffffffcb);border:1px solid #ffffffc9;border-radius:21px;box-shadow:0 5px 18px #505d720b;backdrop-filter:blur(18px);opacity:0;visibility:hidden;transform:translateY(18px) scale(.94);transition:opacity .8s .55s,transform 1.1s var(--ease) .5s,visibility 0s .5s;color:#272b32}
.notification-identity{position:relative;display:block;align-self:center}.notification-source{position:absolute;right:-5px;bottom:-5px;width:19px;height:19px;padding:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000018}.notification-source img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.phone-notification-avatar {display:block;width:100%;height:auto;aspect-ratio:1;border-radius:9px}
.phone-notification-copy {min-width:0}
.phone-notification-top {display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:2px}
.phone-notification-top strong {font-size:calc(var(--phone-w) * .042);font-weight:600;letter-spacing:-.12px}
.phone-notification-top time {font-size:calc(var(--phone-w) * .032);color:#8a8f98;font-weight:400}
.phone-notification-copy p {font-size:calc(var(--phone-w) * .041);font-weight:400;line-height:1.3;letter-spacing:-.12px}
.phone-stage.is-on .phone-important {opacity:1;visibility:visible;transform:translateY(0) scale(1)}


.phone-stage.is-on .phone-wallpaper {opacity:.35}.phone-stage.is-on .phone-halo{opacity:0}
.phone-story-footer {bottom:17px;left:3%;right:3%;z-index:40;color:#aaa;font-size:9px}
.phone-scene-controls {display:flex;align-items:center;gap:8px}
.phone-story-footer .replay-button {background:#ffffffc9;backdrop-filter:blur(8px);border:1px solid #eeeeee;font-size:10px;padding:7px 12px}
.option-links {display:flex;align-items:center;gap:12px;font-size:11px}
.option-links a {text-decoration:none;color:#909090}.option-links a[aria-current=page]{color:#222}.option-links a:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-height:950px){.phone-stage{--phone-top:180px;--phone-h:650px}.phone-story-heading{top:43px}}
@media(max-width:700px){
 .phone-stage{--phone-top:137px;--phone-h:min(565px,calc(100svh - 193px));--phone-w:calc(var(--phone-h) / 1.94)}
 .phone-story-heading{top:31px}.phone-story-heading h2{font-size:39px}.phone-story-heading p{font-size:11px;margin-top:12px}
 .phone-overflow .notification{width:248px;grid-template-columns:32px minmax(0,1fr);padding:11px 12px;border-radius:20px}
 .phone-overflow .notification{transform:translate(calc(-50% + var(--mdx) * var(--travel,0)),calc(-50% + var(--mdy) * var(--travel,0))) rotate(calc(var(--r) * var(--travel,0))) scale(var(--scale,.72))}

 .phone-stage.is-on .phone-overflow .notification{transform:translate(-50%,-50%) scale(.35)}
 .phone-important{padding:12px;border-radius:18px}.phone-mode{padding:9px 9px 9px 11px;border-radius:18px}
 .phone-story-footer{bottom:16px;left:15px;right:15px;font-size:8px}.phone-scene-controls{gap:5px}.phone-story-footer .replay-button{padding:7px 9px;font-size:9px}
}
@media(max-width:700px) and (max-height:690px){
 .phone-stage{--phone-top:118px;--phone-h:calc(100svh - 169px)}.phone-story-heading{top:22px}.phone-story-heading h2{font-size:32px}.phone-story-heading p{font-size:10px;margin-top:10px}
 .phone-important{top:36%;padding:10px;border-radius:15px;gap:7px}.phone-notification-top strong{font-size:10px}.phone-notification-copy p{font-size:10px}.phone-notification-top time{font-size:8px}
 .phone-mode{bottom:6%;padding:7px 8px;border-radius:16px}.phone-mode-label strong{font-size:10px}.phone-mode-label>span{font-size:7px}.phone-mode-switch{width:57px;height:36px;min-height:36px}.phone-switch-thumb{width:28px;height:28px}.phone-mode-switch[aria-checked=true] .phone-switch-thumb{transform:translateX(21px)}.phone-switch-check{left:8px;top:8px;font-size:13px}
 .phone-status{font-size:8px}.phone-notification-viewport{top:35%}.arrival-card,.waterfall-card{padding:8px;gap:6px;border-radius:14px}.notification-source{width:16px;height:16px;right:-4px;bottom:-4px}
 .phone-story-footer{bottom:9px}.phone-story-footer .replay-button{min-height:32px}
}
@media(prefers-reduced-motion:reduce){.phone-story{height:110svh;min-height:0}#scene-motion{display:none}.phone-overflow .notification{filter:none}.phone-stage.is-on .phone-overflow .notification{transform:translate(-50%,-50%) scale(.1)}}

.imessage-badge{overflow:hidden;background:#fff}.imessage-badge img{display:block;width:100%;height:100%;object-fit:cover;border-radius:7px}
.phone-scene-controls .sound-button{gap:5px}.sound-button svg{width:12px;height:12px;stroke-width:1.6}.sound-button[aria-pressed=true]{color:#2f7248;border-color:#d1e9d9;background:#f5fbf7}
@media(max-width:420px){.phone-story-footer>span{position:absolute;bottom:42px;left:0;right:0;text-align:center}.phone-scene-controls{width:100%;justify-content:center}.phone-story-footer .replay-button{min-height:34px}}
@media(prefers-reduced-motion:reduce){.swipe-hand{display:none}}
.phone-stage .ios-notification p{white-space:normal;text-overflow:clip}
.phone-story-footer .sound-button span{font-size:inherit}

/* Present mode is a page control beneath the section copy, above the phone. */
.phone-stage{--phone-top:215px;--phone-h:min(570px,calc(100svh - 275px))}
.phone-mode{top:120px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:218px;padding:7px 9px 7px 15px;gap:16px;border-radius:28px;background:linear-gradient(145deg,#fffffff2,#f7f8fae6);border-color:#eeeeef;box-shadow:inset 0 1px 0 #fff,0 7px 20px #1c263009}
.phone-mode-label strong{font-size:12px}.phone-mode-label>span{font-size:9px}
@media(min-height:950px){.phone-stage{--phone-top:236px;--phone-h:620px}.phone-mode{top:139px}}
@media(max-width:700px){.phone-stage{--phone-top:205px;--phone-h:min(540px,calc(100svh - 268px))}.phone-mode{top:117px;width:206px;padding:7px 9px 7px 14px;border-radius:27px}}
@media(max-width:700px) and (max-height:690px){.phone-stage{--phone-top:164px;--phone-h:calc(100svh - 217px)}.phone-mode{top:100px;bottom:auto;width:188px;padding:6px 8px 6px 13px}.phone-mode-label strong{font-size:11px}.phone-mode-label>span{font-size:8px}.phone-story-footer>span{display:none}}

/* iPhone stack study: bottom arrivals, app groups, tap to expand, then scroll history. */
.phone-stage{--card-h:clamp(62px,calc(var(--phone-w) * .255),81px)}
.phone-wallpaper{background:radial-gradient(ellipse at 10% 85%,#bac6d25c,transparent 62%),radial-gradient(ellipse at 95% 10%,#bfc6d957,transparent 68%),linear-gradient(148deg,#f5f6f8,#dce2eb 55%,#f5f6f8)}
.phone-wallpaper:after{content:'';position:absolute;width:135%;height:110%;left:24%;top:-23%;border-radius:50%;transform:rotate(-31deg);background:linear-gradient(90deg,#ffffff03,#ffffff91 46%,#bcc5d53a 47%,#e8ecf252);box-shadow:-1px 0 2px #ffffffa3}
.phone-notification-viewport{top:34%;height:auto;bottom:16%;mask-image:linear-gradient(transparent,#000 3%,#000 96%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 3%,#000 96%,transparent)}
.arrival-card{height:var(--card-h);min-height:0;padding:9px 10px;gap:8px;border-radius:calc(var(--phone-w) * .062);transform-origin:center top;background:linear-gradient(135deg,#ffffff69,#eff3f791);border-color:#ffffffad;box-shadow:inset 0 1px 1px #ffffffc9,inset 0 -1px 1px #b2bbc929,0 3px 7px #2537520b;backdrop-filter:blur(22px) saturate(130%);-webkit-backdrop-filter:blur(22px) saturate(130%)}
.arrival-card.is-under{background:linear-gradient(135deg,#dbe1ebed,#e9edf4ef)}
.arrival-card.is-under .real-app-icon,.arrival-card.is-under .ios-notification-copy{visibility:hidden}
.phone-stage .arrival-card p,.arrival-card .ios-notification-head strong{font-size:clamp(9px,calc(var(--phone-w) * .041),13px);line-height:1.24;letter-spacing:-.13px}
.notification-group-count{display:block;font-size:calc(var(--phone-w) * .029);line-height:1.2;color:#6d747e;margin-top:4px;letter-spacing:-.1px}
.notification-group-count:empty{display:none}
.phone-stage .arrival-card.has-more p{-webkit-line-clamp:1}
.expanded-group-label{position:absolute;inset:0 5px auto;display:flex;justify-content:space-between;align-items:center;height:25px;font-size:calc(var(--phone-w) * .036);font-weight:600;opacity:0;color:#545c69}
.expanded-group-label>span:last-child{font-size:calc(var(--phone-w) * .029);font-weight:500}.expanded-group-label b{display:inline-grid;place-items:center;width:18px;height:18px;margin-left:5px;border-radius:50%;background:#ffffff6e;font-size:14px;font-weight:400}
.swipe-hand{top:0;left:63%;width:38px;height:49px;filter:drop-shadow(0 2px 3px #15223720)}
.touch-ring{width:27px;height:27px;left:2px;top:-6px;border-width:1.5px;box-shadow:0 0 0 5px #ffffff38}
.phone-lock-actions{position:absolute;bottom:5%;left:9%;right:9%;display:flex;justify-content:space-between;color:#4b5360;pointer-events:none}
.phone-lock-actions>span{width:calc(var(--phone-w) * .125);aspect-ratio:1;display:grid;place-items:center;background:#c8ced65c;border:1px solid #ffffff91;border-radius:50%;backdrop-filter:blur(12px)}
.phone-lock-actions svg{width:52%;height:52%}
.phone-status .lock-symbol svg{width:11px;height:14px;fill:currentColor}
.phone-important{top:34%;bottom:auto;border-radius:calc(var(--phone-w) * .062);background:linear-gradient(135deg,#ffffffa9,#f4f6f9b5);box-shadow:inset 0 1px 1px #ffffffde,0 3px 12px #26364d0a}
.phone-stage.is-on .phone-wallpaper{opacity:.65}
.phone-overflow .notification{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
@media(max-width:700px) and (max-height:690px){.phone-notification-viewport{top:32%;bottom:17%}.arrival-card{padding:7px;gap:6px}.phone-important{top:32%;bottom:auto;padding:9px}.swipe-hand{width:31px;height:41px}.phone-status .lock-symbol svg{width:8px;height:11px}}
@media(prefers-reduced-motion:reduce){.arrival-card,.phone-overflow .notification,.phone-important,.phone-switch-thumb{transition:none!important}.swipe-hand{display:none}}

@media(min-width:701px){.phone-mode{top:134px}.phone-stage{--phone-top:224px}}
@media(min-width:701px) and (min-height:950px){.phone-mode{top:146px}.phone-stage{--phone-top:240px}}
.phone-important{transition:none}
.phone-stage.is-on .phone-important{transition:opacity .45s,transform .55s var(--ease),visibility 0s}

/* Content-sized banners: native-like density, instead of uniformly tall cards. */
.phone-stage{--phone-w:calc(var(--phone-h) / 2.069)}
.phone-status .lock-symbol{visibility:hidden}
.arrival-card{height:auto;min-height:0;padding:calc(var(--phone-w) * .031) calc(var(--phone-w) * .034);gap:calc(var(--phone-w) * .028);border-radius:calc(var(--phone-w) * .055);grid-template-columns:calc(var(--phone-w) * .101) minmax(0,1fr)}
.phone-stage .arrival-card p,.arrival-card .ios-notification-head strong{font-size:clamp(8px,calc(var(--phone-w) * .037),12px);line-height:1.23;letter-spacing:-.1px}
.arrival-card .ios-notification-head{margin-bottom:1px}
.arrival-card .ios-notification-head time{font-size:calc(var(--phone-w) * .027)}
.notification-group-count{font-size:calc(var(--phone-w) * .027);margin-top:3px;line-height:1.16}
.phone-important{padding:calc(var(--phone-w) * .031) calc(var(--phone-w) * .034);gap:calc(var(--phone-w) * .028);border-radius:calc(var(--phone-w) * .055);grid-template-columns:calc(var(--phone-w) * .101) 1fr}
.phone-notification-copy p,.phone-notification-top strong{font-size:calc(var(--phone-w) * .037);line-height:1.23}
.phone-notification-top time{font-size:calc(var(--phone-w) * .027)}
.phone-notification-top{margin-bottom:1px}
.phone-overflow .notification{min-height:0;padding:10px 11px;gap:8px;border-radius:17px;grid-template-columns:30px minmax(0,1fr)}
.phone-overflow .notification .ios-notification-head strong,.phone-stage .phone-overflow .notification p{font-size:11px;line-height:1.23}
@media(max-width:700px) and (max-height:690px){.phone-notification-copy p,.phone-notification-top strong{font-size:9px}.phone-notification-top time{font-size:7px}}

/* Group count and shallow glass sheets, based on the supplied iPhone screenshot. */
.notification-app{position:relative;display:block;width:100%;align-self:center}
.notification-count{position:absolute;right:-18%;top:-19%;display:grid;place-items:center;min-width:1.55em;height:1.55em;padding:0 .23em;border-radius:999px;background:#fff;color:#57585c;font-size:10px;font-weight:600;line-height:1;letter-spacing:-.04em;box-shadow:0 1px 3px #26334b25}
.notification-count:empty{display:none}
.arrival-card .notification-count{font-size:calc(var(--phone-w) * .037)}
.arrival-card.is-under .notification-app{visibility:hidden}
.ios-notification.has-stack{box-shadow:inset 0 1px 1px #ffffffc9,0 6px 0 -2px #e1e5edc9,0 7px 0 -2px #ffffffbd,0 12px 0 -4px #d4dae5b8,0 13px 0 -4px #ffffffb0,0 14px 8px -5px #26354d14}
.phone-overflow .notification.has-stack{background:linear-gradient(125deg,#ffffffcc,#f0f2f7b5)}

/* A decisive clear, then a brief emphasis on the only remaining message. */
.phone-stage.is-on .phone-overflow .notification{transition:opacity .20s ease-out,filter .24s ease-out,transform .32s cubic-bezier(.4,0,.8,.3);filter:blur(7px)}
.phone-stage.is-on .phone-important{background:linear-gradient(135deg,#fffffff5,#ffffffe5);box-shadow:inset 0 1px 1px #fff,0 7px 24px #26364d1c;animation:present-arrives .68s cubic-bezier(.18,.8,.25,1) both;transition:none}
@keyframes present-arrives{0%{opacity:0;transform:translateY(8px) scale(.91)}20%{opacity:.3}58%{opacity:1;transform:translateY(0) scale(1.045)}100%{opacity:1;transform:translateY(0) scale(1)}}
.phone-mode-switch[aria-checked=true]{box-shadow:0 0 0 4px #4ac77416,inset 0 1px 1px #ffffff45}
@media(prefers-reduced-motion:reduce){.phone-stage.is-on .phone-important{animation:none;opacity:1;transform:none}.phone-stage.is-on .phone-overflow .notification{transition:none}}

/* Off: a wall of notifications behind the phone. On: the entire backdrop clears. */
.phone-frame{z-index:10}
.phone-backdrop{z-index:2;opacity:1;visibility:visible;transform:scale(1);filter:none;transition:opacity .20s ease-out,transform .30s ease-out,filter .20s ease-out,visibility 0s;transform-origin:50% 55%}
.phone-backdrop .notification,.phone-stage.is-on .phone-backdrop .notification{opacity:1;filter:none;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--r));transition:none}
.phone-stage.is-on .phone-backdrop{opacity:0;visibility:hidden;transform:scale(1.025);filter:blur(3px);transition:opacity .20s ease-out,transform .30s ease-out,filter .20s ease-out,visibility 0s .20s}
@media(max-width:700px){.phone-backdrop .notification,.phone-stage.is-on .phone-backdrop .notification{transform:translate(calc(-50% + var(--mdx)),calc(-50% + var(--mdy))) rotate(var(--r))}}
@media(prefers-reduced-motion:reduce){.phone-backdrop,.phone-stage.is-on .phone-backdrop{transition:none;transform:none;filter:none}}
.motion-paused .phone-stage.is-on .phone-important{animation:none;opacity:1;transform:none}

/* The scene has one discreet, accessible sound control. */
.phone-story-footer{justify-content:flex-end}
.phone-story-footer .sound-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#777;transition:color .2s,background .2s}
.phone-story-footer .sound-button:hover{color:#333;background:#f4f4f4}
.phone-story-footer .sound-button svg{width:20px;height:20px;stroke-width:1.6}
.sound-button .sound-muted{display:none}
.sound-button[aria-pressed=false] .sound-waves{display:none}
.sound-button[aria-pressed=false] .sound-muted{display:block}
