/* Scenes for Works offline (.wo), Dictionary and word packs (.wd), and Command Mode (.we), drawn on the
   520 by 390 stage from why.css. why-a.js plays them while they are on screen. */
.wo, .wd, .we { font-family: var(--text); color: #1D1D1F; letter-spacing: -.012em; }
.why-v:not(.live) .wo *, .why-v:not(.live) .wd *, .why-v:not(.live) .we * { animation-play-state: paused !important; }

/* Works offline: a small Mac screen drawn in points and zoomed 1.5x. A dictation goes into Notes, the
   pointer turns Wi-Fi off in its menu, and the next dictation goes in the same way. */
.why-v.wo-v { background: #8EC5F2 url(assets/wall-blossom.webp) 62% 34% / auto 150% no-repeat; }
.wo-dk { position: absolute; left: 0; top: 0; width: 346.667px; height: 260px; zoom: 1.5; letter-spacing: 0; }
.wo-mb { position: relative; z-index: 3; padding: 0 4px 0 14px; }
.wo-mb > .wo-mx { display: grid; place-items: center; height: 22px; padding: 0 6px; border-radius: 6px; transition: background-color .2s var(--ease); }
.wo-mb .wo-mx > * { grid-area: 1 / 1; margin: 0; }
.wo .mb-hp { opacity: 1; }
.wo-mb > .wo-ck { padding: 0 6px 0 8px; }
.wo-wf { transition: opacity .2s var(--ease); }
.wo-wf.x, .wo.off .wo-wf { opacity: 0; }
.wo.off .wo-wf.x { opacity: 1; }
.wo.menu .wo-wfx { background: rgba(0, 0, 0, .1); }

.wo-nt { position: absolute; left: 22px; top: 40px; width: 302px; height: 150px; overflow: hidden; border-radius: 10px; background: #fff; color: rgba(0, 0, 0, .85); font: 13px/1.38 var(--text);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 18px 46px rgba(0, 0, 0, .24), 0 2px 8px rgba(0, 0, 0, .1); }
.wo-tb { display: flex; align-items: center; gap: 15px; height: 44px; padding: 0 16px 0 18px; color: rgba(0, 0, 0, .5); }
.wo-tb .tl3 { margin-right: auto; }
.wo-tb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wo-aa { font: 500 14px/1 var(--text); }
.wo-pg { padding: 0 24px; }
.wo-pg small { display: block; font-size: 11px; line-height: 14px; color: rgba(0, 0, 0, .36); text-align: center; }
.wo-pg h4 { margin-top: 8px; font: 700 17px/1.3 var(--sans); letter-spacing: -.01em; }
.wo-tx { margin-top: 3px; transition: opacity .4s var(--ease); }
.wo-tx .w { display: inline-block; }
.wo-tx .nw { animation: wo-in .34s var(--ease) both; animation-delay: calc(var(--n) * 32ms); }
@keyframes wo-in { from { opacity: 0; filter: blur(3px); } }
.wo.fade .wo-tx { opacity: 0; }
.wo-c { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: #007AFF; animation: k-blink 1.06s steps(1) infinite; }

/* The Wi-Fi menu: it fades in and drops 4 pt into place; with Wi-Fi off the network list folds away */
.wo-mn { position: absolute; right: 6px; top: 27px; z-index: 4; width: 220px; padding: 5px; border-radius: 10px; color: rgba(0, 0, 0, .85); font: 13px/1 var(--text);
  background: rgba(244, 244, 246, .8); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .16), 0 10px 30px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.wo.menu .wo-mn { opacity: 1; visibility: visible; transform: none; transition-duration: .13s, .13s, 0s; transition-delay: 0s; }
.wo-hd { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 9px; }
.wo-hd b { font-weight: 700; }
.wo-sw { position: relative; width: 26px; height: 15px; border-radius: 99px; background: #007AFF; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); transition: background-color .2s var(--ease); }
.wo-sw::after { content: ""; position: absolute; left: 1px; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 .5px 1.5px rgba(0, 0, 0, .3); transform: translateX(11px); transition: transform .2s var(--ease); }
.wo.off .wo-sw { background: rgba(0, 0, 0, .13); }
.wo.off .wo-sw::after { transform: none; }
.wo-sep { display: block; height: .5px; margin: 4px 9px; background: rgba(0, 0, 0, .12); }
.wo-kn { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease), opacity .2s var(--ease); }
.wo-kn > div { min-height: 0; overflow: hidden; }
.wo.off .wo-kn { grid-template-rows: 0fr; opacity: 0; }
.wo-kn small { display: block; padding: 5px 9px 3px; font-size: 11px; font-weight: 600; line-height: 14px; color: rgba(0, 0, 0, .45); }
.wo-nw { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px 0 6px; }
.wo-ni { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #007AFF; color: #fff; }
.wo-ni svg { width: 13px; height: 9.2px; }
.wo-nw b { flex: 1; font-weight: 400; }
.wo-lk { width: 12px; height: 12px; fill: none; stroke: rgba(0, 0, 0, .4); stroke-width: 2.2; stroke-linecap: round; }
.wo-it { height: 24px; padding: 0 9px; line-height: 24px; }

.wo-fb { position: absolute; left: 0; right: 0; bottom: 18px; height: 28px; }
.wo-cur { position: absolute; left: 0; top: 0; z-index: 6; width: 12.7px; height: 18.7px; opacity: 0; filter: drop-shadow(0 .7px 1px rgba(0, 0, 0, .35)); translate: 250px 150px; transform-origin: 1.3px 1.3px; transition: translate .8s var(--ease), opacity .3s var(--ease), scale .12s var(--ease); }
.wo-cur.on { opacity: 1; }
.wo-cur.dn { scale: .86; }

/* Dictionary and word packs: words come in as heard, and the ones a pack or the Dictionary knows
   flip to the right spelling. The chip of the pack that knew the word lights up. */
.wd-tx { position: absolute; left: 36px; top: 58px; width: 460px; font: 600 32px/1.4 var(--sans); letter-spacing: -.028em; transition: opacity .45s var(--ease); }
.wd.fade .wd-tx, .wd.fade .wd-pk { opacity: 0; }
.wd-w { opacity: 0; transition: opacity .28s var(--ease); }
.wd-w.in { opacity: 1; }
.wdf { position: relative; display: inline-grid; transition: width .5s var(--ease); }
.wdf > span { position: relative; grid-area: 1 / 1; justify-self: start; white-space: nowrap; }
.wdf i { display: inline-block; font-style: normal; transition: opacity .26s var(--ease), transform .45s var(--ease), filter .26s var(--ease); transition-delay: calc(var(--n) * 8ms); }
.wdf-b i { opacity: 0; transform: translateY(.36em); filter: blur(4px); }
.wdf.fix .wdf-a i { opacity: 0; transform: translateY(-.36em); filter: blur(4px); }
.wdf.fix .wdf-b i { opacity: 1; transform: none; filter: none; transition-delay: calc(60ms + var(--n) * 11ms); }
.wdf-a::after { content: ""; position: absolute; left: 0; right: var(--pr, 0); bottom: -1px; height: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='4' viewBox='0 0 6 4'%3E%3Cpath d='M0 3 1.5 1 3 3 4.5 1 6 3' fill='none' stroke='%23FF3B30' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 6px 4px repeat-x; transition: opacity .2s var(--ease); }
.wdf.fix .wdf-a::after { opacity: 0; }
.wdf::before { content: ""; position: absolute; inset: .06em -.14em .02em; border-radius: .2em; background: rgba(0, 122, 255, .1); opacity: 0; transition: opacity .5s var(--ease) .15s; }
.wdf.fix::before { opacity: 1; }
.wd-c { position: relative; display: inline-block; width: 0; height: 1em; }
.wd-c::after { content: ""; position: absolute; left: 3px; top: -.06em; width: 2.5px; height: 1.16em; border-radius: 1px; background: #007AFF; animation: k-blink 1.06s steps(1) infinite; }
.wd-pk { position: absolute; left: 36px; bottom: 36px; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; transition: opacity .45s var(--ease); }
.wd-pk span { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 9px; border-radius: 99px; background: #F5F5F7; color: var(--ink2); font-size: 16px; font-weight: 500; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.wd-pk i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.wd-pk svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s var(--ease) .12s; }
.wd-pk .on { background: rgba(0, 122, 255, .1); color: #007AFF; animation: wd-pop .5s var(--ease); }
.wd-pk .on i { background: #007AFF; box-shadow: inset 0 0 0 1.5px #007AFF; }
.wd-pk .on svg { stroke-dashoffset: 0; }
@keyframes wd-pop { 40% { transform: scale(1.05); } }

/* Command Mode: the sentence is selected, the change is said, and the new text sweeps in where the old
   text was. */
.we-doc { position: absolute; left: 32px; top: 24px; width: 456px; height: 160px; padding: 12px 24px 0; border-radius: 20px; background: #F5F5F7; }
.we-hd { display: flex; align-items: center; gap: 10px; height: 44px; box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .12); font-size: 16px; }
.we-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #DCDCE1; color: #6B6B70; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.we-hd b { font-weight: 600; } .we-hd span { margin-left: auto; color: var(--ink3); }
.we-tx { margin-top: 16px; font: 500 25px/1.42 var(--sans); letter-spacing: -.022em; text-wrap: balance; }
.cw { transition: background-color .14s linear, opacity .22s var(--ease), filter .22s var(--ease); transition-delay: calc(var(--n) * 34ms), calc(var(--n) * 14ms), calc(var(--n) * 14ms); }
.we-tx.sel .cw { background-color: #B3D7FF; }
.we-tx.out .cw { opacity: 0; filter: blur(4px); }
.we-tx.new .cw { animation: we-in 1.25s var(--ease) backwards; animation-delay: calc(var(--n) * 60ms); }
.we-tx.back .cw { animation: we-bk .45s var(--ease) backwards; }
@keyframes we-in { 0% { opacity: 0; filter: blur(6px); background-color: #B3D7FF; } 28% { opacity: 1; filter: none; background-color: #B3D7FF; } 100% { background-color: rgba(179, 215, 255, 0); } }
@keyframes we-bk { from { opacity: 0; } }
.we-say { position: absolute; left: 0; right: 0; top: 202px; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.022em; }
.we-say span { opacity: 0; filter: blur(5px); transition: opacity .3s var(--ease), filter .3s var(--ease); }
.we-say span.in { opacity: 1; filter: none; }
.we-row { position: absolute; left: 0; right: 0; top: 248px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.we .key small { font-size: 17px; } .we .key b { font-size: 15px; }
.we-fb { position: absolute; left: 0; right: 0; top: 324px; height: 42px; --s: 1.5; }
