/* Olict Business.: the island (front/business.js). The page's frame (one screen, nothing scrolling inside) is front/css's; the working screens
   are front/screens.css's. Phones are the base; 821 px and wider the page is larger with the same sheet along its foot; from 1024 px the island
   is centred in the whole page and the recap is a panel on the right, over the island running on under it (business.js frames the workplace in
   the part left of it); a page wider than a phone but shorter than 700 px has the panel at the side as well (on the left below 1024 px).
   States, on .bz: .ready = the model has drawn (the picture under it goes); .picked = a product is up (its labels and the headline give way
   to the workplace); .near = the visitor has zoomed in (the headline gives way). */
.sec-business .bz { --ease: cubic-bezier(.2, .9, .2, 1); --ink: #0B0B0C; --grey: #55565C; --line: #E3E2DE;
  position: relative; box-sizing: border-box; height: 100%; overflow: hidden; display: flex; flex-direction: column;
  padding: var(--clear) 20px 0; color: var(--ink); font: 500 15px/1.4 "Inter", system-ui, sans-serif; }
.bz p, .bz h3 { margin: 0; font-weight: inherit; }
/* (every logo is clipped round: Linea's is a plain square, and its corners would stand out past a label's curve) */
.bz .bz-logo { display: block; flex: none; overflow: hidden; }

/* the headline and the help, over the top of the island (which runs up behind them); they go while the visitor is zoomed in or stepped in */
.bz-copy { position: relative; z-index: 2; pointer-events: none; }
.bz-h { font: 500 27px/1.08 "CooperMed", Georgia, serif; letter-spacing: -.012em; text-wrap: balance; transition: opacity .35s; }
.bz-help { margin-top: 7px; font: 500 14px/1.3 "Inter", system-ui, sans-serif; color: var(--grey); transition: opacity .3s; }
.bz.picked .bz-h, .bz.near .bz-h, .bz.picked .bz-help, .bz.near .bz-help { opacity: 0; }
/* (on a phone the help line, which wraps in most languages, keeps clear of the + and − buttons at the page's right: 36 px wide, 14 px in) */
@media (max-width: 820px) { .bz-help { padding-right: 40px; } }

/* The stage: from just under the head bar to the page's foot, behind the headline. The canvas's top and bottom edges fade, so a model zoomed
   past them is not cut off in a line. Up and down on it stays the page's (touch-action); sideways turns the island. */
.bz-stage { position: absolute; left: 0; right: 0; top: calc(var(--clear) - 26px); bottom: 0; }
.bz-view { position: absolute; inset: 0; }
.bz-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .5s; -webkit-tap-highlight-color: transparent;
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0), #000 34px, #000 calc(100% - 24px), rgba(0, 0, 0, 0)); mask: linear-gradient(rgba(0, 0, 0, 0), #000 34px, #000 calc(100% - 24px), rgba(0, 0, 0, 0)); }
.bz-gl:active { cursor: grabbing; }
.bz-gl[hidden] { display: none; }
.bz.ready .bz-gl { opacity: 1; }
/* The picture: under the canvas until the model has drawn, and in its place for good where there is none. business.js fits it (a 400 px box,
   moved and scaled), with each label on its place and a line from it to its spot; stepped in, it moves into the band above the sheet. */
.bz-map { position: absolute; left: 0; top: 0; width: 400px; height: 372.5px; transform-origin: 0 0; pointer-events: none; transition: transform .55s var(--ease), opacity .5s, visibility 0s; }
.bz.ready .bz-map { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.bz-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.bz.no-pic .bz-ph { visibility: hidden; }
.bz-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bz-lines line { stroke: #0B0B0C; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bz-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0B0B0C; }

/* The labels: a logo and a name, riding on the workplace (the model says where, frame by frame) or standing on the picture. Over its spot
   the label has a short stem down to it; the front plot's hangs under it, its stem up. While a product is up the model's labels give way
   (one with keyboard focus still shows), and a label whose workplace has left the stage goes (.off). */
.bz-pin { all: unset; box-sizing: border-box; position: absolute; left: 0; top: 0; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 5px 13px 5px 5px; border-radius: 20px;
  background: #fff; color: #0B0B0C; font: 600 13.5px/1 "Inter", system-ui, sans-serif; letter-spacing: -.015em; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .1); transition: opacity .3s, scale .25s; }
.bz:not(.ready) .bz-pin { transition: transform .55s var(--ease), opacity .3s, scale .25s; }
.bz-pin::before { content: ""; position: absolute; inset: -7px -4px; }
.bz-pin:active { scale: .94; }
.bz-pin:focus-visible { outline: 2px solid #1560FE; outline-offset: 2px; }
.bz-pin .bz-logo { width: 26px; height: 26px; border-radius: 8px; -webkit-clip-path: inset(0 round 8px); clip-path: inset(0 round 8px); }
.bz-pin[data-how="over"] { top: -12px; } .bz-pin[data-how="under"] { top: 12px; }
.bz-pin[data-how="over"]::after, .bz-pin[data-how="under"]::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: #0B0B0C; }
.bz-pin[data-how="under"]::after { top: auto; bottom: 100%; }
.bz.ready.picked .bz-pin, .bz .bz-pin.off { opacity: 0; pointer-events: none; }
.bz.ready.picked .bz-pin:focus-visible, .bz .bz-pin.off:focus-visible { opacity: 1; }

/* + and −: only once the model is there, and not while a product is up */
.bz-zoom { position: absolute; right: 14px; top: 96px; z-index: 1; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.bz.ready:not(.picked) .bz-zoom { opacity: 1; visibility: visible; transition: opacity .3s; }
.bz-zoom button { all: unset; position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .1); transition: scale .2s; }
.bz-zoom button:active { scale: .9; }
.bz-zoom button:focus-visible { outline: 2px solid #1560FE; outline-offset: 2px; }
.bz-zoom button::before, .bz-zoom button:first-child::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; border-radius: 1px; background: #0B0B0C; }
.bz-zoom button:first-child::after { transform: rotate(90deg); }

/* The recap: ONE light sheet, up on the first tap, with nothing more to open. Frosted, so the island shows through it; about half the page,
   never so much that the workplace has less than 150 px above it. It lies over the fade into the next page (z-index 4 against the fade's 3,
   front/front.css). From one product to another it stays and only its pane changes (.on). A pane: logo, name and sentence, and under them the
   product's own working screen, live, filling the box it is given, on the product's own colour. The content stands 16 px in from the edges. */
.bz-sheet { position: absolute; z-index: 4; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: min(338px, calc(100% - 150px)); border-radius: 26px;
  background: rgba(255, 255, 255, .83); color: #0B0B0C; -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .07);
  opacity: 0; visibility: hidden; transform: translateY(46px) scale(.97); pointer-events: none;
  transition: opacity .2s, transform .32s cubic-bezier(.5, 0, .8, .4), visibility 0s .32s; }
.bz-sheet.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .3s .14s, transform .62s cubic-bezier(.2, 1.12, .32, 1) .14s, visibility 0s; }
/* (the sheet takes focus as it comes up, for a screen reader: it is not a control, and shows no ring of its own; its cross and its screen's do) */
.bz-sheet, .bz-sheet:focus { outline: none; }
/* (a rule of its own: before Safari 15.4 a list holding :focus-visible is dropped whole) */
.bz-sheet:focus-visible { outline: none; }
/* (where neither backdrop-filter works, the sheet is near enough opaque to read on its own) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bz-sheet { background: rgba(255, 255, 255, .97); } }
.bz-pane { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
/* (inherit, not visible: the pane last shown keeps .on when the sheet goes, and must go out of reach with it) */
.bz-pane.on { opacity: 1; visibility: inherit; transform: none; transition: opacity .32s .16s, transform .45s var(--ease) .16s, visibility 0s; }
.bz-top { flex: none; display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.bz-top .bz-logo { width: 42px; height: 42px; border-radius: 11px; -webkit-clip-path: inset(0 round 11px); clip-path: inset(0 round 11px); }
.bz-top h3 { font: 600 18px/1.1 "Inter", system-ui, sans-serif; letter-spacing: -.025em; }
.bz-top p { margin-top: 3px; font: 500 12.5px/1.3 "Inter", system-ui, sans-serif; color: var(--grey); text-wrap: pretty; }
.bz-peek { position: relative; flex: 1 1 0; min-height: 0; margin-top: 12px; display: flex; border-radius: 12px; overflow: hidden; }
.bz-peek .win { flex: 1; min-width: 0; min-height: 0; border: 0; box-shadow: none; border-radius: 0; }
/* (Presenza's screen is white: a hairline round it, drawn over it) */
.t-presenza .bz-peek::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--line); pointer-events: none; }
.bz-x { all: unset; position: absolute; z-index: 2; right: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .07); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bz-x:focus-visible { outline: 2px solid #1560FE; outline-offset: 2px; }
.bz-x::before, .bz-x::after { content: ""; position: absolute; left: 8.5px; right: 8.5px; top: 13px; height: 2px; border-radius: 1px; background: #0B0B0C; transform: rotate(45deg); }
.bz-x::after { transform: rotate(-45deg); }

/* ---- wider than a phone: the same page, larger, the sheet along the foot of the island ---- */
@media (min-width: 821px) {
  .sec-business .bz { padding: calc(120px + env(safe-area-inset-top, 0px)) max(40px, 5vw) 0; }
  .bz-copy { max-width: 560px; }
  .bz-h { font-size: clamp(32px, 3.3vw, 46px); }
  .bz-help { margin-top: 12px; font-size: 15px; }
  .bz-stage { top: 0; }
  /* (+ and − at the foot, clear of the rail's dots and of a panel, which they give way to anyway) */
  .bz-zoom { top: auto; bottom: 32px; right: 64px; }
  /* (the band between the bar and the sheet keeps 150 px at the least: 116 px down to it, 16 px over the sheet, the sheet 24 px off the foot) */
  .bz-sheet { left: 0; right: 0; width: min(560px, calc(100% - 48px)); margin: 0 auto; bottom: 24px; height: min(380px, calc(100% - 306px)); }
}
/* ---- a page wider than a phone but shorter than 700 px, below 1024 px: no room for a sheet along the foot, so the recap is a panel on the left,
   from under the bar (the ring reaches 86 px down, the open bar 68) to 16 px off the foot; its heading set a little closer ---- */
@media (min-width: 821px) and (max-width: 1023px) and (max-height: 699px) {
  .bz-sheet { left: 16px; right: auto; top: 92px; bottom: 16px; width: min(380px, 45%); height: auto; margin: 0; transform: translateX(-28px) scale(.98); }
  .bz-top .bz-logo { width: 34px; height: 34px; border-radius: 9px; -webkit-clip-path: inset(0 round 9px); clip-path: inset(0 round 9px); }
  .bz-top h3 { font-size: 16px; }
  .bz-top p { font-size: 12px; }
  .bz-peek { margin-top: 10px; }
}
/* ---- from 1024 px: the island centred in the whole page (business.js keeps it clear of the rail), the headline at its top left; stepped in, the
   recap is a 380 px panel on the right, centred down the page, standing over the island, which runs on under it. The panel stops 140 px short of
   the page's right edge at the least, clear of the rail and its current page's name (front.css), and keeps 96 px from the top and the foot, under
   the bar ---- */
@media (min-width: 1024px) {
  .sec-business .bz { --pl: min(66.667% + (33.333% - 380px) / 2, 100% - 520px); }
  .bz-copy { position: absolute; left: max(40px, 5vw); top: calc(120px + env(safe-area-inset-top, 0px)); width: min(520px, 42vw); max-width: none; }
  .bz-sheet { left: var(--pl); right: auto; top: 0; bottom: 0; width: 380px; height: min(500px, calc(100% - 192px)); margin: auto 0; transform: translateX(28px) scale(.98); }
}
@media (prefers-reduced-motion: reduce) { .bz-sheet, .bz-sheet.on, .bz-pane, .bz-pane.on { transform: none; } }
