@font-face{font-family:Outfit;src:url(fonts/Outfit.ttf) format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:"DM Sans";src:url(fonts/DMSans.ttf) format("truetype");font-weight:100 1000;font-display:swap}
/* Margin 7 dark theme values from the design system tokens. The shop inside the frame keeps its own neutral skin. */
:root{--bg:#191918;--surface:#242423;--raised:#2e2b30;--text:#f6f1ea;--muted:#b9b0bb;--line:#39353d;--accent:#cbc2de;--plum:#292531;--ring:#675179;--live:#a6cfba;--ease:cubic-bezier(.2,0,0,1);--enter:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);overflow:hidden}
/* The stage is wider than a phone. A fixed body clips it, so a mobile browser does not zoom the page out to fit it. */
body{position:fixed;inset:0}
body{font:16px/1.45 "DM Sans",system-ui,sans-serif;color:var(--text)}
p,h1,figure{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* A fixed 1600 × 900 stage scaled to the window, so every viewer sees the same framing. */
#stage{position:absolute;left:50%;top:50%;width:var(--stage-w,1600px);height:var(--stage-h,900px);overflow:hidden;transform:translate(-50%,-50%) scale(var(--fit,1));background:radial-gradient(1100px 700px at 72% 12%,#2b2632 0,var(--bg) 62%)}
#lens{position:absolute;inset:0;overflow:hidden}
#world{position:absolute;left:0;top:0;width:var(--device-w);height:var(--device-h);transform-origin:0 0}
#window{position:absolute;inset:0;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line),0 34px 90px #000a}
#chrome{height:40px;display:flex;align-items:center;gap:14px;padding:0 16px;background:var(--surface);color:var(--muted);font-size:13px}
.dots{display:flex;gap:7px;width:120px}
.dots i{width:11px;height:11px;border-radius:50%;background:#4b4750}
#address{flex:1;max-width:560px;margin:auto;display:flex;align-items:center;gap:7px;height:26px;padding:0 13px;border-radius:13px;background:var(--raised);white-space:nowrap;overflow:hidden}
#address svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
#address b{color:var(--text);font-weight:500}
#address-path{min-width:0;overflow:hidden;text-overflow:ellipsis}
#live{width:120px;display:flex;justify-content:flex-end;align-items:center;gap:7px;font:600 11px/1 Outfit,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--text)}
#live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--live)}
#viewport{position:relative;width:var(--view-w);height:var(--view-h);overflow:hidden;background:#fff}
#shop{display:block;width:var(--view-w);height:var(--view-h);border:0;pointer-events:none}

/* Attention: everything outside the marked elements dims. */
#dim,#marks,#ripples{position:absolute;inset:0;pointer-events:none}
#dim{background:#191918;opacity:0;transition:opacity .36s var(--ease)}
#dim.on{opacity:.5}
.mark{position:absolute;left:0;top:0;border-radius:10px;box-shadow:0 0 0 1.5px var(--ring),0 0 0 5px var(--accent);opacity:0;transition:opacity .3s var(--ease)}
.mark.on{opacity:1}
.tag{position:absolute;left:-5px;bottom:calc(100% + 12px);white-space:nowrap;padding:9px 13px;border-radius:8px;background:var(--plum);color:var(--text);font:560 17px/1 Outfit,sans-serif;box-shadow:0 8px 22px #0005}
.tag.inside{left:10px;bottom:auto;top:10px}
.tag em{font-style:normal;color:var(--accent)}

#cursor{position:absolute;left:0;top:0;width:26px;height:26px;margin:-3px 0 0 -5px;opacity:0;pointer-events:none;filter:drop-shadow(0 2px 3px #0006)}
#cursor.on{opacity:1}
#cursor svg{display:block;transition:transform 90ms var(--ease)}
#cursor.down svg{transform:scale(.82)}
.ripple{position:absolute;width:64px;height:64px;margin:-32px;border-radius:50%;border:3px solid var(--ring);background:#cbc2de66;animation:ripple .52s var(--ease) forwards}
@keyframes ripple{from{transform:scale(.15);opacity:1}to{transform:scale(1);opacity:0}}

/* Overlay text sits on the stage, outside the camera, so it never scales or scrolls. */
#caption,#pip{position:absolute;border-radius:12px;background:#191918f2;border:1px solid var(--line);box-shadow:0 20px 56px #0008;opacity:0;pointer-events:none;transition:opacity .2s var(--ease),transform .2s var(--ease)}
#caption{left:110px;bottom:24px;max-width:1040px;padding:16px 26px 19px;transform:translateY(16px)}
#caption.on,#pip.on{opacity:1;transform:none;transition:opacity .36s var(--enter),transform .36s var(--enter)}
.over{font:600 14px/1 Outfit,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
#caption .over{margin-bottom:10px}
#caption .line{font:540 32px/1.17 Outfit,sans-serif;letter-spacing:-.022em;text-wrap:balance}
#caption .line em,#card h1 em{font-style:normal;color:var(--accent)}
#caption .sub{margin-top:8px;font-size:19px;line-height:1.35;color:var(--muted)}
.over:empty,.sub:empty,.text:empty,.foot:empty,.actions:empty{display:none}
#caption,#card{font-variant-numeric:tabular-nums}
#pip{right:52px;top:96px;width:236px;padding:13px;transform:translateY(-14px)}
#pip .label{margin-bottom:10px;font:600 12px/1 Outfit,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
#pip .shot{aspect-ratio:1.25;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#fafafa}
#pip img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
#pip .name{margin-top:10px;font-size:14px;line-height:1.3}

/* Title, end and error cards. */
#card{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:60px 150px 0;background:radial-gradient(1100px 700px at 72% 12%,#2b2632 0,var(--bg) 62%);opacity:0;visibility:hidden;transition:opacity .5s var(--ease),visibility 0s .5s}
#card.on{opacity:1;visibility:visible;transition:opacity .5s var(--ease)}
#card[data-kind=end]{background:#191918e0;backdrop-filter:blur(7px)}
#card .lockup{position:absolute;left:150px;top:76px;width:184px}
#card .over{margin-bottom:26px}
#card h1{max-width:1180px;font:600 96px/1.035 Outfit,sans-serif;letter-spacing:-.047em;text-wrap:balance}
#card .text{max-width:900px;margin-top:30px;font-size:25px;line-height:1.5;color:var(--muted);text-wrap:pretty}
#card .actions{display:flex;gap:14px;margin-top:42px}
#card .actions button{min-height:52px;padding:0 26px;border-radius:26px;border:1px solid #88818b;background:none;color:var(--text);font:560 19px/1 Outfit,sans-serif;cursor:pointer;transition:background .12s,color .12s,border-color .12s}
#card .actions button:first-child{background:var(--text);border-color:var(--text);color:var(--bg)}
#card .actions button:hover{background:var(--accent);border-color:var(--accent);color:var(--bg)}
#card .foot{position:absolute;left:150px;bottom:68px;font-size:15px;color:var(--muted)}

#progress{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:3;background:#39353d80}
#progress i{display:block;height:100%;width:0;background:var(--accent);transition:width .6s var(--ease)}
#controls{position:absolute;right:20px;bottom:14px;z-index:4;display:flex;align-items:center;gap:4px;padding:4px 16px 4px 6px;border-radius:24px;background:#242423f2;border:1px solid var(--line);font-size:14px;color:var(--muted);opacity:0;transition:opacity .2s var(--ease)}
#stage.active #controls,#controls:focus-within{opacity:1}
#controls button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}
#controls button:hover{background:var(--raised)}
#controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#chapter{min-width:118px;padding:0 10px}
#leave{color:var(--text);text-underline-offset:3px}
#stage.clean #controls,#stage.clean #progress{display:none}

/* Phone layout: a handset in the left column, a touch point for a cursor, and the text beside it. */
[data-device=phone] #window{padding:10px;border-radius:48px;background:#0c0c0d;box-shadow:0 0 0 1px #4b4750,0 34px 90px #000a}
[data-device=phone] #chrome{height:36px;gap:8px;padding:0 18px;border-radius:38px 38px 0 0}
[data-device=phone] .dots,[data-device=phone] #live span{display:none}
[data-device=phone] #live{width:auto}
[data-device=phone] #address{height:24px;margin:0;font-size:12px}
[data-device=phone] #viewport{border-radius:0 0 38px 38px}
[data-device=phone] #cursor{width:40px;height:40px;margin:-20px 0 0 -20px;filter:none}
[data-device=phone] #cursor svg{display:none}
[data-device=phone] #cursor::after{content:"";position:absolute;inset:0;border-radius:50%;background:#19191847;box-shadow:inset 0 0 0 3px #fffffff2,0 0 0 1.5px #19191899,0 4px 12px #0005;transition:transform 90ms var(--ease)}
[data-device=phone] #cursor.down::after{transform:scale(.78)}
[data-device=phone] #caption{left:770px;right:90px;bottom:auto;top:42%;max-width:none;padding:0;border:0;background:none;box-shadow:none;transform:translateY(calc(-50% + 16px))}
[data-device=phone] #caption.on{transform:translateY(-50%)}
[data-device=phone] #caption .over{margin-bottom:18px;font-size:15px}
[data-device=phone] #caption .line{font-size:46px;line-height:1.12}
[data-device=phone] #caption .sub{margin-top:16px;font-size:22px}
[data-device=phone] #pip{left:770px;right:auto;top:auto;bottom:60px;width:300px;padding:16px;transform:translateY(14px)}
[data-device=phone] #pip .label{font-size:13px}
[data-device=phone] #pip .name{font-size:16px}
[data-device=phone] #pip.on{transform:none}

/* Story format: the shop fills a 9:16 screen like the viewer's own phone, and the text lies over its lower part. */
#stage[data-format=story]{background:var(--bg)}
[data-format=story] #window{padding:0;border-radius:0;background:#fff;box-shadow:none}
[data-format=story] #chrome{height:30px;gap:8px;padding:0 12px;border-radius:0}
[data-format=story] #address{height:20px;margin:0;padding:0 10px;font-size:10.5px}
[data-format=story] #address svg{width:10px;height:10px}
[data-format=story] #live{font-size:9px}
[data-format=story] #live::before{width:5px;height:5px}
[data-format=story] #viewport{border-radius:0}
[data-format=story] .mark{border-radius:8px;box-shadow:0 0 0 1px var(--ring),0 0 0 3px var(--accent)}
[data-format=story] .tag{left:-3px;bottom:calc(100% + 7px);padding:6px 9px;border-radius:6px;font-size:12.5px}
[data-format=story] .tag.inside{left:6px;top:6px;bottom:auto}
[data-format=story] #cursor{width:34px;height:34px;margin:-17px 0 0 -17px}
[data-format=story] .ripple{width:44px;height:44px;margin:-22px;border-width:2px}
[data-format=story] #caption{left:44px;right:44px;top:auto;bottom:200px;max-width:none;padding:26px 30px 30px;border:1px solid var(--line);border-radius:22px;background:#191918f0;box-shadow:0 20px 56px #0008;transform:translateY(18px)}
[data-format=story] #caption.on{transform:none}
[data-format=story] #caption .over{margin-bottom:14px;font-size:17px}
[data-format=story] #caption .line{font-size:44px;line-height:1.14}
[data-format=story] #caption .sub{margin-top:14px;font-size:24px}
[data-format=story] #pip{left:auto;right:36px;top:96px;bottom:auto;width:270px;padding:14px;transform:translateY(-14px)}
[data-format=story] #pip.on{transform:none}
[data-format=story] #card{padding:0 70px}
[data-format=story] #card .lockup{left:70px;top:150px;width:210px}
[data-format=story] #card .over{margin-bottom:30px;font-size:17px}
[data-format=story] #card h1{max-width:none;font-size:92px}
[data-format=story] #card .text{max-width:none;margin-top:36px;font-size:31px}
[data-format=story] #card .foot{left:70px;right:70px;bottom:150px;font-size:21px}
[data-format=story] #caption.top{bottom:auto;top:132px;transform:translateY(-18px)}
[data-format=story] #caption.top.on{transform:none}
/* On a phone the stage is shown at under half its size: controls and buttons are drawn large enough to tap. */
[data-format=story] #card .actions{flex-direction:column;align-items:stretch;gap:22px;margin-top:60px}
[data-format=story] #card .actions button{min-height:112px;padding:0 48px;border-radius:56px;font-size:38px}
[data-format=story] #progress{height:7px}
[data-format=story] #controls{left:28px;right:28px;bottom:34px;gap:10px;padding:12px 34px 12px 14px;border-radius:64px;font-size:30px}
[data-format=story] #controls button{width:92px;height:92px}
[data-format=story] #controls svg{width:46px;height:46px}
[data-format=story] #chapter{flex:1;min-width:0;padding:0 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A recorded tour: the video takes the whole stage, under the end card. */
#recording{position:absolute;inset:0;z-index:1;width:100%;height:100%;background:var(--bg);object-fit:contain}
#stage[data-state=recording] #controls,#stage[data-state=recording] #progress{display:none}
/* A line of the story on its own: the shop dims and blurs behind it while it is read. */
#say{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:0 150px 40px;background:#191918cf;backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .35s var(--ease),visibility 0s .35s}
#say.on{opacity:1;visibility:visible;transition:opacity .35s var(--ease)}
#say>*{opacity:0;transform:translateY(14px);transition:opacity .45s var(--enter),transform .45s var(--enter)}
#say.on>*{opacity:1;transform:none}
#say.on .line{transition-delay:.12s}
#say.on .sub{transition-delay:.6s}
#say .over{margin-bottom:24px;font-size:16px}
#say[data-tone=bad] .over,#say[data-tone=bad] .line em{color:#e6ab9b}
#say[data-tone=good] .over,#say[data-tone=good] .line em{color:var(--live)}
#say .line{max-width:1180px;font:600 78px/1.05 Outfit,sans-serif;letter-spacing:-.042em;text-wrap:balance}
#say .line em{font-style:normal;color:var(--accent)}
#say .sub{max-width:940px;margin-top:28px;font-size:30px;line-height:1.4;color:var(--muted);text-wrap:pretty}
/* Beside a handset the line takes the column the captions use. */
[data-device=phone] #say{padding:0 90px 40px 770px}
[data-device=phone] #say .line{font-size:62px}
[data-format=story] #say{padding:0 70px 60px}
[data-format=story] #say .over{margin-bottom:28px;font-size:18px}
[data-format=story] #say .line{font-size:70px}
[data-format=story] #say .sub{margin-top:32px;font-size:33px}
