/* The work: the row of builds right after the hero, and the popup a build opens in. Black, white and gray only.
   Linked after site.css and biz.css on every page that has the strip; every class starts with "wk-" (the section is .wk). */

/* The row: 1 row of still, even, phone-shaped cards (3:5) that scrolls sideways, 1 card at a time (Chris, 10/21 night: no motion,
   arrows left and right, swipe on a phone). The next card peeks at the right edge. A real card is its business's hero piece
   (its ads), edge to edge; a video inside plays muted on a loop, frame 1 full. */
body.biz section.wk { padding: 8px 0 128px; }
.wk .bz-h { margin-bottom: 56px; }
.wk-row { position: relative; }
.wk-grid {
  list-style: none; margin: 0; padding: 6px 0 26px; display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wk-grid::-webkit-scrollbar { display: none; }
.wk-grid:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 20px; }
.wk-card { flex: 0 0 calc((100% - 3 * 16px) / 3.4); aspect-ratio: 3 / 5; scroll-snap-align: start; }

/* The arrows: round, white, a black arrow, a thin gray border, centered on the cards. Each hides at its end of the row. */
.wk-go {
  position: absolute; top: calc(50% - 14px); z-index: 2; translate: 0 -50%; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.4); transition: opacity 0.2s ease, background 0.15s ease;
}
.wk-go:hover { background: var(--gray); }
.wk-go svg { width: 20px; height: 20px; }
.wk-go[disabled] { opacity: 0; pointer-events: none; }
.wk-go-prev { left: -24px; }
.wk-go-next { right: -24px; }
.wk-tile {
  position: relative; display: block; height: 100%; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid #e2e2e2; border-radius: 18px;
  box-shadow: 0 16px 28px -22px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.wk-tile:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.5); }
.wk-tile img, .wk-tile video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* The label: a solid black band across the bottom of every card, about 1/10 of its height, edge to edge, white type */
.wk-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: max(10%, 42px); padding: 0 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  background: var(--ink); font-size: 12px; line-height: 1.25; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden;
}
.wk-band b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #fff; overflow: hidden; text-overflow: ellipsis; }

/* A locked card: the next city. The same size, a site outline with a lock, nothing to click. */
.wk-card.is-locked .wk-tile {
  cursor: default; box-shadow: none;
  background:
    linear-gradient(#ebebeb, #ebebeb) 50% 7% / 46% 3% no-repeat,
    linear-gradient(#e6e6e6, #e6e6e6) 50% 13% / 70% 4.5% no-repeat,
    linear-gradient(#ededed, #ededed) 50% 19% / 56% 2% no-repeat,
    linear-gradient(#e9e9e9, #e9e9e9) 50% 33% / 84% 15% no-repeat,
    linear-gradient(#eeeeee, #eeeeee) 10% 56% / 24% 13% no-repeat,
    linear-gradient(#eeeeee, #eeeeee) 50% 56% / 24% 13% no-repeat,
    linear-gradient(#eeeeee, #eeeeee) 90% 56% / 24% 13% no-repeat,
    linear-gradient(#f0f0f0, #f0f0f0) 50% 70% / 64% 2% no-repeat,
    var(--gray);
}
.wk-lock { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.wk-lock svg { width: 22px; height: 22px; color: var(--ink); }

/* The popup: a white sheet over the dimmed page, the page showing around it on every side. A list on the left, 1 picture
   on the right, big. */
.wk-modal { position: fixed; inset: 0; z-index: 60; }
.wk-modal[hidden] { display: none; }
.wk-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.wk-sheet {
  position: absolute; inset: 40px 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55);
}
.wk-sheet:focus { outline: none; }
.wk-modal.is-in .wk-sheet { animation: wk-up 0.32s var(--ease); }
@keyframes wk-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The list */
.wk-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 16px 18px 24px; border-bottom: 1px solid var(--line); }
.wk-id { min-width: 0; }
.wk-id b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.wk-id small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.wk-x { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--gray); display: grid; place-items: center; cursor: pointer; }
.wk-x:hover { background: #e6e6e6; }
.wk-x svg { width: 17px; height: 17px; }
.wk-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 24px; }
.wk-g { margin: 18px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.wk-it { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--text); cursor: pointer; }
.wk-it:hover { background: var(--gray); }
.wk-it span { display: none; }
.wk-it.on { background: var(--ink); color: #fff; }
.wk-it.on span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.wk-it-end { margin-top: 18px; border: 1px solid var(--line); font-weight: 600; }
.wk-tabs { display: none; }

/* The viewer: the picture fills it, with a slight margin */
.wk-main { position: relative; min-width: 0; min-height: 0; background: var(--gray); }
.wk-view { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wk-view.is-long { display: block; padding: 20px 20px 40px; }
.wk-view img, .wk-view video { display: block; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.35); }
.wk-view .is-fit { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; object-fit: contain; }
.wk-view .is-tall { width: 100%; height: auto; margin: 0 auto; }
.wk-view .is-phone { width: min(100%, 390px); height: auto; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line); }
.wk-arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
}
.wk-arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.wk-arrow[disabled] { opacity: 0; pointer-events: none; }
.wk-arrow svg { width: 20px; height: 20px; }
.wk-prev { left: 16px; }
.wk-next { right: 16px; }
.wk-cap { display: none; }

/* A #1-vs-ours piece: the 2 ads side by side, each about half the viewer and as tall as it allows, a small label above */
.wk-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; height: 100%; }
.wk-pair figure { margin: 0; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.wk-pair figcaption { flex: 0 0 auto; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-align: center; }
.wk-view .wk-pair img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: calc(100% - 30px); width: auto; height: auto; object-fit: contain; }

/* The end: 1 line and the page's own button */
.wk-end { max-width: 640px; text-align: center; }
.wk-end h3 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.wk-end h3 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: linear-gradient(180deg, transparent 84%, #FF3B30 84%, #FF3B30 94%, transparent 94%); padding: 0 0.07em; margin: 0 -0.03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wk-end .btn { margin-top: 36px; }
.wk-end p { max-width: 520px; margin: 18px auto 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

html.wk-open { overflow: hidden; }

@media (max-width: 900px) {
  body.biz section.wk { padding: 0 0 80px; }
  .wk .bz-h { margin-bottom: 36px; }
  .wk-grid { gap: 12px; padding-bottom: 28px; }
  .wk-card { flex-basis: calc((100% - 12px) / 1.6); }
  .wk-go { width: 40px; height: 40px; }
  .wk-go svg { width: 17px; height: 17px; }
  .wk-go-prev { left: -8px; }
  .wk-go-next { right: -8px; }
  .wk-tile { border-radius: 14px; }
  .wk-band { height: 40px; padding: 0 10px; font-size: 10.5px; }
  .wk-band b { font-size: 12px; }
  .wk-lock { width: 44px; height: 44px; top: 34%; }
  .wk-lock svg { width: 18px; height: 18px; }

  .wk-sheet { inset: 12px 10px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 16px; }
  .wk-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .wk-head { align-items: center; padding: 12px 12px 10px 16px; border-bottom: 0; }
  .wk-id b { font-size: 16px; }
  .wk-list { display: none; }
  .wk-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 12px; }
  .wk-tabs::-webkit-scrollbar { display: none; }
  .wk-tab { flex: 0 0 auto; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--text); cursor: pointer; }
  .wk-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .wk-view { bottom: 52px; padding: 12px; }
  .wk-view.is-long { padding: 12px 12px 24px; }
  .wk-arrow { display: none; }
  .wk-view.is-pair { display: block; padding: 12px 12px 24px; }
  .wk-pair { grid-template-columns: minmax(0, 1fr); height: auto; gap: 20px; }
  .wk-pair figure { height: auto; }
  .wk-view .wk-pair img { width: 100%; max-height: none; }
  .wk-cap { display: flex; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #fff; border-top: 1px solid var(--line); }
  .wk-cap[hidden] { display: none; }
  .wk-cap b { min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wk-cap span { flex: 0 0 auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .wk-cap span::after { content: " · swipe"; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-modal.is-in .wk-sheet { animation: none; }
  a.wk-tile:hover { transform: none; }
}
