/* PUS Network. Loaded after site.css and page.css. */

/* ---------- 1. a day at one counter ----------
   --u: one pixel of the picture the counter was made from (3600 x 3000). The yellow parcel is at 1802, the counter's middle at 1141. */
.day { --u: max(100vw / 3050, 100vh / 1900); --mid: max(4.2rem + 341 * var(--u), 39svh); position: relative; background: #b3b2ae; }
.day__pin { position: relative; height: 100svh; min-height: 20rem; overflow: clip; }
.live .day { height: 345vh; }
.live .day__pin { position: sticky; top: 0; height: 100vh; }
.desk { position: absolute; left: calc(50% - 1802 * var(--u)); top: calc(var(--mid) - 1141 * var(--u)); width: calc(3600 * var(--u)); height: calc(3000 * var(--u)); }
.desk__bg { width: 100%; height: 100%; max-width: none; }
.box, .desk__who, .passing { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w, 340) * var(--u)); max-width: none; height: auto; }
.live :is(.box, .desk__who, .passing, .desk__sun, .desk__dusk) { will-change: transform, opacity; }
.box { filter: drop-shadow(calc(5 * var(--u)) calc(9 * var(--u)) calc(9 * var(--u)) rgb(0 0 0 / .5)); }
.box:nth-of-type(even) { z-index: 1; }
.box:nth-of-type(odd) { z-index: 2; }                    /* the far row passes over the near one */
.desk .box--yours { z-index: 3; }
.drop { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 38%; }
.drop__shade { position: absolute; left: calc(440 * var(--u)); top: calc(880 * var(--u)); width: calc(2720 * var(--u)); height: calc(560 * var(--u)); border-radius: calc(60 * var(--u)); background: rgb(0 0 0 / .5); filter: blur(calc(34 * var(--u))); opacity: 0; }
.desk__who { z-index: 3; visibility: hidden; }
.passing { opacity: 0; }

/* the light of the day: it comes through a window, moves along the counter and goes */
.desk__sun { position: absolute; left: 0; top: 0; width: calc(1500 * var(--u)); height: 100%; opacity: .5; background: linear-gradient(102deg, rgb(255 240 205 / 0) 10%, rgb(255 240 205 / .6) 11% 38%, rgb(255 240 205 / 0) 39% 45%, rgb(255 240 205 / .6) 46% 73%, rgb(255 240 205 / 0) 74%); filter: blur(calc(12 * var(--u))); mix-blend-mode: soft-light; }
.desk__dusk { position: absolute; z-index: 4; inset: 0; opacity: 0; background: radial-gradient(circle calc(1500 * var(--u)) at calc(1802 * var(--u)) calc(1180 * var(--u)), rgb(255 222 176 / .1), rgb(30 30 38 / .14) 24%, rgb(11 16 32 / .82) 74%, rgb(9 13 27 / .9)); }

.day__open { position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: calc(clamp(1.4rem, 4.2svh, 3.4rem) + var(--bar)); display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; }
.day__open .page-h { max-width: 9.4em; font-size: min(4.4vw, 9.2svh); }
.day__open .page-h span:nth-child(2) { white-space: normal; }
.day__open .page-lead { max-width: 23em; padding-bottom: .35em; }
.day__says { position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: calc(clamp(1.8rem, 5.4svh, 3.6rem) + var(--bar)); font-size: min(6.1vw, 12.6svh); font-weight: 600; line-height: .96; letter-spacing: -.05em; }
.day__says p:nth-child(n+3) { color: var(--white); }
.day__says p:last-child span { display: block; }
.live .day__says p { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; }
.live .day__says .is-right { left: auto; right: 0; }
.live .day__still { display: none; }

/* the drop lands when all of it is here */
.live .drop { opacity: 0; }
.live .is-in .drop { opacity: 1; animation: drop .95s cubic-bezier(.45, .02, .3, 1) backwards; }
.live .is-in .drop__shade { animation: drop-shade .95s cubic-bezier(.45, .02, .3, 1) backwards; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-3%) scale(1.5); } 30% { opacity: 1; } 78% { transform: scale(.992); } 100% { transform: none; } }
@keyframes drop-shade { 0% { opacity: 0; transform: translateY(26%) scale(1.15); } 78% { opacity: .9; } 100% { opacity: 0; } }
.live .day__open :is(h1 span, p) { animation: day-rise 1s var(--out) backwards; }
.live .day__open h1 span:nth-child(2) { animation-delay: .09s; }
.live .day__open p { animation-delay: .24s; }
@keyframes day-rise { from { opacity: 0; translate: 0 .35em; } }

/* ---------- 2. how it works ---------- */
.how { position: relative; padding: clamp(4.6rem, 8vw, 9rem) var(--gut) clamp(3.6rem, 6.4vw, 7rem); background: var(--paper) var(--sheet) -1px 3rem / 25% 22rem; }
.how__list { margin: 0; padding: 0 0 0 clamp(4.6rem, 13.5vw, 14rem); list-style: none; }
.how__list li { padding: .34em 0; font-size: clamp(1.5rem, 3.55vw, 4.1rem); font-weight: 600; line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; transition: color .45s; }
.live .how__list li:not(.is-on) { color: #a3a39d; }
.how__parcel { position: absolute; left: var(--gut); top: clamp(4.6rem, 8vw, 9rem); width: clamp(3.6rem, 8.6vw, 9rem); height: auto; filter: drop-shadow(.3rem .5rem .5rem rgb(0 0 0 / .28)); }

/* ---------- 3. who uses it ---------- */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 2rem); padding: 0 var(--gut) clamp(3.6rem, 6.4vw, 7rem); background: var(--paper) var(--sheet) -1px 0 / 25% 22rem; color: var(--white); }
.use { position: relative; height: 88svh; min-height: 30rem; overflow: clip; }
.use img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
#operators img { object-position: 60% 50%; }
.use::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(0deg, rgb(8 11 18 / .94) 10%, rgb(8 11 18 / .66) 44%, rgb(8 11 18 / 0)); }
.use__words { position: absolute; z-index: 1; inset: auto clamp(1.3rem, 2.4vw, 3rem) clamp(1.5rem, 4.4svh, 3rem); }
.use h2 { margin: 0; font-size: min(5.4vw, 11.4svh); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.use p { max-width: 27em; margin: .8em 0 1em; font-size: clamp(1.0625rem, 1.3vw, 1.5rem); font-weight: 500; line-height: 1.36; text-wrap: balance; }

/* ---------- 4. where it reaches ---------- */
.reach { position: relative; display: flex; flex-direction: column; height: 100svh; min-height: 34rem; padding: clamp(1.4rem, 4vw, 4rem) var(--gut) clamp(1.8rem, 5.4svh, 3.6rem); background: var(--navy); color: var(--white); }
.reach__field { flex: 1; min-height: 0; width: 100%; background: conic-gradient(from 270deg at 1.6vw 1.6vw, var(--yellow) 90deg, rgb(0 0 0 / 0) 0) 0 0 / 4% 10%; }          /* without scripts; otherwise js/pus-network.js draws them */
.js .reach__field { background: none; }
.reach__words { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; margin-top: clamp(1.2rem, 4svh, 3rem); }
.reach h2 { margin: 0; max-width: 11em; font-size: clamp(1.8rem, 3.6vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -.042em; }
.reach h2 b { font-weight: inherit; }
.reach p { max-width: 25em; font-size: clamp(1rem, 1.3vw, 1.5rem); font-weight: 500; line-height: 1.36; text-wrap: pretty; }

/* ---------- 5. home delivery ---------- */
.door { position: relative; overflow: clip; padding: clamp(5.6rem, 10.8vw, 12.4rem) var(--gut) clamp(2.6rem, 4.2vw, 4.6rem); background: var(--paper) var(--sheet) -1px 0 / 25% 22rem; }
.door h2 { margin: 0; font-size: min(11.6vw, 26svh); font-weight: 600; line-height: .9; letter-spacing: -.06em; white-space: nowrap; }
.door p { position: relative; max-width: 30em; margin: clamp(1.6rem, 3vw, 3rem) 0 0 auto; font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; line-height: 1.34; text-wrap: pretty; }
.door__bike { position: absolute; z-index: 1; left: 62%; top: 6%; width: min(34vw, 40rem); max-width: none; height: auto; }
.live .door__bike { left: 0; will-change: transform; }

/* ---------- standing still ---------- */
html:not(.live) .day__pin { height: auto; min-height: 0; padding-top: 100svh; overflow: clip; }
html:not(.live) .day__open { top: 0; bottom: auto; height: 100svh; padding-bottom: clamp(1.4rem, 4.2svh, 3.4rem); }
html:not(.live) .day__says { position: relative; left: auto; right: auto; bottom: auto; padding: clamp(3rem, 6vw, 6rem) var(--gut); background: var(--ink); color: var(--white); }
html:not(.live) .day__says p:nth-child(-n+2) { color: #8d8d88; }
html:not(.live) .day__says p:last-child { display: none; }
html:not(.live) .day__still { position: relative; width: 100%; height: auto; min-height: 60svh; object-fit: cover; }

/* ---------- upright screens ---------- */
@media (max-width: 800px), (max-aspect-ratio: 9/10) {
  .day { --u: max(100vw / 1300, 100vh / 2300); --mid: 32svh; }
  .day__open { display: block; }
  .day__says { font-size: min(11.6vw, 7.6svh); }
  .day__open .page-h { font-size: min(9.6vw, 6.4svh); }
  .day__says p:last-child { font-size: .82em; }
  .day__open .page-lead { margin-top: .9em; padding-bottom: 0; max-width: 25em; }
  .use h2 { font-size: min(11vw, 7svh); }
  .reach__words { flex-direction: column; align-items: flex-start; }
  .reach__field { background: conic-gradient(from 270deg at 3vw 3vw, var(--yellow) 90deg, rgb(0 0 0 / 0) 0) 0 0 / 10% 4%; }
  html:not(.live) .day__open { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; }
  .how { background-position: -1px 1.6rem; background-size: 50% 20rem; }
  .door { background-size: 50% 20rem; }
  .door h2 { font-size: 14.6vw; }
  .door__bike { width: min(62vw, 19rem); }
}
@media (max-width: 800px) {
  .uses { grid-template-columns: 1fr; }
  .use { height: 78svh; min-height: 26rem; }
  .uses { background-size: 50% 20rem; }
}

/* ---------- a phone held sideways ---------- */
@media (max-height: 480px) and (min-aspect-ratio: 5/4) {
  .day { --u: max(100vw / 3050, 100vh / 1900); --mid: calc(3.4rem + 341 * var(--u)); }
  .day__open { display: flex; align-items: flex-end; }
  .day__open .page-h { font-size: 8svh; }
}
