/*
 * Slidestory home page: the desk under the headline. The visitor's slide, a thin thread, the same slide landed,
 * and one figure with the words "read twice". Five examples take turns.
 */
.desk { display: grid; gap: 18px; margin: clamp(26px, 4vw, 48px) 0 0; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.desk.in { opacity: 1; transform: none; }
.dk { display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 8vw, 120px) minmax(0, 1fr); align-items: center; }
.dk-slide { position: relative; display: grid; gap: 10px; margin: 0; min-width: 0; }
.dk-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -26px rgba(14, 21, 48, .5); transition: opacity .42s ease; }
.dk-art svg { display: block; width: 100%; height: 100%; }
.dk-art * { animation: none; }
.dk-after .vz-hl { transform: none; }
.dk-before .dk-art { transform: rotate(-1.2deg); }
.dk-after .dk-art { box-shadow: 0 0 0 1px var(--accent), 0 22px 40px -26px rgba(39, 66, 230, .45); }
.dk[data-swap] .dk-art { opacity: 0; }
.dk-slide figcaption { font: 500 14px/1.3 var(--sans); color: var(--muted); text-align: center; }
.dk-after figcaption { color: var(--ink-2); }

/* the thread: one line from the slide that was to the slide that landed, drawn once when the desk appears */
.dk-thread { position: relative; align-self: center; height: 100%; min-height: 60px; }
.dk-thread svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dk-thread path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s .5s var(--ease); }
.desk.in .dk-thread path { stroke-dashoffset: 0; }
.dk-th-n { display: none; }
.dk-thread i { position: absolute; right: -4px; top: 42%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s 1.7s cubic-bezier(.3, 1.5, .5, 1); }
.desk.in .dk-thread i { transform: none; }

/* the read-twice detail: a figure from the slide, a tick, two words. Nothing explains it. */
.dk-read { position: absolute; right: -10px; top: -14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 8px 18px -12px rgba(14, 21, 48, .45); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.dk-fig { font: 700 14px/1 var(--display); letter-spacing: -.01em; }
.dk-tick { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.dk-tick svg { width: 10px; height: 10px; }
.dk-rw { color: var(--muted); font-weight: 500; }
.dk-read[hidden] { display: none; }

.dk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.dk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-tab { padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.dk-tab:hover { color: var(--ink); }
.dk-tab[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.dk-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dk-note { margin: 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 720px) {
  .dk { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .dk-thread { height: 48px; min-height: 0; width: 100%; margin: 6px 0; }
  .dk-th-w { display: none; } .dk-th-n { display: block; }
  .dk-thread i { right: 50%; top: auto; bottom: -4px; margin: 0 -4px 0 0; }
  .dk-before .dk-art { transform: none; }
  .dk-read { right: 6px; top: -12px; }
}
@media (pointer: coarse) { .dk-tab { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .desk { opacity: 1; transform: none; transition: none; }
  .dk-thread path { stroke-dashoffset: 0; transition: none; }
  .dk-thread i { transform: none; transition: none; }
  .dk-art { transition: none; }
}

/* ---------- Release 25: the slider is back. The data on the left of the handle, the story on the right; it sweeps by itself and anyone can grab it ---------- */
.show { display: grid; gap: 16px; width: min(100%, 920px); margin: clamp(26px, 4vw, 48px) auto 0; }
.sh-stage { --x: 96%; position: relative; aspect-ratio: 16 / 9; overflow: visible; border-radius: 12px; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sh-layer { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -26px rgba(14, 21, 48, .5); transition: opacity .34s ease; }
.sh-layer svg { display: block; width: 100%; height: 100%; }
.sh-layer * { animation: none; }
.sh-new { box-shadow: 0 0 0 1px var(--accent), 0 22px 40px -26px rgba(39, 66, 230, .45); }
.sh-old { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.sh-stage[data-swap] .sh-layer { opacity: 0; }
.sh-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; }
.sh-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; right: -14px; }
.sh-k { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 10px 22px -10px rgba(39, 66, 230, .7); transition: transform .2s var(--ease); }
.sh-k svg { width: 22px; height: 22px; }
.sh-stage:hover .sh-k, .sh-h:focus-visible .sh-k { transform: scale(1.08); }
.sh-h:focus-visible { outline: none; }
.sh-h:focus-visible .sh-k { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--accent); }
.sh-chip { position: absolute; top: 12px; z-index: 2; padding: 6px 11px; border-radius: 999px; font: 600 12.5px/1 var(--sans); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); transition: opacity .25s; pointer-events: none; }
.sh-chip.o { left: 12px; }
.sh-chip.n { right: 12px; color: var(--accent-ink, #fff); background: var(--accent); border-color: var(--accent); }
.sh-stage[data-edge="l"] .sh-chip.o, .sh-stage[data-edge="r"] .sh-chip.n { opacity: 0; }
.sh-read { position: absolute; right: -10px; top: -14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 8px 18px -12px rgba(14, 21, 48, .45); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.sh-stage.on .sh-read { opacity: 1; transform: none; }
.sh-read .dk-fig { font: 700 14px/1 var(--display); }
.sh-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 0; }
.sh-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-tab { position: relative; overflow: hidden; padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.sh-tab:hover { color: var(--ink); }
.sh-tab[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.sh-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.sh-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sh-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.show[data-still="1"] .sh-note::after { content: " Motion is off on this device."; }
@media (max-width: 720px) { .sh-k { width: 36px; height: 36px; margin: -18px 0 0 -18px; } .sh-read { right: 6px; top: auto; bottom: -14px; } }
@media (prefers-reduced-motion: reduce) { .sh-layer, .sh-k, .sh-chip, .sh-read { transition: none; } }
@media (prefers-color-scheme: dark) { .sh-layer { background: #fff; } }
