/* ==========================================================================
   pointillviz.com · the homepage
   Loads after assets/pv/pv.css and only adds this page's parts:
   0 page scale  1 hero (the instrument)  2 workspace  3 extend
   4 how to cite  5 section index  6 motion  7 fallbacks
   Tokens come from pv.css; selectors stay one class deep where possible.
   ========================================================================== */

/* -- 0 · Page scale ----------------------------------------------------------
   Above 1440 x 900 the page is laid out for (viewport / k) and drawn k times
   larger. The head script sets --k (at most 1.6, the design system's chrome
   scale, which zooms the bar, footer and toasts on every site) and --dvw (the
   viewport's width / k / 100): the hero's frame scales by a transform and the
   sections below by zoom, so they keep the bar's left and right edges.
   Anchors here land by the page's scroll-padding: the sections are zoomed, and
   the design system's scroll-margin would be zoomed with them. The bar is
   fixed, so a focused link in it never scrolls the page. */
:root { --dvw: 1vw; --pv-scroll-offset: 0px; }
html { background: var(--pv-bg); scroll-padding-top: calc(var(--pv-topbar-block) + 16px); }
body { overflow-x: clip; }
.wk, .ex, .pub { zoom: var(--k); }

/* ═════════════════════════════ 1 · Hero ═════════════════════════════════ */

/* Six cases, each its own colour field: braindev's split halves, extended to six. The open
   case takes most of the deck; the other five narrow to stripes that keep their name, their
   colour and a glimpse of what they hold. Wide windows set them side by side as columns;
   phones and portrait screens stack them as rows (the same deck, turned).
   The deck is a size container: a stripe is --hx-stripe, the open case the rest
   (100cq - 5 stripes), and a switch transitions flex-basis, so the geometry is CSS alone.
   One canvas spans the deck under the open case's words (home.js frames the cells into the
   open field), so a switch flies the cells from one field into the next.
   Layers in the deck: fields and glimpses (0) · the cells (1) · each case's words (2) ·
   the six tabs (3). The columns make no stacking context of their own, so the canvas sits
   between a field and its words. */

@property --hx-stripe { syntax: "<length>"; inherits: true; initial-value: 52px; }
@property --hx-wash { syntax: "<color>"; inherits: false; initial-value: #E2B25A; }

:root {
  /* the design system's case colours (pv.css §4), and this page's three more */
  --pv-case-tma: #3FAEF0;     /* the tissue array: azure, apart from the gold, violet, pink, orange and mint */
  --pv-case-ai: #FF8A3D;      /* the assistant: orange, a tool call's colour in Fig. 2 */
  --pv-case-store: #6FE0BD;   /* the Tool Store: mint, the store's own accent */
}
[data-case="tma"] { --pv-case: var(--pv-case-tma); }
[data-case="ai"] { --pv-case: var(--pv-case-ai); }
[data-case="store"] { --pv-case: var(--pv-case-store); }

/* each field runs from its case colour into its own deep hue (never into grey): the cells
   glow on the deep part, the names sit in ink on the bright part */
.hx [data-case="2d"]    { --hx-c1: #B4531A; --hx-c2: #4A1608; --hx-c3: #160806; }
.hx [data-case="3d"]    { --hx-c1: #5B32D6; --hx-c2: #24105E; --hx-c3: #0B0720; }
.hx [data-case="tma"]   { --hx-c1: #0E66B4; --hx-c2: #062248; --hx-c3: #030916; }
.hx [data-case="omics"] { --hx-c1: #C42375; --hx-c2: #520A3A; --hx-c3: #170514; }
.hx [data-case="ai"]    { --hx-c1: #D6402A; --hx-c2: #620F1F; --hx-c3: #1A0509; }
.hx [data-case="store"] { --hx-c1: #11A08A; --hx-c2: #064542; --hx-c3: #031313; }

.hx {
  --hx-ink: #06070D;                           /* words on the bright part of a field */
  --hx-ink-2: #06070D;                         /* the open case's line: full ink (AA on every field) */
  --hx-dur: 720ms;                             /* a switch: the fields, then the words */
  --hx-ease: var(--pv-ease-drawer);            /* answers at once, lands softly */
  --hx-pad: 18px;                              /* inside the open case (design px, × --k) */
  --hx-title-top: 16px;
  --hx-title-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.25rem);
  --hx-head: 86px;                             /* the open case's name and line */
  --hx-head-px: calc(var(--hx-head) * var(--k));
  position: relative;
  isolation: isolate;
  padding: calc(var(--pv-topbar-h) + 14px) var(--pv-gutter) 26px;
  background: var(--pv-bg);
  color: var(--pv-text);
}
.hx::before {
  /* the open case's colour washes the ground above the deck, from its far corner */
  --hx-wash: var(--pv-case, #E2B25A);
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 95% at 90% 0%, color-mix(in srgb, var(--hx-wash) 55%, transparent), transparent 78%),
    radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--hx-wash) 14%, transparent), transparent 72%);
  transition: --hx-wash var(--hx-dur) ease;
}

/* -- the intro: headline, lede and the two actions -------------------------- */
.hx__intro { display: grid; gap: 14px; }
.hx__title {
  margin: 0;
  font-size: clamp(2.125rem, 1.15rem + 4.6vw, 3.5rem);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 108;
  letter-spacing: -0.016em;
  line-height: 1.02;
}
/* The wordmark takes the headline's place, large (the top bar's small copy hides while it is
   on screen; home.js). Its width follows the intro column, never wider than it. */
.hx__title--logo { align-self: start; margin-top: clamp(12px, 3vh, 30px); line-height: 0; white-space: normal; }
.hx__logo { display: block; width: min(100%, clamp(18rem, 9rem + 34vw, 52rem)); height: auto; }
/* Under the wordmark, in the top bar's label type (mono caps, tracked). */
.hx__tagline {
  display: block;
  margin-top: clamp(10px, 1.4vh, 16px);
  /* The P of the wordmark starts 4.84 / 617.7 of the logo's width in (logo.svg's
     viewBox); the same share of the same width, less the S's own side bearing,
     starts the line's ink under the P's. */
  margin-left: calc(min(100%, clamp(18rem, 9rem + 34vw, 52rem)) * 0.007836 - 0.08em);
  font: 500 var(--pv-text-xs) / 1 var(--pv-font-mono);
  font-variation-settings: normal;
  letter-spacing: var(--pv-track-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pv-text-2);
}
.pv-topbar__brand { transition: opacity 240ms ease, visibility 0s linear 0s; }
.pv-topbar.is-hero-brand .pv-topbar__brand { opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms; }
@media (prefers-reduced-motion: reduce) {
  .pv-topbar__brand, .pv-topbar.is-hero-brand .pv-topbar__brand { transition: none; }
}
.hx__aside { display: grid; gap: 16px; }
/* a little lighter than --pv-text-2: over the case-coloured glow it keeps 4.5:1 or better in every case */
.hx__lede { margin: 0; max-width: 36rem; color: rgb(205, 197, 178); }
.hx__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

/* -- the deck -------------------------------------------------------------- */
.hx__deck {
  --hx-stripe: 48px;
  /* the open row: about square on a phone, and never taller than the screen under the bar */
  --hx-open: clamp(300px, min(100vw - 2 * var(--pv-gutter) + 16px, 100vh - 110px), 430px);
  position: relative;
  isolation: isolate;
  container-type: size;
  height: calc(5 * var(--hx-stripe) + var(--hx-open));
  margin-top: 22px;
  border-radius: calc(20px * var(--k));
  overflow: hidden;
  background: #0A0C18;
  touch-action: pan-y;
}
.hx__cols,
.hx__tabs {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.hx__col,
.hx__tab {
  flex: 0 0 var(--hx-stripe);
  min-width: 0;
  min-height: 0;
  transition: flex-basis var(--hx-dur) var(--hx-ease);
}
.hx__col.is-open,
.hx__tab[aria-selected="true"] { flex-basis: calc(100cqh - 5 * var(--hx-stripe)); }
.hx__col { position: relative; overflow: hidden; }
/* the edge between two fields: a thin dark seam, not a rule */
.hx__col + .hx__col { box-shadow: 0 -1px 0 rgba(6, 7, 13, 0.55); }

/* a field: the stripe's colour runs across the row; the open case's runs down it */
.hx__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--pv-case) 0, var(--pv-case) 30%, var(--hx-c1) 52%, var(--hx-c2) 76%, var(--hx-c3) 100%);
}
.hx__field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 50% at 50% 66%, color-mix(in oklab, var(--hx-c3) 70%, transparent), transparent 100%),
    linear-gradient(180deg, var(--pv-case) 0, color-mix(in oklab, var(--pv-case) 78%, var(--hx-c1)) var(--hx-head-px), var(--hx-c1) calc(var(--hx-head-px) + 16%), var(--hx-c2) 60%, var(--hx-c3) 92%);
  opacity: 0;
  transition: opacity var(--hx-dur) ease;
}
.hx__col.is-open .hx__field::after { opacity: 1; }

/* the glimpse: a slit through the case's real picture, on the deep part of its stripe */
.hx__peek {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 40%;
  background: center / cover no-repeat;
  mix-blend-mode: lighten;
  -webkit-mask: linear-gradient(90deg, transparent, #000 34%);
  mask: linear-gradient(90deg, transparent, #000 34%);
  transition: opacity 360ms ease 180ms;
}
.hx__col.is-open .hx__peek { opacity: 0; transition: opacity 160ms ease; }
.hx__col[data-state="2d"] .hx__peek { background-image: url(../media/hero/hint-2d-h.webp); }
.hx__col[data-state="3d"] .hx__peek { background-image: url(../media/hero/hint-3d-h.webp); }
.hx__col[data-state="tma"] .hx__peek { background-image: url(../media/hero/hint-tma-h.webp); }
.hx__col[data-state="multiomics"] .hx__peek { background-image: url(../media/hero/hint-multiomics-h.webp); }
.hx__col[data-state="ai"] .hx__peek { background-image: url(../media/hero/hint-ai-h.webp); }
.hx__col[data-state="store"] .hx__peek { background-image: url(../media/hero/hint-store-h.webp); }

/* -- the six tabs: the whole stripe is the button; the open case's name is its title ---- */
.hx__tabs { z-index: 3; pointer-events: none; }
.hx__tab {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 calc(16px * var(--k));
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--hx-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
/* the open case is not a target: what is under it (the cells, the case's own links) is. Its
   stripe label gives way to the title in its panel, which stays with the field's still edge. */
.hx__tab[aria-selected="true"] { cursor: default; pointer-events: none; }
.hx__tab[aria-selected="true"] .hx__tab-in { opacity: 0; }
.hx__tab:focus-visible { outline: 3px solid var(--hx-ink); outline-offset: -5px; box-shadow: inset 0 0 0 7px var(--pv-case); }
.hx__tab-in { zoom: var(--k); display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx__ico { flex: none; width: 18px; height: 18px; }
.hx__name { font: 600 1.0625rem / 1.1 var(--pv-font-sans); letter-spacing: -0.01em; white-space: nowrap; }
/* a stripe under the pointer lights up a little (the tab covers its stripe) */
.hx__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pv-dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .hx__tab[aria-selected="false"]:hover::before { opacity: 1; }
  .hx__tab[aria-selected="false"]:hover .hx__tab-in { transform: translateX(3px); }
}
/* its own small layer: the label moves on every switch, and the GPU otherwise leaves a seam
   down the stripe beside its icon */
.hx__tab-in { transition: transform var(--pv-dur-ui) var(--pv-ease-out), opacity 160ms ease; will-change: transform; }
.hx__tab:active .hx__tab-in { transform: scale(var(--pv-press)); }
.hx__tab[aria-selected="true"]:active .hx__tab-in { transform: none; }

/* a case on its way: a line along the top of its field fills as its cells arrive */
.hx__load {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--hx-ink);
  opacity: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  transition: opacity 200ms ease;
}
.hx__tab.is-loading .hx__load { opacity: 0.8; }
.hx__tab.is-loading:not(.is-known) .hx__load { transform: none; animation: hx-wait 1.2s var(--pv-ease-in-out) infinite; }
@keyframes hx-wait { from { clip-path: inset(0 100% 0 0); } 50% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }

/* -- a case's words, anchored to the edge of its field that stays put while it opens ------ */
.hx__panel {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100cqw;
  height: calc(100cqh - 5 * var(--hx-stripe));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.hx__col[data-from="end"] .hx__panel { top: auto; bottom: 0; }
.hx__col.is-open .hx__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 420ms var(--pv-ease-out) calc(var(--hx-dur) * 0.26), visibility 0s;
}
.hx__col.is-open .hx__panel--ai,
.hx__col.is-open .hx__panel--store { pointer-events: auto; }
.hx__panel-in {
  zoom: var(--k);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--hx-title-top) var(--hx-pad) 12px;
}
/* the open case's title is set in the same face as the column labels (.hx__name), only larger */
.hx__ttl {
  flex: none;
  margin: 0 0 6px;
  font: 600 var(--hx-title-size) / 1.05 var(--pv-font-sans);
  letter-spacing: -0.01em;
  color: var(--hx-ink);
  white-space: nowrap;
}
.hx__say {
  flex: none;
  max-width: 36em;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--hx-ink-2);
  text-wrap: pretty;
}
.hx__panel:focus-visible { outline: 3px solid var(--pv-focus); outline-offset: -4px; }

/* the sizes home.js reads (a stripe, the open case's head), and a switch with no transition */
.hx__probe { position: absolute; left: 0; top: 0; width: var(--hx-stripe); height: var(--hx-head-px); visibility: hidden; pointer-events: none; }
.hx__deck.is-instant *,
.hx__deck.is-instant *::after { transition: none !important; }

/* -- the cells: one canvas over the deck, framed into the open field by home.js ---------- */
/* No z-index: the stage paints after the fields by tree order (it is the deck's last child),
   under the words (2) and the tabs (3), and it makes no group of its own, so the still (no
   WebGL) can blend into its field with lighten. */
.hx__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 360ms ease 160ms, visibility 0s;
}
/* the assistant or the store is open: the cells step aside (home.js holds their frames) */
.hx.is-away .hx__stage { opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.hx.is-still .hx__stage { transition: none; }   /* a fade would make it a group and undo the blend */
.hx__gl { position: absolute; inset: 0; }
.hx__gl canvas { pointer-events: auto; outline: none; cursor: grab; }
.hx__gl canvas:active { cursor: grabbing; }

/* the cloud's own rect, for the focus ring, the still and the strip under it
   (home.js sets --f-l / --f-t / --f-r / --f-b, px inside the deck) */
.hx__focus {
  position: absolute;
  left: calc(var(--f-l, 4px) - 4px);
  top: calc(var(--f-t, 4px) - 4px);
  right: calc(var(--f-r, 4px) - 4px);
  bottom: calc(var(--f-b, 4px) - 4px);
  border: 2px solid var(--pv-focus);
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--pv-dur-hover) ease;
}
.hx.is-focus .hx__focus { opacity: 1; }

/* No WebGL: the case's still in the cloud's own rect, its black ground taking the field's
   colour (lighten). */
.hx__stillbox {
  position: absolute;
  left: var(--f-l, 0px);
  top: var(--f-t, 0px);
  right: var(--f-r, 0px);
  bottom: var(--f-b, 0px);
  pointer-events: none;
}
.hx__stillbox > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  mix-blend-mode: lighten;
}
html:not(.js) .hx__stillbox { left: 12px; right: 12px; top: var(--hx-head-px); bottom: calc(5 * var(--hx-stripe) + 12px); }

/* the strip under the cloud: still / play, the 3D hint, the scale bar */
.hx__strip {
  position: absolute;
  z-index: 2;
  left: var(--s-l, 12px);
  right: var(--s-r, 12px);
  top: var(--s-t, calc(100% - 40px));
  height: calc(30px * var(--k));
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.hx__strip > * { pointer-events: auto; }
.js .hx:not(.is-framed) .hx__strip { visibility: hidden; }
.hx__motion, .hx__hint, .hx__fallback { zoom: var(--k); }
.hx__motion {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(239, 230, 210, 0.3);
  border-radius: 50%;
  background: rgba(6, 7, 13, 0.62);
  color: var(--pv-text);
  opacity: 0.86;
  transition: opacity var(--pv-dur-hover) ease, background-color var(--pv-dur-hover) ease, transform var(--pv-dur-press) var(--pv-ease-out);
}
.hx__motion::after { content: ""; position: absolute; inset: -8px; }   /* a 44 px target */
.hx__motion::before,
.wk-play::before {
  content: "";
  width: 9px;
  height: 10px;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px);
}
.hx__motion[data-state="paused"]::before,
.wk-play[data-state="paused"]::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  background: none;
  border-style: solid;
  border-width: 5.5px 0 5.5px 9px;
  border-color: transparent transparent transparent currentColor;
}
.hx__motion:active { transform: scale(var(--pv-press)); }
.hx__motion:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .hx__motion:hover { opacity: 1; background: rgba(6, 7, 13, 0.9); }
}
.hx__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 4px 6px 4px 9px;
  border: 1px solid color-mix(in srgb, var(--pv-case) 55%, transparent);
  border-radius: var(--pv-radius-pill);
  background: rgba(6, 7, 13, 0.62);
  font: 500 var(--pv-text-2xs) / 1 var(--pv-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pv-text);
  white-space: nowrap;
}
.hx__hint svg { flex: none; width: 14px; height: 14px; color: var(--pv-case); }
.hx__hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border: 1px solid var(--pv-line-2);
  border-radius: 4px;
  font: 500 0.6875rem / 1 var(--pv-font-mono);
  letter-spacing: 0;
  color: var(--pv-text-2);
}
.hx__hint span + kbd { margin-left: 2px; }
.hx__hint kbd + kbd { margin-left: -4px; }
@media (hover: none) and (pointer: coarse) { .hx__hint kbd { display: none; } }
.hx__scale {
  display: grid;
  gap: calc(5px * var(--k));
  justify-items: end;
  margin: 0 0 0 auto;
  font: 500 calc(0.6875rem * var(--k)) / 1 var(--pv-font-mono);
  letter-spacing: 0.06em;
  color: var(--pv-text-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.hx__scale i { display: block; height: calc(3px * var(--k)); width: 64px; border-radius: 2px; background: #F4EEE2; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.hx__scale[data-off] { visibility: hidden; }
/* the tissue array's gene key: the gene, and its scale from low to high (home.js draws the
   ramp from the state's own palette into --ramp) */
.hx__gene {
  display: none;
  align-items: center;
  gap: calc(7px * var(--k));
  margin: 0 0 0 auto;
  font: 500 calc(0.6875rem * var(--k)) / 1 var(--pv-font-mono);
  letter-spacing: 0.06em;
  color: var(--pv-text-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.hx__gene.is-on { display: flex; }
.hx__gene b { margin-right: calc(3px * var(--k)); font: italic 400 calc(0.8125rem * var(--k)) / 1 var(--pv-font-sans); color: var(--pv-text); }
.hx__gene i { display: block; width: calc(72px * var(--k)); height: calc(6px * var(--k)); border-radius: 3px; background: var(--ramp, #F4EEE2); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.hx__gene.is-on + .hx__scale:not([data-off]) { margin-left: calc(18px * var(--k)); }
.is-still .hx__scale,
.is-still .hx__motion,
.is-still .hx__hint { display: none; }
.hx__fallback {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--pv-text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* names on the cloud itself: the tissue array's tissues at the centre of their cells, the
   multi-omics plates beside each plate in their colours */
.hx__marks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hx__marks span {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  font: 500 calc(0.6875rem * var(--k)) / 1 var(--pv-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--g);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 280ms ease;
}
/* a tissue's name, centred on its cells, wrapping to a narrow block so neighbours stay clear */
.hx__marks--tissues span {
  display: block;
  max-width: 11ch;
  padding: 0;
  font-size: calc(0.625rem * var(--k));
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: normal;
  color: rgba(244, 238, 226, 0.88);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95);
}
@media (max-width: 899.98px) { .hx__marks--tissues span { font-size: 0.5625rem; letter-spacing: 0.06em; } }
@media (max-width: 599.98px) { .hx__marks--tissues { display: none; } }
.hx__marks--plates span { padding: 0; font-size: calc(0.75rem * var(--k)); letter-spacing: 0.06em; text-transform: none; }
.hx__marks--plates span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); }
.hx__marks.is-on span { opacity: 1; }

/* the cell under the pointer */
.hx__tip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  display: grid;
  gap: 2px;
  padding: calc(7px * var(--k)) calc(10px * var(--k)) calc(8px * var(--k));
  border: 1px solid var(--pv-line-2);
  border-radius: calc(8px * var(--k));
  background: rgba(10, 12, 24, 0.94);
  font-size: calc(0.8125rem * var(--k));
  line-height: 1.3;
  color: var(--pv-text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: opacity 120ms ease;
}
.hx__tip.is-on { opacity: 1; }
.hx__tip b { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.hx__tip b i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); }

/* -- the assistant ---------------------------------------------------------- */
.hx-ai {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "flow pic" "runs runs";
  gap: 10px 14px;
  color: var(--pv-text);
}
/* the question, a dotted thread down to the agent, and what the agent works with */
.hx-ai__flow { grid-area: flow; display: flex; flex-direction: column; min-height: 0; }
.hx-ai__thread {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 12px;
  margin: 6px 0;
  padding-left: calc(var(--orb, 52px) / 2 + 14px);
  background: radial-gradient(circle, rgba(255, 226, 210, 0.6) 0.9px, transparent 1.3px) calc(var(--orb, 52px) / 2 - 1px) 0 / 2px 6px repeat-y;
}
.hx-ai__talk { grid-area: talk; display: grid; gap: 6px; }
.hx-ai__ask {
  margin: 0;
  padding: 9px 12px 10px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(10, 5, 8, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 200, 0.12);
  font-size: 0.875rem;
  line-height: 1.4;
}
.hx-ai__who {
  display: block;
  margin-bottom: 3px;
  font: 600 0.6875rem / 1.2 var(--pv-font-sans);
  letter-spacing: 0.02em;
  color: #FFB47C;                              /* the case's orange, lightened for the dark bubble */
}
.hx-ai__ask q { quotes: "“" "”"; }
.hx-ai__note { margin: 0; font-size: 0.8125rem; line-height: 1.35; color: rgba(255, 236, 226, 0.84); }
.hx-ai__agent { grid-area: agent; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.hx-ai__orb {
  /* the Assistant's status orb, as the viewer draws it while a turn runs (Fig. 2c) */
  width: var(--orb, 52px);
  height: var(--orb, 52px);
  padding: 7px;
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(circle, rgba(14, 5, 8, 0.92) 0 58%, rgba(14, 5, 8, 0) 71%);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--pv-case) 80%, transparent);
  display: block;
}
/* The thinking orb (home.js mounts the viewer's animated orb; the still dots are the fallback) */
.hx-ai__orb > svg, .hx-ai__orb > canvas,
.hx__orb-peek > svg, .hx__orb-peek > canvas { display: block; width: 100% !important; height: 100% !important; }
[data-orb].is-live > .hx-orb-still { display: none; }
.hx__orb-peek, .hx__kit-peek {
  position: absolute; z-index: 1; top: 50%; left: 40%;
  width: 34px; aspect-ratio: 1; padding: 4px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 5, 8, 0.92) 0 58%, rgba(14, 5, 8, 0) 71%);
  box-shadow: 0 0 26px -4px color-mix(in srgb, var(--pv-case) 85%, transparent);
  pointer-events: none;
  transition: opacity 360ms ease 180ms;
}
.hx__col.is-open .hx__orb-peek, .hx__col.is-open .hx__kit-peek { opacity: 0; transition: opacity 160ms ease; }
/* The Tool Store's counterpart of the orb: nine tool tiles that light up in turn, as tools join a kit */
.hx__kit-peek > svg { display: block; width: 100%; height: 100%; }
.hx__kit-peek rect {
  fill: #EFE6D2;
  opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.74);
  animation: hx-kit 2.7s ease-in-out calc(var(--i) * 0.3s) infinite;
}
.hx__col.is-open .hx__kit-peek rect { animation-play-state: paused; }
@keyframes hx-kit {
  0%, 40%, 100% { opacity: 0.2; transform: scale(0.74); }
  12% { opacity: 1; transform: scale(1.06); }
}
.hx-ai__groups { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
/* the label column in em: it holds the dot and "Navigate", the longest name, at either size */
.hx-ai__groups li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: baseline; gap: 8px; font-size: 0.8125rem; line-height: 1.3; color: rgba(255, 240, 232, 0.86); }
.hx-ai__groups b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #FFF6EE; }
.hx-ai__groups b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); }
.hx-ai__result { grid-area: pic; display: grid; align-content: start; gap: 6px; margin: 0; }
.hx-ai__pic {
  display: block;
  aspect-ratio: 880 / 663;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 220, 200, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.hx-ai__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-ai__pic img.is-in { opacity: 1; }
.hx-ai__result figcaption { font-size: 0.75rem; line-height: 1.35; color: rgba(255, 236, 226, 0.78); }
.hx-ai__runs { grid-area: runs; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hx-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hx-ai__chips li {
  padding: 5px 10px;
  border-radius: var(--pv-radius-pill);
  background: rgba(10, 5, 8, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 200, 0.16);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.hx-ai__runs p { margin: 0; flex: 1 1 16rem; font-size: 0.75rem; line-height: 1.35; color: rgba(255, 236, 226, 0.72); }

/* -- the Tool Store ---------------------------------------------------------- */
/* The rows take what their cards need and no more; in a field too short for that they share
   its height, each artwork scaled down whole on its plate, so the grid never runs out of it. */
.hx-store {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, max-content);
  align-content: start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
/* each tool as the store shows it: its artwork over its name, on the card's own dark plate;
   the cards of a row share its height */
.hx-store > li { display: grid; min-height: 0; }
.hx-store__tool {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  display: grid;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(3, 14, 14, 0.86);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 240, 0.1);
  color: var(--pv-text);
  text-decoration: none;
  outline-offset: 3px;
  transition: box-shadow var(--pv-dur-hover) ease, transform var(--pv-dur-ui) var(--pv-ease-out);
}
.hx-store__art {
  /* its ratio sizes the row; stretched, it takes a shorter row and the artwork fits inside */
  position: relative;
  display: block;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  background: #050B0C;
}
/* The plate's height comes from its width alone (224 / 384), before or after its picture
   arrives: Safari sized it from the picture, so a first open showed the names only. */
.hx-store__art::before { content: ""; display: block; padding-top: 58.334%; }
.hx-store__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.hx-store__art img.is-in { opacity: 1; }
.hx-store__name { padding: 5px 8px 6px; font-size: 0.6875rem; font-weight: 500; line-height: 1.25; color: rgba(236, 255, 250, 0.9); }
.hx-store__tool:active { transform: scale(var(--pv-press)); }
@media (hover: hover) and (pointer: fine) {
  .hx-store__tool:hover { box-shadow: inset 0 0 0 1px var(--pv-case), 0 10px 24px -12px rgba(111, 224, 189, 0.5); transform: translateY(-2px); }
  .hx-store__tool:hover .hx-store__name { color: #FFFFFF; }
}
.hx-store__tool:focus-visible { outline: 2px solid var(--pv-focus); }
.hx-store__all {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pv-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pv-case) 70%, transparent);
  text-underline-offset: 4px;
}
.hx-store__all svg { width: 15px; height: 15px; color: var(--pv-case); transition: transform var(--pv-dur-ui) var(--pv-ease-out); }
@media (hover: hover) and (pointer: fine) { .hx-store__all:hover svg { transform: translateX(3px); } }

/* -- phones and portrait screens: the rows -------------------------------------- */
@media (max-width: 899.98px), (max-aspect-ratio: 999/1000) {
  .hx-store li:nth-child(n+7) { display: none; }
  .hx-store { gap: 8px; }
}
@media ((max-width: 899.98px) or (max-aspect-ratio: 999/1000)) and (min-width: 600px) {
  .hx { padding-top: calc(var(--pv-topbar-h) + 24px); }
  .hx__deck { --hx-stripe: 58px; --hx-open: clamp(400px, 57vw, 540px); }
  .hx { --hx-pad: 24px; --hx-title-top: 20px; --hx-head: 100px; --hx-title-size: 2.5rem; }
  .hx__say { font-size: 1rem; }
  .hx-store { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hx-store li:nth-child(n+7) { display: grid; }
  .hx-store li:nth-child(n+9) { display: none; }   /* two rows; the link opens the rest */
  .hx__aside { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
}
@media (max-width: 419.98px) {
  .hx__cta { flex-wrap: nowrap; gap: 8px; }
  .hx__cta .pv-btn--lg { flex: 1 1 auto; min-width: 0; padding: 0 12px; font-size: 0.9375rem; }
  .hx__cta .pv-btn svg { display: none; }
}

/* -- wide windows: the columns, side by side ---------------------------------------- */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hx {
    --hx-pad: 30px;
    --hx-title-top: 26px;
    --hx-title-size: clamp(2.125rem, 3.2 * var(--dvw), 3.125rem);
    --hx-head: 126px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: calc(clamp(14px, 2.4vh, 24px));
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: calc(1240px * var(--k));
    padding:
      calc(var(--pv-topbar-block) + clamp(6px, 1.6vh, 16px) * var(--k))
      max(calc(var(--pv-gutter) * var(--k)), calc((100vw - var(--pv-page-wide) * var(--k)) / 2))
      calc(clamp(14px, 2.6vh, 26px) * var(--k));
  }
  .hx__intro {
    zoom: var(--k);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 30rem);
    align-items: end;
    column-gap: 40px;
  }
  .hx__title { font-size: clamp(2.75rem, 5 * var(--dvw), 4.75rem); white-space: nowrap; }
  .hx__aside { gap: 18px; padding-bottom: 4px; }
  .hx__deck { --hx-stripe: calc(clamp(64px, 7.9 * var(--dvw), 118px) * var(--k)); height: auto; min-height: 0; margin: 0; }
  .hx__cols, .hx__tabs { flex-direction: row; }
  .hx__col.is-open,
  .hx__tab[aria-selected="true"] { flex-basis: calc(100cqw - 5 * var(--hx-stripe)); }
  .hx__col + .hx__col { box-shadow: -1px 0 0 rgba(6, 7, 13, 0.55); }
  .hx__field { background: linear-gradient(180deg, var(--pv-case) 0, color-mix(in oklab, var(--pv-case) 88%, var(--hx-c1)) calc(var(--hx-head-px) + 60px * var(--k)), var(--hx-c1) 54%, var(--hx-c2) 78%, var(--hx-c3) 100%); }
  .hx__field::after {
    background:
      radial-gradient(58% 50% at 50% 63%, color-mix(in oklab, var(--hx-c3) 74%, transparent), transparent 100%),
      linear-gradient(180deg, var(--pv-case) 0, color-mix(in oklab, var(--pv-case) 78%, var(--hx-c1)) var(--hx-head-px), var(--hx-c1) calc(var(--hx-head-px) + 12%), var(--hx-c2) 56%, var(--hx-c3) 90%);
  }
  .hx__peek { inset: 38% 0 0; -webkit-mask: linear-gradient(transparent, #000 26%); mask: linear-gradient(transparent, #000 26%); }
  .hx__col[data-state="2d"] .hx__peek { background-image: url(../media/hero/hint-2d-v.webp); }
  .hx__col[data-state="3d"] .hx__peek { background-image: url(../media/hero/hint-3d-v.webp); }
  .hx__col[data-state="tma"] .hx__peek { background-image: url(../media/hero/hint-tma-v.webp); }
  .hx__col[data-state="multiomics"] .hx__peek { background-image: url(../media/hero/hint-multiomics-v.webp); }
  .hx__col[data-state="ai"] .hx__peek { background-image: url(../media/hero/hint-ai-v.webp); }
  /* a small orb just above the tissue, where the stripe's picture fades in (the peek starts at 38%) */
  .hx__orb-peek, .hx__kit-peek { top: 36%; right: auto; left: 50%; width: clamp(34px, 38%, 46px); padding: 5px; translate: -50% -50%; }
  .hx__col[data-state="store"] .hx__peek { background-image: url(../media/hero/hint-store-v.webp); }
  .hx__tab { flex-direction: column; align-items: center; padding: calc(22px * var(--k)) 0 0; }
  .hx__tab-in { flex-direction: column; gap: 12px; }
  .hx__ico { width: 20px; height: 20px; }
  .hx__name { writing-mode: vertical-rl; font-size: 1.375rem; line-height: 1; }
  .hx__tab::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%); }
  @media (hover: hover) and (pointer: fine) {
    .hx__tab[aria-selected="false"]:hover .hx__tab-in { transform: translateY(3px); }
  }
  .hx__panel { width: calc(100cqw - 5 * var(--hx-stripe)); height: 100cqh; }
  .hx__col[data-from="end"] .hx__panel { top: 0; bottom: auto; left: auto; right: 0; }
  html:not(.js) .hx__stillbox { left: 24px; right: calc(5 * var(--hx-stripe) + 24px); top: var(--hx-head-px); bottom: 20px; }
  .hx__say { font-size: 1.0625rem; max-width: 34em; }

  .hx__panel-in { padding-bottom: 20px; }
  .hx-ai { --orb: 64px; margin-top: 20px; gap: 14px 28px; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .hx-ai__agent { gap: 16px; }
  .hx-ai__ask { padding: 13px 16px 14px; font-size: 1.0625rem; line-height: 1.38; }
  .hx-ai__who { font-size: 0.75rem; }
  .hx-ai__orb { padding: 9px; }
  .hx-ai__groups li { font-size: 0.9375rem; }
  .hx-ai__groups { gap: 8px; }
  .hx-store { margin-top: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
  .hx-store__name { padding: 6px 10px 7px; font-size: clamp(0.6875rem, 0.25rem + 0.62 * var(--dvw), 0.8125rem); letter-spacing: -0.005em; line-height: 1.2; }
  .hx-store__all {
    position: absolute;
    right: var(--hx-pad);
    top: calc(var(--hx-title-top) + var(--hx-title-size) * 0.18);
    margin: 0;
    color: var(--hx-ink);
    text-decoration-color: rgba(6, 7, 13, 0.45);
  }
  .hx-store__all svg { color: var(--hx-ink); }
}
/* small landscape windows: the headline over the lede, the actions beside it */
@media (min-width: 900px) and (max-width: 1099.98px) and (min-aspect-ratio: 1/1) {
  .hx__intro { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .hx__aside { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .hx__title { font-size: clamp(2.5rem, 5.4 * var(--dvw), 3.25rem); }
  .hx__lede { font-size: 1rem; }
}
/* short windows (1280 × 720, 1366 × 768 at 125 %): the same, set tighter */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 760px) {
  .hx { --hx-head: 112px; --hx-title-top: 22px; --hx-title-size: clamp(2rem, 2.9 * var(--dvw), 2.75rem); }
  .hx__title { font-size: clamp(2.5rem, 4.4 * var(--dvw), 4rem); }
  .hx__lede { font-size: 1rem; line-height: 1.5; }
  .hx__cta .pv-btn--lg { min-height: 46px; }
  .hx__say { font-size: 1rem; }
  .hx-ai__note { display: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 620px) {
  .hx { --hx-head: 96px; --hx-title-top: 16px; --hx-title-size: clamp(1.75rem, 2.4 * var(--dvw), 2.25rem); }
  .hx__title { font-size: clamp(2.25rem, 3.6 * var(--dvw), 3rem); }
  .hx__lede { font-size: 0.875rem; line-height: 1.45; }
  .hx__aside { gap: 10px; }
  .hx__cta .pv-btn--lg { min-height: 40px; font-size: 0.875rem; }
  .hx__say { font-size: 0.875rem; }
}

/* The assistant's open field is its own size container: a narrow or short field (a phone, a
   tablet, a laptop's 1280 px) sets the question on top, the picture beside the agent's four
   groups, the runtimes under them; a roomy one keeps the groups' lines. */
.hx__panel--ai { container: hx-ai / size; }
@container hx-ai (max-width: 759.98px) or (max-height: 499.98px) {
  .hx-ai {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "talk talk" "pic agent" "runs runs";
    gap: 10px 14px;
    margin-top: 12px;
  }
  .hx-ai__flow { display: contents; }
  .hx-ai__thread { display: none; }
  .hx-ai__ask { padding: 8px 12px 9px; font-size: 0.875rem; }
  .hx-ai__who { font-size: 0.6875rem; }
  .hx-ai__orb, .hx-ai__result figcaption, .hx-ai__runs p { display: none; }
  .hx-ai__agent { grid-template-columns: minmax(0, 1fr); align-self: center; }
  .hx-ai__groups { gap: 7px; }
  .hx-ai__groups li { grid-template-columns: minmax(0, 1fr); font-size: 0.8125rem; }
  .hx-ai__groups li span { display: none; }
  /* the picture is its own box here, as large as its row allows, in its own proportions */
  .hx-ai__result { min-height: 0; align-self: stretch; display: flex; align-items: center; }
  .hx-ai__pic { display: contents; }
  .hx-ai__pic img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(100%, 260px);
    border-radius: 12px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 220, 200, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
  .hx-ai__chips { gap: 5px; }
  .hx-ai__chips li { padding: 4px 9px; font-size: 0.6875rem; }
}
@container hx-ai ((max-width: 759.98px) or (max-height: 499.98px)) and (min-width: 600px) and (min-height: 440px) {
  .hx-ai__groups li { grid-template-columns: 5.6em minmax(0, 1fr); }
  .hx-ai__groups li span { display: inline; }
  .hx-ai__ask { font-size: 0.9375rem; }
  .hx-ai__runs p { display: block; }
}

/* The store's open field is a size container too: a short one (a laptop) sets its cards tighter. */
.hx__panel--store { container: hx-store / size; }
@container hx-store (max-height: 579.98px) {
  .hx-store { gap: 10px; margin-top: 14px; }
  .hx-store__name { padding: 5px 8px 6px; font-size: 0.6875rem; }
}

/* Without script the cases cannot switch and the tabs cannot change: show what can. */
html:not(.js) .hx__tabs { pointer-events: none; }
html:not(.js) .hx__strip,
html:not(.js) .ex__store-head,
html:not(.js) .wk__tabs,
html:not(.js) .sx__step,
html:not(.js) .hx__focus { display: none; }
html:not(.js) .wk__panel[hidden] { display: grid !important; margin-top: 14px; }

/* ═════════════════════════ 2 · Workspace ════════════════════════════════ */

.wk { padding: clamp(56px, 9vh, 100px) 0 clamp(32px, 5vh, 52px); }
.wk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: 22px;
}
.wk__title {
  margin-top: 12px;
  font-size: var(--pv-text-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.wk__tabs { gap: 2px; }
.wk__tab {
  padding: 12px 18px 14px;
  font: 500 1rem / 1 var(--pv-font-sans);
  letter-spacing: -0.005em;
  color: var(--pv-text-3);
}
.wk__tab[aria-selected="true"] { color: var(--pv-text); }
.wk__tab, .ex__tool, .ex__lens, .ex__rail-btn, .sx__dot, .sx__step, .wk-play, .hx__motion {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* four real pictures a group: one leads, a wide one and two small answer it */
.wk__panel { display: grid; gap: 14px; padding-top: 0; }

.wk-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pv-line);
  border-radius: 14px;
  background: var(--pv-bg-2);
}
.wk-tile:focus-visible { outline-offset: 3px; }
.wk-tile__media {
  position: relative;
  overflow: hidden;
  background: #05060B;
  aspect-ratio: var(--ar, 1.62);
}
.wk-tile__media > img,
.wk-tile__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wk-tile__media > video { opacity: 0; transition: opacity 400ms ease; }
.wk-tile__media > video.is-playing { opacity: 1; }
.wk-tile--fig .wk-tile__media { background: #000; }
.wk-tile--fig .wk-tile__media > img { object-fit: contain; }
.wk-tile--panel .wk-tile__media { background: rgb(11, 11, 16); }
/* the app's registration marks on every real capture */
.wk-tile__media::after,
.ex__run-media::after,
.ex__ex-media::after {
  --_b: rgba(239, 230, 210, 0.55);
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    linear-gradient(var(--_b), var(--_b)) top left / 12px 1.5px no-repeat,
    linear-gradient(var(--_b), var(--_b)) top left / 1.5px 12px no-repeat,
    linear-gradient(var(--_b), var(--_b)) top right / 12px 1.5px no-repeat,
    linear-gradient(var(--_b), var(--_b)) top right / 1.5px 12px no-repeat,
    linear-gradient(var(--_b), var(--_b)) bottom left / 12px 1.5px no-repeat,
    linear-gradient(var(--_b), var(--_b)) bottom left / 1.5px 12px no-repeat,
    linear-gradient(var(--_b), var(--_b)) bottom right / 12px 1.5px no-repeat,
    linear-gradient(var(--_b), var(--_b)) bottom right / 1.5px 12px no-repeat;
}
.wk-tile__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: start;
  justify-content: space-between;
  gap: 2px 14px;
  padding: 11px 14px 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--pv-text-2);
}
.wk-tile__text strong { margin-right: 6px; font-weight: 600; color: var(--pv-text); }
.wk-tile__meta {
  font: 400 0.6875rem / 1.4 var(--pv-font-mono);
  letter-spacing: 0.03em;
  color: var(--pv-text-3);
}
.wk-tile--big .wk-tile__cap { font-size: 0.9375rem; padding: 13px 16px 14px; }
.wk-tile__note {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: none;
  padding: 22px 13px 9px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 11, 0.86) 58%);
  font: 400 0.6875rem / 1.35 var(--pv-font-mono);
  letter-spacing: 0.03em;
  color: var(--pv-text-2);
}
@media (min-width: 1000px) {
  .wk-tile__note { display: block; }
  .wk-tile__meta--note { display: none; }
}

/* play / pause on every moving picture (WCAG 2.2.2) */
.wk-play {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(239, 230, 210, 0.22);
  border-radius: 50%;
  background: rgba(6, 7, 13, 0.66);
  color: var(--pv-text);
  opacity: 0.78;
  transition: opacity var(--pv-dur-hover) ease, background-color var(--pv-dur-hover) ease, transform var(--pv-dur-press) var(--pv-ease-out);
}
.wk-play::after { content: ""; position: absolute; inset: -6px; }
.wk-play:active { transform: scale(var(--pv-press)); }
.wk-play:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .wk-tile:hover .wk-play, .ex__run:hover .wk-play { opacity: 1; }
  .wk-play:hover { background: rgba(6, 7, 13, 0.92); }
}
@media (pointer: coarse) {
  .wk-play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
}

/* Images: the H&E alone, then the fluorescence stains over it, then the cells on top. Three
   frames of one camera in that order; home.js fades the upper two in and out while the tile is
   on screen (section 3). Without script, under reduced motion and in print it is the final
   still: the cells over the stains. */
.js .wk-he__if,
.js .wk-he__cells { opacity: 0; }
.wk-he--still .wk-he__if,
.wk-he--still .wk-he__cells { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .wk-he__if,
  .js .wk-he__cells { opacity: 1; }
}
/* a caption that wraps breaks into even lines, never one short word on the last */
.wk-tile__text { text-wrap: balance; }

/* phones and tablets: the lead and the wide picture full width, two small below; each
   picture keeps its own ratio and its caption starts right under it */
.wk__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-tile { grid-template-rows: auto minmax(0, 1fr); }
.wk__panel .wk-tile--big,
.wk__panel .wk-tile--wide { grid-column: 1 / -1; }
.wk__panel .wk-tile--big { --ar: 4 / 3; }
/* below the bento each card hugs its own picture and caption */
@media (max-width: 999.98px) {
  .wk__panel { align-items: start; }
}
@media (max-width: 639.98px) {
  .wk { padding-top: 40px; }
  .wk__title { font-size: 1.625rem; }
  .wk__panel .wk-tile--big { --ar: 16 / 9; }
  .wk__head { align-items: flex-start; margin-bottom: 16px; }
  .wk__tabs { width: 100%; }
  .wk__tab { flex: 1 1 0; padding: 12px 6px 14px; font-size: 0.9375rem; }
  .wk__panel { gap: 10px; }
  .wk-tile:not(.wk-tile--big):not(.wk-tile--wide) .wk-tile__cap { padding: 9px 10px 10px; font-size: 0.8125rem; }
  .wk-tile:not(.wk-tile--big):not(.wk-tile--wide) .wk-tile__text strong { display: block; margin: 0 0 2px; }
  .wk-tile--wide .wk-tile__meta { display: none; }
}
/* wide windows: one fixed-height bento, captions of a row on one baseline
   (each tile is a subgrid of the panel's rows: picture, then caption) */
@media (min-width: 1000px) {
  .wk__panel {
    height: clamp(460px, 58vh, 600px);
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.5fr) minmax(0, 0.5fr);
    grid-template-rows: minmax(0, 1.1fr) auto minmax(0, 0.9fr) auto;
    row-gap: 0;
    column-gap: 14px;
  }
  .wk__panel .wk-tile { --ar: auto; grid-template-rows: minmax(0, 1fr) auto; }
  .wk__panel .wk-tile__media { aspect-ratio: auto; }
  .wk__panel .wk-tile--big { grid-column: 1; grid-row: 1 / 5; }
  .wk__panel .wk-tile--wide { grid-column: 2 / 4; grid-row: 1 / 3; margin-bottom: 14px; }
  .wk__panel .wk-tile:nth-child(3) { grid-column: 2; grid-row: 3 / 5; }
  .wk__panel .wk-tile:nth-child(4) { grid-column: 3; grid-row: 3 / 5; }
  @supports (grid-template-rows: subgrid) {
    .wk__panel .wk-tile { grid-template-rows: subgrid; row-gap: 0; }
    .wk__panel .wk-tile--big > .wk-tile__media { grid-row: 1 / 4; }
    .wk__panel .wk-tile--big > .wk-tile__cap { grid-row: 4; }
  }
  .wk-tile:not(.wk-tile--big) .wk-tile__cap { padding: 10px 13px 11px; font-size: 0.8125rem; }
}

/* Analyses: captures of the viewer shown whole, on the viewer's own ground, so no
   tile ratio cuts the Lens panel, the loupe or a region (below the bento each tile
   takes its capture's ratio from the inline --ar) */
.wk-tile--app .wk-tile__media { background: rgb(12, 14, 19); }
.wk-tile--app .wk-tile__media > img,
.wk-tile--app .wk-tile__media > video { object-fit: contain; }

/* ═══════════════════════════ 3 · Extend ═════════════════════════════════ */

.ex { padding: clamp(18px, 3vh, 36px) 0 clamp(20px, 3vh, 32px); }
.ex__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 2 * var(--pv-gutter));
  max-width: var(--pv-page-wide);
  margin-inline: auto;
  border: 1px solid var(--pv-line);
  border-radius: 22px;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(111, 224, 189, 0.04), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, rgba(167, 123, 255, 0.045), transparent 70%),
    var(--pv-bg-2);
}
.ex__card { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: clamp(20px, 2.6vw, 34px); }
.ex__ai { position: relative; }
.ex__ai::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 3px;
  background-image: radial-gradient(circle at center, var(--pv-dot) 1px, transparent 1.4px);
  background-size: 6px 3px;
  background-repeat: repeat-x;
}
@media (min-width: 1080px) {
  .ex__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  /* should the assistant's column be the taller one, the tools' three bands share the
     difference instead of leaving it at the foot (the assistant's picture takes it otherwise) */
  .ex__tools { justify-content: space-between; }
  .ex__ai::before { inset: 28px auto 28px 0; width: 3px; height: auto; background-size: 3px 6px; background-repeat: repeat-y; }
}
/* the side the pointer is on widens and the other narrows; the split above comes back when the
   pointer leaves (a mouse, motion allowed) */
@media (min-width: 1080px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ex__grid { transition: grid-template-columns 560ms var(--pv-ease-out); }
  .ex__grid:has(> .ex__tools:hover) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.86fr); }
  .ex__grid:has(> .ex__ai:hover) { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.3fr); }
}
/* the narrowest two-column windows: a gentler shift, so the narrowed side keeps its pictures */
@media (min-width: 1080px) and (max-width: 1249.98px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ex__grid:has(> .ex__tools:hover) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); }
  .ex__grid:has(> .ex__ai:hover) { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); }
}

.ex__head { display: grid; gap: 10px; }
.ex__title { font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.ex__lede { font-size: 1rem; color: var(--pv-text-2); }

/* a small numbered point, as on the paper's figures */
.ex__n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pv-accent);
  color: var(--pv-accent-ink);
  font: 600 0.6875rem / 1 var(--pv-font-mono);
  letter-spacing: 0;
}

/* anatomy of a tool */
.ex__anatomy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ex__files { display: grid; gap: 10px; align-content: start; }
.ex__code .pv-code__head { min-height: 32px; padding: 2px 12px; }
.ex__code .pv-code__title { display: inline-flex; align-items: center; color: var(--pv-text-2); }
.ex__code pre { padding: 10px 14px 12px; font-size: 0.75rem; line-height: 1.6; overflow-x: auto; }
.ex__arrow { display: none; }
.ex__run { display: grid; gap: 8px; margin: 0; min-width: 0; }
.ex__run-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  background: #05060B;
  aspect-ratio: 900 / 770;
}
.ex__run-media > img,
.ex__run-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.ex__run-media > video { opacity: 0; transition: opacity 400ms ease; }
.ex__run-media > video.is-playing { opacity: 1; }
.ex__run-media .ex__n { position: absolute; z-index: 1; margin: 0; box-shadow: 0 0 0 3px rgba(6, 7, 13, 0.75); }
.ex__n--form { top: 7%; right: 31%; }
.ex__n--result { top: 7%; left: 6%; }
.ex__run-cap { font: 400 0.6875rem / 1.4 var(--pv-font-mono); letter-spacing: 0.03em; color: var(--pv-text-3); }
.ex__parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: part;
}
.ex__parts li {
  position: relative;
  padding-left: 25px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pv-text-2);
  counter-increment: part;
}
.ex__parts li::before {
  content: counter(part);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--pv-accent);
  color: var(--pv-accent-ink);
  font: 600 0.6875rem / 1 var(--pv-font-mono);
}
.ex__parts b { display: block; font: 500 0.8125rem / 1.35 var(--pv-font-mono); color: var(--pv-text); }
.ex__parts code { font-size: 0.75rem; color: var(--pv-text-2); white-space: nowrap; }
@media (min-width: 560px) {
  /* the code column never narrower than tool.py's longest line, so it never scrolls */
  .ex__anatomy { grid-template-columns: minmax(224px, 1fr) 22px minmax(0, 0.96fr); align-items: center; }
  .ex__arrow {
    position: relative;
    display: block;
    height: 2px;
    background-image: radial-gradient(circle at center, var(--pv-text-3) 1px, transparent 1.4px);
    background-size: 6px 2px;
    background-repeat: repeat-x;
  }
  .ex__arrow::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -4px;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent var(--pv-text-3);
  }
  .ex__parts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* a narrowed tools card (the assistant's side widened under the pointer): the parts two by two */
.ex__tools { container: ex-tools / inline-size; }
@container ex-tools (max-width: 459.98px) {
  .ex__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: the four parts and the form, without the code */
@media (max-width: 559.98px) {
  .ex__files { display: none; }
  .ex__run-media { aspect-ratio: auto; height: clamp(140px, 40vw, 176px); }
  .ex__run-media > img, .ex__run-media > video { object-position: 18% 30%; }
  .ex__n--form { display: none; }
  .ex__parts { gap: 8px 12px; }
}

/* the tools: a rail of one row on phones and tablets, a shelf of two rows on wide windows */
.ex__store { display: grid; gap: 10px; min-width: 0; }
.ex__store-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px 16px; min-height: 34px; }
.ex__rail-nav { display: flex; gap: 6px; }
.ex__rail-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--pv-line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--pv-text-2);
  transition: color var(--pv-dur-hover) ease, border-color var(--pv-dur-hover) ease, opacity var(--pv-dur-hover) ease, transform var(--pv-dur-press) var(--pv-ease-out);
}
.ex__rail-btn::after { content: ""; position: absolute; inset: -5px; }
.ex__rail-btn svg { width: 16px; height: 16px; }
.ex__rail-btn:active { transform: scale(var(--pv-press)); }
.ex__rail-btn[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .ex__rail-btn:not([disabled]):hover { color: var(--pv-text); border-color: color-mix(in srgb, var(--pv-text) 42%, transparent); }
}
@media (pointer: coarse) {
  .ex__rail-btn { width: 40px; height: 40px; }
}
.ex__rail {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(128px, 27%, 156px);
  gap: 10px;
  margin: 0 -4px;
  padding: 4px 4px 10px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* a snapped card starts where the left fade ends, so it never looks cut off */
  scroll-padding-inline: 40px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--pv-line-2) transparent;
}
.ex__rail > li { scroll-snap-align: start; min-width: 0; }
/* the rail fades at an edge that has more cards behind it (home.js sets can-l / can-r) */
.ex__rail.can-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.ex__rail.can-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 40px)); mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 40px)); }
.ex__rail.can-l.can-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 40px), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 40px), #000 calc(100% - 40px), transparent); }
.ex__tool {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 7px;
  height: 100%;
  padding: 5px 5px 9px;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  background: var(--pv-surface);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--pv-text);
  transition: border-color var(--pv-dur-hover) ease, background-color var(--pv-dur-hover) ease;
}
.ex__tool img { width: 100%; height: auto; aspect-ratio: 400 / 233; border-radius: 8px; background: var(--pv-surface-2); }
/* names break between words only: the hyphenated ones are kept whole (.nw) */
.ex__tool-name { padding: 0 4px; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.nw { white-space: nowrap; }
.ex__tool:focus-visible { outline-offset: 2px; }
.ex__tool.is-on { border-color: var(--pv-accent-line); }
@media (hover: hover) and (pointer: fine) {
  .ex__tool:hover { border-color: var(--pv-accent-line); background: var(--pv-surface-2); }
}
.ex__store-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ex__store-link { flex: none; }
.ex__q { flex: 1 1 16rem; min-width: 0; min-height: 2.9em; font-size: 0.875rem; line-height: 1.45; color: var(--pv-text-2); text-wrap: pretty; }
.ex__q b { font-weight: 600; color: var(--pv-text); }
@media (hover: none) and (max-width: 1079.98px) {
  .ex__q { display: none; }
}
/* wide windows: two rows of a little over four cards, the fifth column showing that the
   shelf goes on; eight tools in view fill the column beside the assistant */
@media (min-width: 1080px) {
  .ex__rail { grid-template-rows: repeat(2, auto); grid-auto-columns: clamp(132px, calc((100% - 30px) / 4.3), 176px); }
}

/* the assistant as Fig. 2d draws it: the agent's orb in the middle, what the user sends above it
   and the runtimes under it; at the corners one round picture per group of its 21 MCP tools (cut
   from the figure), each tied to the orb by a row of dots in its colour. Pointing at, tapping or
   focusing a picture lists its group's tools over the middle (home.js, initHub; without script,
   hover and focus alone). */
.ex__hub { display: grid; gap: 30px; width: 100%; max-width: 640px; margin: 0 auto; }
.ex__hub-in {
  --lens: clamp(104px, 29%, 168px);
  position: relative;
  display: grid;
  grid-template-columns: var(--lens) minmax(0, 1fr) var(--lens);
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 34px;
}
.ex__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ex__links line { stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 7.5; transition: opacity 220ms ease; }
.ex__hub[data-open] .ex__links line:not(.is-on) { opacity: 0.2; }

.ex__mid {
  grid-area: 1 / 2 / 3 / 3;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  transition: opacity 200ms ease;
}
.ex__hub[data-open] .ex__mid { opacity: 0.08; }
/* the composer, as a pictogram: the question, unwritten, and the send button */
.ex__ask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  width: min(100%, 168px);
  padding: 9px 9px 9px 12px;
  border: 1px solid #5A5A64;
  border-radius: 11px;
  background: #15151B;
}
.ex__ask i { grid-column: 1; height: 5px; border-radius: 3px; background: #8A8A92; }
.ex__ask i + i { width: 55%; }
.ex__ask b { grid-area: 1 / 2 / 3 / 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pv-mint); color: var(--pv-ink-0); }
.ex__ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ex__flow { position: relative; flex: none; width: 1.5px; height: 18px; background: #8A8A92; }
.ex__flow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #8A8A92;
  border-bottom: 1.5px solid #8A8A92;
  translate: -50% 0;
  rotate: 45deg;
}
/* the orb as Fig. 2d draws it, from the app library's recorded frames (a time exposure) with its
   mint halo, which spills past the box as far as the figure's; "AI" on it in white */
.ex__orb { container-type: inline-size; position: relative; display: grid; place-items: center; flex: none; width: clamp(84px, 64%, 132px); aspect-ratio: 1; }
.ex__orb img { position: absolute; left: -21.25%; top: -21.25%; width: 142.5%; height: 142.5%; max-width: none; }
.ex__orb b { position: relative; font: 700 1.875rem / 1 var(--pv-font-sans); font-size: 25cqi; color: #FFFFFF; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 0 12px rgba(0, 0, 0, 0.9); }
.ex__runs { flex-direction: column; align-items: center; gap: 5px; }
.ex__runs .pv-tag { height: 25px; font-size: 0.6875rem; color: #DCDCE2; background: #000; }

/* a group: its round picture, rimmed in its colour, and its word on a black plate that hangs
   on the rim; Fig. 2d's colours (navigate in the figure's violet, which its picture carries) */
.ex__lens {
  --g: var(--pv-blue);
  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 220ms ease;
}
.ex__lens[data-g="see"] { grid-area: 1 / 1; }
.ex__lens[data-g="do"] { grid-area: 1 / 3; --g: var(--pv-orange); }
.ex__lens[data-g="steer"] { grid-area: 2 / 1; --g: #C77DFF; }
.ex__lens[data-g="show"] { grid-area: 2 / 3; --g: var(--pv-mint); }
.ex__lens-pic {
  display: block;
  aspect-ratio: 1;
  border: 2px solid var(--g);
  border-radius: 50%;
  overflow: hidden;
  background: #050507;
  transition: transform 260ms var(--pv-ease-out), box-shadow 260ms ease;
}
.ex__lens-pic img { display: block; width: 100%; height: 100%; }
.ex__word {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% -50%;
  padding: 0.02em 0.38em 0.08em;
  border: 2px solid var(--g);
  border-radius: 0.32em;
  background: #000;
  font: 600 1.25rem / 1.2 var(--pv-font-sans);   /* the titles' face, weight and tracking (.ex__title) */
  font-size: clamp(0.9375rem, 15cqi, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--g);
  white-space: nowrap;
}
.ex__lens:focus-visible { outline: 2px solid var(--g); outline-offset: 5px; }
.ex__lens[aria-expanded="true"] .ex__lens-pic {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 20%, transparent), 0 0 30px color-mix(in srgb, var(--g) 36%, transparent);
}
.ex__hub[data-open] .ex__lens[aria-expanded="false"] { opacity: 0.4; }

/* a group's tools, over the middle */
.ex__list {
  --g: var(--pv-blue);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(260px, calc(100% - 2 * var(--lens) + 48px));
  padding: 12px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--g) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--g) 9%, #08090F);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  translate: -50% calc(-50% + 6px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, translate 240ms var(--pv-ease-out), visibility 0s linear 240ms;
}
.ex__list[data-g="do"] { --g: var(--pv-orange); }
.ex__list[data-g="steer"] { --g: #C77DFF; }
.ex__list[data-g="show"] { --g: var(--pv-mint); }
.ex__hub[data-open="see"] .ex__list[data-g="see"],
.ex__hub[data-open="do"] .ex__list[data-g="do"],
.ex__hub[data-open="steer"] .ex__list[data-g="steer"],
.ex__hub[data-open="show"] .ex__list[data-g="show"],
html:not(.js) .ex__lens[data-g="see"]:is(:hover, :focus-visible) ~ .ex__list[data-g="see"],
html:not(.js) .ex__lens[data-g="do"]:is(:hover, :focus-visible) ~ .ex__list[data-g="do"],
html:not(.js) .ex__lens[data-g="steer"]:is(:hover, :focus-visible) ~ .ex__list[data-g="steer"],
html:not(.js) .ex__lens[data-g="show"]:is(:hover, :focus-visible) ~ .ex__list[data-g="show"] {
  visibility: visible;
  opacity: 1;
  translate: -50% -50%;
  transition-delay: 0s;
}
.ex__list-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--g); }
.ex__list-line { margin-top: 4px; font-size: 0.8125rem; line-height: 1.4; color: var(--pv-text-2); }
.ex__list-set { margin-top: 7px; }
.ex__list ul { display: grid; gap: 3px; margin: 9px 0 0; padding: 9px 0 0; border-top: 1px solid var(--pv-line); list-style: none; }
.ex__list li { display: flex; align-items: center; gap: 8px; font: 500 0.75rem / 1.35 var(--pv-font-mono); color: var(--pv-text); }
.ex__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 6px var(--g); }
.ex__hub figcaption { text-align: center; font-size: 0.875rem; color: var(--pv-text-2); }
.ex__hub figcaption b { font-weight: 600; color: var(--pv-text); }

/* Navigate's viewer-control setting, as the Assistant's panel shows it */
.ex__switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, #C77DFF 42%, transparent);
  border-radius: var(--pv-radius-pill);
  font: 500 0.6875rem / 1 var(--pv-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pv-text-3);
}
.ex__switch > * { padding: 4px 7px; border-radius: var(--pv-radius-pill); }
.ex__switch b { font-weight: 600; color: var(--pv-text); background: color-mix(in srgb, #C77DFF 30%, transparent); }

/* phones: the orb with the composer and the runtimes on top, the four pictures under it two by
   two (no rows of dots), a group's tools over the top */
@media (max-width: 519.98px) {
  .ex__hub { gap: 26px; }
  .ex__hub-in { --lens: min(40vw, 148px); grid-template-columns: repeat(2, var(--lens)); grid-template-rows: auto auto auto; justify-content: space-evenly; row-gap: 32px; }
  .ex__mid { grid-area: 1 / 1 / 2 / 3; }
  .ex__lens[data-g="see"] { grid-area: 2 / 1; }
  .ex__lens[data-g="do"] { grid-area: 2 / 2; }
  .ex__lens[data-g="steer"] { grid-area: 3 / 1; }
  .ex__lens[data-g="show"] { grid-area: 3 / 2; }
  .ex__links { display: none; }
  .ex__runs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ex__list { top: 0; width: 100%; translate: -50% 6px; }
  .ex__hub[data-open] .ex__list[data-g],
  html:not(.js) .ex__lens:is(:hover, :focus-visible) ~ .ex__list[data-g] { translate: -50% 0; }
  .ex__card { gap: 16px; }
  .ex__example { padding: 14px; gap: 12px; }
  .ex__quote p { font-size: 1.125rem; }
  .ex__ex-find { font-size: 0.875rem; }
}
@media (max-width: 399.98px) {
  .ex__card { padding-inline: 16px; }
  .ex__switch { letter-spacing: 0.04em; }
  .ex__switch > * { padding-inline: 4px; }
}

.ex__example {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--pv-line);
  border-radius: 14px;
  background: var(--pv-bg);
}
.ex__ex-text { display: grid; align-content: center; gap: 9px; }
.ex__quote { margin: 0; }
.ex__quote p {
  font-family: var(--pv-font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--pv-text);
  text-wrap: balance;
}
.ex__ex-note { font-size: 0.8125rem; line-height: 1.45; color: var(--pv-text-2); }
/* the agent's closing sentence, after its own label, as Fig. 2d prints it */
.ex__ex-find { padding-top: 9px; border-top: 1px solid var(--pv-line); font-size: 0.9375rem; line-height: 1.4; color: var(--pv-text); }
.ex__ex-find b { margin-right: 0.3em; font-weight: 600; color: var(--pv-accent); }
.ex__ex-res { display: grid; gap: 12px 16px; }
.ex__ex-pic { display: grid; gap: 7px; min-width: 0; }
.ex__ex-media { position: relative; overflow: hidden; border-radius: 10px; background: #000; aspect-ratio: 880 / 663; }
.ex__ex-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex__ex-cap { font: 400 0.6875rem / 1.4 var(--pv-font-mono); letter-spacing: 0.03em; color: var(--pv-text-3); }
.ex__ex-cap sub { font-size: 0.8em; line-height: 0; }
/* Fig. 2d's two bar plots, cell types over genes: one scale, log2 of the selection over the
   rest (the longest bar, Il22ra2 at 9.31, fills the track), in the figure's colours */
.ex__ex-plot { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 7px; min-width: 0; }
.ex__bars {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  align-self: center;
  gap: 3px 8px;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--pv-text-2);
}
.ex__bars > :not(.ex__bar) { justify-self: end; white-space: nowrap; }
.ex__bars .is-gene { font-style: italic; }
/* each plot's title, over its bars */
.ex__bars > .ex__bars-ttl { grid-column: 2; justify-self: start; font-weight: 600; color: var(--pv-text); }
.ex__bars > .is-next { margin-top: 8px; }
.ex__bars sup { font-size: 0.75em; line-height: 0; }
.ex__bar { width: calc(var(--v) / 9.31 * 100%); height: 7px; border-radius: 1.5px; background: var(--c, #43C7F0); }
.ex__caveat { font-size: 0.8125rem; color: var(--pv-text-3); }
/* the bars on the map's right wherever the card is wide enough for both; on phones, under it */
@media (min-width: 560px) {
  .ex__ex-res { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 559.98px) {
  .ex__ex-media { aspect-ratio: auto; height: clamp(108px, 30vw, 136px); }
  .ex__ex-media img { object-position: 50% 44%; }
}
/* Two columns: the deck's columns end together. The example's map is at least 1.15 : 1
   (the ::before holds that height) and grows into whatever the other column leaves, so
   neither column ends in an empty band, at any width. */
@media (min-width: 1080px) {
  .ex__ai .ex__example { flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr); }
  .ex__ex-pic { grid-template-rows: minmax(0, 1fr) auto; }
  .ex__ex-media { aspect-ratio: auto; }
  .ex__ex-media::before { content: ""; display: block; padding-top: calc(100% / 1.15); }
  .ex__ex-media img { object-position: 58% 36%; }
}

/* ═══════════════════════════ 4 · How to cite ════════════════════════════
   braindev's citation card, at the end of the page while the preprint is a
   placeholder (it can return to the hero's bar once the preprint is out). */
.pub { padding: 0 0 clamp(48px, 7vh, 88px); }
.pub__card {
  width: calc(100% - 2 * var(--pv-gutter));
  max-width: var(--pv-page-wide);
  margin-inline: auto;
  padding: 16px 20px 16px 22px;
}
.pub__card .pv-cite__eyebrow { margin: 0; }
@media (max-width: 639.98px) {
  /* phones: one column, the button under the citation at its own width */
  .pub { padding-bottom: 36px; }
  .pub__card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 13px 15px 15px; }
  .pub__card .pv-cite__mark { display: none; }
  .pub__card .pv-cite__title { font-size: 1rem; }
  .pub__card > .pv-btn { grid-column: 1; justify-self: start; width: auto; min-height: 44px; }
}
/* the eyebrow keeps to one line down to 360 px */
@media (max-width: 399.98px) { .pub__card .pv-cite__eyebrow { letter-spacing: 0.12em; } }

/* ═══════════════════════════ 5 · Section index ══════════════════════════
   cubasebio's up / down, with one lit point for the section on screen. Wide
   windows with a mouse only; it sits in the right gutter, clear of the page
   and of the hero's frame. */
.sx { display: none; }
@media (min-width: 1200px) and (min-height: 560px) and (hover: hover) and (pointer: fine) {
  .sx {
    position: fixed;
    z-index: var(--pv-z-sticky);
    right: max(6px, calc((100vw - (var(--pv-page-wide) + 80px) * var(--k)) / 2 + 6px));
    top: 60%;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateY(-50%) scale(var(--k));
    transform-origin: right center;
  }
}
.sx__list { position: relative; display: grid; justify-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sx__list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 3px;
  margin-left: -1.5px;
  background-image: radial-gradient(circle at center, var(--pv-dot) 1px, transparent 1.4px);
  background-size: 3px 6px;
  background-repeat: repeat-y;
}
.sx__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.sx__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--pv-text-3);
  background: var(--pv-bg);
  transition: background-color var(--pv-dur-ui) ease, border-color var(--pv-dur-ui) ease, box-shadow var(--pv-dur-ui) ease;
}
.sx__dot[aria-current="true"]::before { background: var(--pv-accent); border-color: var(--pv-accent); box-shadow: 0 0 10px var(--pv-accent-glow); }
.sx__label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  padding: 5px 8px;
  border: 1px solid var(--pv-line);
  border-radius: 6px;
  background: rgba(6, 7, 13, 0.9);
  font: 500 var(--pv-text-2xs) / 1 var(--pv-font-mono);
  letter-spacing: var(--pv-track-label);
  text-transform: uppercase;
  color: var(--pv-text);
  white-space: nowrap;
  opacity: 0;
  transform: translate(4px, -50%);
  pointer-events: none;
  transition: opacity var(--pv-dur-hover) ease, transform var(--pv-dur-hover) var(--pv-ease-out);
}
.sx__dot:hover .sx__label,
.sx__dot:focus-visible .sx__label { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) and (pointer: fine) {
  .sx__dot:hover::before { border-color: var(--pv-text); }
}
.sx__step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--pv-line-2);
  border-radius: 8px;
  background: rgba(10, 12, 24, 0.72);
  color: var(--pv-text-2);
  transition: border-color var(--pv-dur-hover) ease, color var(--pv-dur-hover) ease, background-color var(--pv-dur-hover) ease, opacity var(--pv-dur-hover) ease, transform var(--pv-dur-press) var(--pv-ease-out);
}
.sx__step svg { width: 15px; height: 15px; }
.sx__step:active { transform: scale(var(--pv-press)); }
.sx__step[disabled] { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .sx__step:not([disabled]):hover { border-color: var(--pv-accent-line); color: var(--pv-accent); background: rgba(10, 12, 24, 0.92); }
}

/* ═════════════════════════════ 6 · Motion ═══════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  /* The headline is there at once; the lede, the actions and the deck settle in 360 ms,
     and nothing waits for the network. */
  .js .hx__lede,
  .js .hx__cta,
  .js .hx__deck { animation: hx-in 300ms var(--pv-ease-out) backwards; }
  .js .hx__cta { animation-delay: 40ms; }
  .js .hx__deck { animation-name: hx-deck; animation-duration: 520ms; animation-delay: 60ms; }


  /* entrances below the fold (armed on the first scroll, see home.js) */
  .is-armed:not([data-reveal="stagger"]):not(.is-in),
  [data-reveal="stagger"].is-armed:not(.is-in) > * { opacity: 0; transform: translateY(var(--pv-rise)); }
  .is-armed.is-in:not([data-reveal="stagger"]),
  [data-reveal="stagger"].is-armed.is-in > * {
    transition: opacity 700ms var(--pv-ease-out), transform var(--pv-dur-reveal) var(--pv-ease-expo);
    transition-delay: calc(var(--i, 0) * var(--pv-stagger));
  }

  /* once the load sequence is over it is gone for good: a later layout change (a
     window resized across a breakpoint) must not replay it */
  .hx-settled .hx__lede,
  .hx-settled .hx__cta,
  .hx-settled .hx__deck { animation: none; }
}
@keyframes hx-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes hx-deck { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  /* a switch is instant: no field travels, no words fade */
  .hx__col,
  .hx__tab,
  .hx__tab-in,
  .hx__field::after,
  .hx__peek,
  .hx__panel,
  .hx__col.is-open .hx__panel,
  .hx__stage,
  .hx.is-away .hx__stage,
  .hx::before,
  .hx-ai__pic img,
  .hx-store__art img,
  .hx__kit-peek,
  .hx__load,
  .wk-tile__media > video,
  .ex__run-media > video,
  .hx__marks span,
  .sx__label { transition: none; }
  .hx__tab.is-loading:not(.is-known) .hx__load { animation: none; transform: scaleX(0.35); }
  .hx__kit-peek rect { animation: none; opacity: 0.62; transform: none; }
  .hx__motion { display: none; }
}

/* ═════════════════════════════ 7 · Fallbacks ════════════════════════════ */

@media (forced-colors: active) {
  .hx__deck, .hx__tab, .wk-tile, .ex__grid, .ex__list, .sx__step { border: 1px solid CanvasText; }
  .hx__tab[aria-selected="true"] { border-width: 3px; }
  .ex__lens-pic, .ex__word, .ex__list li::before, .sx__dot::before { forced-color-adjust: none; }
}
@media print {
  .hx__stage, .sx, .wk-play, .hx__strip { display: none !important; }
  .hx { height: auto; }
  .wk-he__if, .wk-he__cells { opacity: 1 !important; }
}
