/* ============================================================
   The device. One live build inside a phone; a wall of phones for the rest.
   On a phone the device IS the viewport: no bezel, the build runs at real size.
   ============================================================ */
.device{position:relative;width:414px;max-width:100%;padding:12px;background:var(--hand);border-radius:58px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06) inset;margin-inline:auto}
.device .screen{position:relative;width:390px;max-width:100%;height:var(--ph,min(780px,calc(100vh - 200px)));min-height:560px;border-radius:46px;overflow:hidden;background:#FFF;isolation:isolate}
.device .screen iframe{display:block;width:390px;height:100%;border:0;background:#FFF}
.device .screen .loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--tx-3);font-size:.9375rem;background:#FFF;z-index:1;transition:opacity .4s var(--ease)}
.device.is-live .screen .loading{opacity:0;pointer-events:none}
.device .screen.fade iframe{opacity:0}
.device .screen iframe{transition:opacity .35s var(--ease)}
.hero-device{display:grid;justify-items:center;gap:0}
.hero-device .device{opacity:0;transform:translateY(20px);animation:rise .9s var(--ease) .15s both}
@keyframes rise{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero-device .device{animation:none;opacity:1;transform:none}}

/* the phone: the device is the page */
@media (max-width:760px){
  .device{width:100%;padding:0;background:none;border-radius:0;box-shadow:none}
  .device .screen{width:100%;height:var(--ph-m,62vh);min-height:440px;max-height:700px;border-radius:24px;border:1px solid var(--line-2)}
  .device .screen iframe{width:100%}
}

/* a phone: the build is a still that opens the viewer, so the page keeps the scroll */
.device .dev-still,.rig .dev-still{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.device .dev-play,.rig .dev-play{position:absolute;inset:0;display:grid;place-items:center;padding:0;border:0;background:rgba(14,14,16,.18);cursor:pointer}
.device .dev-play span,.rig .dev-play span{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 22px;border-radius:var(--r-s);background:#FFF;color:#0E0E10;font-weight:600;font-size:1rem;box-shadow:0 10px 30px -10px rgba(0,0,0,.5)}
.device .dev-play span::before,.rig .dev-play span::before{content:"";width:0;height:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}

/* under the device: which build this is, and the ways in */
.device-cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-top:20px;width:100%;max-width:414px}
.device-cap .who{display:grid;gap:2px;min-width:0}
.device-cap .who b{font-size:1.0625rem;letter-spacing:-.01em}
.device-cap .who span{color:var(--tx-2);font-size:.9375rem}
.device-cap .ways{display:flex;gap:8px}
.device-cap .ways a{display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line-2);font-weight:500;font-size:.9375rem;white-space:nowrap}
.device-cap .ways a:hover{border-color:var(--tx)}
.device-cap .addr{font-family:var(--mono);font-size:.75rem;color:var(--tx-3);word-break:break-all;width:100%}

/* thumbnails: pick another build, the accent follows */
.thumbs{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:8px var(--pad) 12px;margin:0 calc(-1*var(--pad));scrollbar-width:none;-webkit-overflow-scrolling:touch}
.thumbs::-webkit-scrollbar{display:none}
.thumbs button{flex:none;width:92px;scroll-snap-align:center;display:grid;gap:8px;padding:0;border:0;background:none;cursor:pointer;text-align:left}
.thumbs button .shell{position:relative;aspect-ratio:92/128;border-radius:16px;padding:3px;background:var(--hand);transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.thumbs button .shell::after{content:"";position:absolute;inset:-4px;border-radius:20px;border:2px solid transparent;transition:border-color .25s var(--ease)}
.thumbs button img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:13px;background:#FFF}
.thumbs button span{font-size:.8125rem;font-weight:500;color:var(--tx-2);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumbs button:hover .shell{transform:translateY(-3px)}
.thumbs button[aria-selected="true"] .shell::after{border-color:var(--live)}
.thumbs button[aria-selected="true"] span{color:var(--tx)}
.thumbs button:active .shell{transform:scale(.97)}

/* the wall: every build as a phone */
.walls{display:grid;gap:clamp(28px,4vw,48px)}
.wall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.5vw,32px) clamp(14px,2vw,24px);align-items:start}
.wall.wall-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.wall.wall-wide{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1000px){.wall{grid-template-columns:repeat(3,minmax(0,1fr))}.wall.wall-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* on a phone every wall is a row you swipe, the next build peeking in from the edge */
@media (max-width:640px){
  .wall,.wall.wall-3,.wall.wall-wide{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;
    margin-inline:calc(-1 * var(--pad));padding-inline:var(--pad);scroll-padding-inline:var(--pad)}
  .wall::-webkit-scrollbar{display:none}
  .wall>.tile{flex:0 0 44%;scroll-snap-align:start}
  .wall>.tile.is-wide{flex-basis:80%}
}
/* a tile: a website is a phone, a tool is a screen. The still sits under the clip, which plays once in view. */
.tile{display:grid;gap:12px;align-content:start;min-width:0}
.tile .shell{position:relative;display:block;aspect-ratio:600/1077;border-radius:28px;background:var(--hand);overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.tile.is-wide .shell{aspect-ratio:1280/800;border-radius:14px}
.tile .shell img,.tile .shell video{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);max-width:none;object-fit:cover;object-position:top;border-radius:22px;background:#FFF}
.tile.is-wide .shell img,.tile.is-wide .shell video{inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);border-radius:9px}
.tile .shell video{opacity:0;transition:opacity .25s}
.tile .shell video.is-on{opacity:1}
.tile:hover .shell{transform:translateY(-4px);box-shadow:0 24px 40px -24px rgba(0,0,0,.35)}
.tile:active .shell{transform:scale(.985)}
.tile .cap{display:grid;gap:3px;min-width:0;padding:0 2px}
.tile .cap b{font-size:1rem;letter-spacing:-.01em;line-height:1.25}
.tile .cap span{font-size:.875rem;color:var(--tx-2);line-height:1.4}
.tile .cap .for{font-size:.8125rem;color:var(--tx-3)}
@media (max-width:640px){.tile .shell{border-radius:20px}.tile .shell img,.tile .shell video{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);border-radius:17px}
  .tile.is-wide .shell img,.tile.is-wide .shell video{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);border-radius:8px}
  .tile .cap b{font-size:.9375rem}.tile .cap span{font-size:.8125rem}}
.tile.is-dim{opacity:.35}
.tile[hidden]{display:none}

/* the way in: a tile opens the build full screen (assets/viewer.js) */
.tile .shell::after{content:"Use it";position:absolute;z-index:2;left:50%;bottom:14px;transform:translate(-50%,6px);display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.96);color:var(--tx);font-size:.8125rem;font-weight:600;box-shadow:0 8px 20px -8px rgba(0,0,0,.45);opacity:0;transition:opacity .2s var(--ease),transform .2s var(--ease);pointer-events:none}
.tile:hover .shell::after,.tile:focus-visible .shell::after{opacity:1;transform:translate(-50%,0)}
.hint-inline{font-size:.9375rem;color:var(--tx-2)}

/* filters */
/* hero: headline beside the device */
.hero{padding:clamp(28px,5vw,72px) 0 clamp(40px,6vw,80px)}
.hero .grid{display:grid;grid-template-columns:1fr 480px;gap:clamp(32px,6vw,96px);align-items:center}
.hero .copy{display:grid;gap:24px;max-width:600px}
.hero .copy .lead{max-width:48ch}
.hero .copy .cta-row{margin-top:4px}
.hero .copy .btn{height:56px;padding:0 26px;font-size:1.0625rem}
.hero .side{display:grid;gap:20px;justify-items:center}
@media (max-width:1040px){.hero .grid{grid-template-columns:1fr 430px}}
@media (max-width:900px){
  .hero .grid{grid-template-columns:1fr;gap:32px}
  .hero .copy{max-width:none}
}
@media (max-width:760px){
  .hero{padding:24px 0 32px}
  .hero .copy{gap:16px}
  .hero .copy .cta-row{display:none}
  .hero .side{gap:16px}
}

/* case page: the build, then the words */
.case-hero{padding:clamp(28px,5vw,64px) 0 clamp(32px,5vw,64px)}
.case-hero h1{max-width:18ch}
.case-hero .lead.short{margin-top:16px;color:var(--tx);max-width:48ch}
.case-hero .grid{display:grid;grid-template-columns:1fr 480px;gap:clamp(32px,6vw,96px);align-items:start;margin-top:clamp(28px,4vw,48px)}
.case-hero .copy{display:grid;gap:20px;position:sticky;top:calc(var(--head-h) + 32px)}
.case-hero .copy .lead{max-width:52ch}
.case-hero .copy .cta-row{margin-top:8px}
.case-hero .meta{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--tx-2);font-size:.9375rem}
.case-hero .meta a{color:var(--tx);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2)}
@media (max-width:900px){.case-hero .grid{grid-template-columns:1fr;gap:28px}.case-hero .copy{position:static}.case-hero .side{order:-1}}
.case-hero.is-site{padding-top:clamp(20px,3vw,40px)}
.case-hero.is-site .grid{grid-template-columns:minmax(0,1fr) 440px;margin-top:clamp(16px,2vw,24px)}
.case-hero.is-site .copy{gap:18px}
.case-hero.is-site h1{font-size:clamp(2.5rem,5vw,4.5rem);letter-spacing:-.03em;line-height:1}
.case-hero.is-site .lead.short{margin-top:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4}
.case-hero.is-site .copy .lead:not(.short){color:var(--tx-2);font-size:1.0625rem}
@media (max-width:900px){
  .case-hero.is-site .grid{grid-template-columns:1fr;gap:20px}
  .case-hero.is-site .copy{display:contents}
  .case-hero.is-site .copy>*{order:3}
  .case-hero.is-site .copy>h1{order:0}
  .case-hero.is-site .copy>.lead.short{order:1}
  .case-hero.is-site .side{order:2}
}
.case-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(24px,4vw,56px)}
.case-grid>div{display:grid;gap:16px;align-content:start}
.case-grid .feat,.case-grid .tags{margin-top:0 !important}
@media (max-width:900px){.case-grid{grid-template-columns:1fr}}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,3vw,32px)}
.pair .tile .shell{aspect-ratio:390/300}
.pair .tile.is-wide .shell{aspect-ratio:1280/800}
.pair .tile .dir{font-size:.875rem;color:var(--tx-2)}
@media (max-width:520px){.pair{grid-template-columns:1fr 1fr}}

/* services row on the home page */
.svc{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,3vw,40px)}
.svc article{display:grid;gap:14px;align-content:start}
.svc article .shell{aspect-ratio:390/340;border-radius:26px;padding:6px;background:var(--hand);overflow:hidden}
.svc article .shell img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:21px;background:#FFF}
.svc h3{font-size:1.375rem;margin-top:8px}
.svc p{color:var(--tx-2);line-height:1.5}
.svc a.lnk{font-weight:500}
@media (max-width:900px){.svc{grid-template-columns:1fr;gap:36px}.svc article{grid-template-columns:140px 1fr;column-gap:20px;align-items:start}.svc article .shell{grid-row:1/5;aspect-ratio:390/470}}

/* the lane intro on lane pages */
.lanes{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border-top:1px solid var(--line)}
.lanes>a{display:grid;gap:8px;padding:24px 24px 24px 0;border-bottom:1px solid var(--line)}
.lanes>a:nth-child(odd){border-right:1px solid var(--line);padding-right:24px}
.lanes>a:nth-child(even){padding-left:24px}
.lanes b{font-size:1.25rem;letter-spacing:-.02em}
.lanes span{color:var(--tx-2);line-height:1.45}
.lanes small{font-size:.875rem;color:var(--tx-3)}
.lanes>a:hover b{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
@media (max-width:640px){.lanes{grid-template-columns:1fr}.lanes>a{padding:20px 0 !important;border-right:0 !important}}

/* the browser frame used by the what-I-do page for desktop-shaped demos */
.rig{border:1px solid var(--line-2);border-radius:var(--r-m);overflow:hidden;background:var(--pg)}
.rig .chrome{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px;border-bottom:1px solid var(--line);font-size:.875rem;color:var(--tx-2)}
.rig .pips{display:flex;gap:5px}
.rig .pips i{width:9px;height:9px;border-radius:50%;background:var(--line-2)}
.rig .url{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rig .url b{color:var(--tx)}
.rig .pop{margin-left:auto;font-weight:500;color:var(--tx)}
.rig .viewport{position:relative;height:620px;background:#FFF}
.rig .viewport.vp-short{height:520px}
.rig .viewport iframe{width:100%;height:100%;border:0;display:block}
.rig .boot{position:absolute;inset:0;display:grid;place-items:center;color:var(--tx-3);font-size:.9375rem}
.rig .viewport iframe+.boot,.rig .viewport:has(iframe) .boot{display:none}
@media (max-width:760px){.rig .viewport,.rig .viewport.vp-short{height:70vh;min-height:460px}}
.svc-demo{margin-top:28px}
.svc-demo .hint{margin-top:12px}
.svc-demo.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.svc-demo.two>div,.panel .body,.panel .inner>*{min-width:0}
@media (max-width:900px){.svc-demo.two{grid-template-columns:1fr}}

/* ---------- the demos page ---------- */
.work-hero{padding-bottom:clamp(28px,4vw,48px)}
/* websites, then the system; each website lane is a row */
.kindsec{padding:clamp(40px,6vw,80px) 0 0}
.kindsec:last-child{padding-bottom:clamp(56px,8vw,112px)}
.kindsec[hidden],.lrow[hidden]{display:none}
.khead{display:grid;gap:10px;max-width:720px;margin-bottom:clamp(24px,3vw,40px)}
.khead p{color:var(--tx-2);line-height:1.5}
.khead .lnk{color:var(--tx);white-space:nowrap}
/* websites: two lanes side by side, three phones each; tools: one lane a row, four screens across */
.lrows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(24px,3.5vw,48px)}
.lrow{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:16px;padding:clamp(22px,2.5vw,32px) 0 clamp(28px,3vw,40px);border-top:1px solid var(--line)}
.lhead{display:grid;gap:8px;align-content:start}
.lhead{grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:baseline}
.lhead small{grid-column:2}
.lrow-top .lhead{grid-template-columns:minmax(0,120px) minmax(0,1fr) minmax(0,1fr);gap:8px 24px}
.lrow-top .lhead small{grid-column:auto}
.lrow .wall{gap:20px 14px}
.lrow .wall.wall-wide{grid-template-columns:repeat(4,minmax(0,1fr))}
.lhead h3{font-size:1.25rem;letter-spacing:-.02em}
.lhead p{font-size:.9375rem;line-height:1.45}
.lhead small{font-size:.875rem;color:var(--tx-3);line-height:1.45}
.lrow .wall.wall-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1000px){.lrows{grid-template-columns:minmax(0,1fr)}.lrow .wall.wall-wide{grid-template-columns:repeat(3,minmax(0,1fr))}.lrow-top .lhead{grid-template-columns:auto minmax(0,1fr)}.lrow-top .lhead small{grid-column:2}}
@media (max-width:760px){.lrow .wall.wall-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.lrow{padding:22px 0 26px;gap:16px}.lhead{gap:4px}.lhead small{display:none}}

/* a tool's own page: the tool full width on a laptop, in a browser frame */
.case-rig{margin-top:clamp(24px,3.5vw,40px)}
.case-rig .rig .viewport{height:min(800px,calc(100vh - 150px));min-height:560px}
.case-rig .rig .url{font-family:var(--mono);font-size:.8125rem}
.case-rig .rig .pop{height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--line-2);background:var(--pg);font:inherit;font-size:.875rem;font-weight:500;cursor:pointer}
.case-rig .rig .pop:hover{border-color:var(--tx)}
.case-rig .rig .boot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.case-words{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(24px,4vw,64px);align-items:start;margin-top:clamp(24px,3.5vw,40px)}
.case-words .copy{display:grid;gap:20px;position:static}
@media (max-width:900px){.case-words{grid-template-columns:1fr}}
@media (max-width:760px){.case-rig .rig .viewport{width:100%;height:min(72vh,640px);min-height:0}.case-rig .rig .chrome .url{display:none}}

/* the two halves of the work page, as two big links under the heading */
.work-jump{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:clamp(24px,3vw,36px);max-width:760px}
.work-jump a{display:grid;gap:4px;padding:16px 18px;border:1px solid var(--line-2);border-radius:var(--r-s)}
.work-jump b{font-size:1.0625rem;letter-spacing:-.01em}
.work-jump span{font-size:.875rem;color:var(--tx-2)}
@media (hover:hover){.work-jump a:hover{border-color:var(--tx)}}

/* the system: the app on a screen, the six businesses beside it, then its parts */
.sys-rig{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:start}
.sys-main{display:grid;gap:14px;min-width:0}
.sys-main .shell{position:relative;display:block;aspect-ratio:1280/800;border-radius:14px;padding:6px;background:var(--hand);overflow:hidden}
.sys-main img,.sys-main video{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);max-width:none;object-fit:cover;object-position:top;border-radius:9px;background:#FFF}
.sys-main video{opacity:0;transition:opacity .25s}
.sys-main video.is-on{opacity:1}
.sys-cap{display:grid;gap:4px}
.sys-cap b{font-size:1.25rem;letter-spacing:-.02em}
.sys-cap span{color:var(--tx-2);line-height:1.45;max-width:60ch}
@media (hover:hover){.sys-main:hover .sys-cap b{text-decoration:underline;text-underline-offset:4px}}
.sys-biz p{margin:0 0 8px;font-size:.875rem;color:var(--tx-2)}
.sys-biz>div{display:grid;border-top:1px solid var(--line)}
.sys-biz a{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:52px;padding:14px 2px;border-bottom:1px solid var(--line)}
.sys-biz a b{font-weight:600;font-size:.9688rem}
.sys-biz a span{font-size:.875rem;color:var(--tx-3);text-align:right}
@media (hover:hover){.sys-biz a:hover b{text-decoration:underline;text-underline-offset:3px}}
.sys-h{margin:clamp(36px,5vw,56px) 0 16px;font-size:1.25rem;letter-spacing:-.02em}
.sys-biz-row{margin-top:28px}
.sys-biz-row>div{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
@media (max-width:900px){.sys-rig{grid-template-columns:minmax(0,1fr)}.sys-biz-row>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* on a phone the system is shown as it looks on a phone, the top of its first screen */
@media (max-width:640px){.sys-main .shell{aspect-ratio:585/860;width:min(100%,320px);border-radius:30px;padding:6px}.sys-main img{border-radius:24px}.sys-main video{display:none}}
@media (max-width:640px){.work-jump{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.work-jump a{padding:12px 14px}.work-jump b{font-size:.9688rem}.work-jump span{font-size:.8125rem}.sys-biz-row>div{grid-template-columns:minmax(0,1fr)}}

/* a part's own page: every part, this one marked */
.sys-parts{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.sys-parts a{display:grid;gap:6px;height:100%;padding:14px 16px;border:1px solid var(--line-2);border-radius:var(--r-s)}
.sys-parts a[aria-current]{border-color:var(--tx);box-shadow:inset 0 0 0 1px var(--tx)}
.sys-parts b{font-size:.9688rem}
.sys-parts span{font-size:.875rem;line-height:1.4;color:var(--tx-2)}
@media (hover:hover){.sys-parts a:hover{border-color:var(--tx)}}

/* ---------- the desk (/work/system/): the system on a laptop, the customer's phone beside it, both live (assets/desk.js) ---------- */
.desk{--dk:var(--c,var(--tx));display:grid;grid-template-areas:"steps" "stage" "end";gap:18px;margin-top:clamp(24px,3.5vw,40px)}
.desk-guide{display:contents}
.desk-seg{grid-area:seg;display:none}
.desk-steps{grid-area:steps;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.desk-steps li{display:grid;gap:4px;align-content:start;padding-top:12px;border-top:2px solid var(--line);color:var(--tx-3);transition:border-color .3s,color .3s}
.desk-steps li::before{content:"0" attr(data-s);font:500 .75rem/1 var(--mono);letter-spacing:.02em}
.desk-steps li b{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;color:var(--tx-2)}
.desk-steps li span{font-size:.8125rem;line-height:1.4}
.desk-steps li[data-done]{border-color:var(--tx)}
.desk-steps li[data-done] b{color:var(--tx)}
.desk-steps li[aria-current=step]{border-color:var(--dk);color:var(--tx-2)}
.desk-steps li[aria-current=step]::before{color:var(--dk)}
.desk-steps li[aria-current=step] b{color:var(--tx)}
/* the desk itself: a room in the business's own colour, the laptop and phone standing on its surface */
.desk-stage{--wall:var(--dk);--floor:color-mix(in srgb,var(--dk) 80%,#000);grid-area:stage;display:flex;align-items:flex-end;justify-content:center;gap:clamp(20px,3vw,44px);padding:clamp(28px,3.4vw,48px) clamp(16px,3vw,44px) 58px;background:linear-gradient(var(--wall) 0 calc(100% - 74px),var(--floor) 0);border-radius:var(--r-l);min-width:0}
.desk-stage .scrn{position:relative;overflow:hidden;background:#FFF}
.desk-stage .scrn iframe{position:absolute;top:0;left:0;width:calc(var(--w) * 1px);height:calc(var(--h) * 1px);max-width:none;border:0;display:block;transform:scale(var(--k,1));transform-origin:0 0}
.desk-laptop{flex:1 1 0;min-width:0;max-width:880px}
.desk-laptop .lid{padding:12px 12px 16px;background:#050506;border-radius:14px 14px 3px 3px;box-shadow:0 0 0 1px #3A3B40,0 40px 60px -30px rgba(0,0,0,.8)}
.desk-laptop .scrn{--w:1024;--h:640;aspect-ratio:1024/640;border-radius:3px}
.desk-laptop .base{position:relative;height:13px;margin:0 -6%;background:#8E8F94;border-radius:0 0 12px 12px;box-shadow:inset 0 1px 0 #B9BABF,0 24px 30px -14px rgba(0,0,0,.75)}
.desk-laptop .base::before{content:"";position:absolute;left:50%;top:0;width:15%;height:5px;margin-left:-7.5%;background:#6E6F74;border-radius:0 0 6px 6px}
.desk-phone{flex:none;width:clamp(232px,23vw,292px)}
.desk-phone .bezel{position:relative;padding:9px;background:#050506;border-radius:46px;box-shadow:0 0 0 1.5px #4A4B51,0 40px 60px -26px rgba(0,0,0,.85)}
.desk-phone .scrn{--w:390;--h:844;aspect-ratio:390/844;border-radius:37px}
.desk-phone .island{position:absolute;z-index:2;left:50%;top:2.5%;width:31%;height:3.4%;margin-left:-15.5%;border-radius:20px;background:#000;pointer-events:none}
.desk-end{grid-area:end;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.desk-clock{display:flex;align-items:baseline;gap:12px}
.desk-clock small{font-size:.875rem;color:var(--tx-2)}
.desk-clock b{font:500 1.5rem/1 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--tx-3);transition:color .3s}
.desk[data-clock-on] .desk-clock b{color:var(--tx)}
.desk[data-done] .desk-clock b{color:var(--dk)}
.desk-btns{display:flex;flex-wrap:wrap;gap:10px}
.desk.no-sync .desk-btns,.desk.no-sync .desk-clock{display:none}
@media (max-width:900px){
  .desk{grid-template-areas:"steps" "seg" "stage" "end";gap:12px}
  /* one step at a time, with a bar for how far along */
  .desk-steps{position:relative;display:block;padding-top:14px}
  .desk-steps::before,.desk-steps::after{content:"";position:absolute;left:0;top:0;height:3px;border-radius:2px}
  .desk-steps::before{right:0;background:var(--line)}
  .desk-steps::after{width:calc(var(--p,.1667) * 100%);background:var(--dk);transition:width .45s ease}
  .desk-steps li{display:none;border:0;padding:0}
  .desk-steps li[aria-current=step]{display:grid}
  .desk-steps li::before{content:"Step " attr(data-s) " of 6"}
  .desk-steps li b{font-size:1.0625rem}
  .desk-steps li span{font-size:.9375rem}
  .desk-seg{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:var(--alu);border-radius:12px}
  .desk-seg button{position:relative;height:42px;padding:0 8px;border:0;border-radius:9px;background:none;font:inherit;font-size:.9375rem;font-weight:550;color:var(--tx-2);cursor:pointer}
  .desk-seg button[aria-pressed=true]{background:var(--pg);color:var(--tx);box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--line)}
  .desk-seg button[data-new]::after{content:"";position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--dk)}
  /* on a phone the desk is one screen: whichever side is showing, drawn at its real size */
  .desk-stage{display:block;position:relative;height:min(720px,76svh);padding:0;background:var(--wall);border-radius:30px}
  .desk-laptop,.desk-phone{position:absolute;inset:10px;width:auto;max-width:none}
  .desk-phone{width:min(calc(100% - 20px),420px);margin-inline:auto}
  .desk-laptop .lid,.desk-phone .bezel{height:100%;padding:0;background:none;border-radius:0;box-shadow:none}
  .desk-laptop .base{display:none}
  .desk-stage .scrn{height:100%;aspect-ratio:auto;border-radius:22px;box-shadow:0 18px 40px -20px rgba(0,0,0,.55)}
  .desk-stage .scrn iframe{width:100%;height:100%;transform:none}
  .desk-phone .island{top:11px;width:92px;height:26px;margin-left:-46px}
  .desk-stage [data-hidden]{visibility:hidden}
  .desk-clock b{font-size:1.25rem}
  .desk-btns{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .desk-btns .btn{width:100%}
  /* the bottom bar steps aside while the desk is being used */
  .mbar{transition:transform .3s var(--ease)}
  .desk-in .mbar{transform:translateY(110%)}
}
