/* VesTRA z0.0 home page.
   Black page, hero photograph of a cell shedding vesicles on the right, all
   copy on the left over the dark side of the frame. Tokens come from
   vestra.css. No canvas, no map, no backend: every number on this page is
   read at runtime from /data/summary.json (or /data/index.json as a
   fallback), so the page is correct for whatever release is deployed. */

body.hm {
  margin: 0; background: #000; color: var(--vx-text-dark);
  font-family: var(--vx-font); line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hm a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hm-skip { position: absolute; left: -9999px; }
.hm-skip:focus { left: 16px; top: 12px; z-index: 60; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------------------------ hero
   Centred, like the z0.1 page: the headline, the search and the chips run down
   the middle of a full-bleed field of vesicles. The photograph is a background
   and is held well back so nothing competes with the type. */
.hm-hero { position: relative; isolation: isolate; overflow: visible; z-index: 3;
  min-height: max(100svh, 820px); display: flex; flex-direction: column;
  /* Backup only: a still frame of the same vesicle field. The animated canvas
     paints an opaque frame over it the moment vesicles.js runs, so the
     animation always wins; this shows only if the script never starts. */
  background: #000 url("/brand/hero/field-1800.jpg") center right / cover no-repeat;
  background-image: image-set(url("/brand/hero/field-2000.webp") type("image/webp"), url("/brand/hero/field-1800.jpg") type("image/jpeg")); }
@media (max-width: 760px) {
  .hm-hero { background-image: image-set(url("/brand/hero/field-1280.webp") type("image/webp"), url("/brand/hero/field-1800.jpg") type("image/jpeg")); }
}
/* transparent until the script takes the canvas, so the backup can show through */
.hm-shot { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; background: transparent; }
/* a vignette over the canvas so the type always has ground under it */
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(74% 58% at 50% 46%, rgba(0,0,0,.80) 0%, rgba(0,0,0,.40) 52%, rgba(0,0,0,0) 80%),
    linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 64%, rgba(0,0,0,.90) 100%); }

.hm-hero-body { position: relative; z-index: 5; width: 100%; max-width: 920px; margin: 0 auto; flex: 1;
  padding: clamp(40px, 7vh, 84px) var(--vx-gutter) 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; box-sizing: border-box; }
.hm-copy { display: contents; }

.hm-eyebrow { font-family: var(--vx-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #9a9aa6; margin: 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hm-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--vx-live); flex: none;
  box-shadow: 0 0 0 0 rgba(93,255,168,.6); animation: hm-pulse 2.6s ease-out infinite; }
@keyframes hm-pulse { 0% { box-shadow: 0 0 0 0 rgba(93,255,168,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(93,255,168,0); } }

.hm-h1 { margin: 0; font-size: clamp(60px, 9vw, 124px); line-height: .92; font-weight: 600;
  letter-spacing: -0.06em; color: #fff; }
.hm-h1 span { font-weight: 300; color: #74747f; }
.hm-slogan { margin: 0; max-width: 24ch; text-wrap: balance; font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; color: #ececf2; }
.hm-claim { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--vx-muted-dark); }
.hm-claim b { color: #d6d6de; font-weight: 500; }

/* glass search bar, centred */
.hm-search { width: 100%; max-width: 700px; margin: 8px 0 0; position: relative; }
.hm-field { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40,40,52,.72), rgba(16,16,22,.72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); transition: border-color .15s; }
.hm-field:focus-within { border-color: rgba(255,255,255,.42); }
.hm-field > svg { flex: none; color: #9a9aa6; }
.hm-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff;
  font: inherit; font-size: 16px; padding: 13px 0; text-align: left; }
.hm-field input::placeholder { color: #85858f; }
.hm-kbd { font-family: var(--vx-mono); font-size: 10.5px; color: #9a9aa6; border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px; padding: 3px 7px; flex: none; }
.hm-go { flex: none; background: #fff; color: #000; border: 0; border-radius: 999px; padding: 12px 24px;
  font: 500 15px var(--vx-font); cursor: pointer; }
.hm-go:hover { background: #dcdce4; }

.hm-ac { list-style: none; margin: 10px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 30;
  background: rgba(10,10,14,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.8);
  max-height: min(640px, 72vh); overflow-y: auto; text-align: left; }
.hm-ac li { padding: 9px 14px; border-radius: 12px; cursor: pointer; display: grid;
  grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: baseline; }
.hm-ac li[aria-selected="true"], .hm-ac li:hover { background: rgba(255,255,255,.08); }
.hm-ac b { font-weight: 500; color: #fff; font-size: 15px; }
.hm-ac small { display: block; color: #9a9aa6; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-ac em { font-style: normal; font-family: var(--vx-mono); font-size: 11.5px; color: #85858f; white-space: nowrap; }
.hm-ac .hm-ac-none { color: #9a9aa6; font-size: 14px; cursor: default; display: block; }

.hm-try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 0; }
.hm-try-label { font-family: var(--vx-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #76767f; }
.hm-try a { font-size: 13.5px; color: #d2d2dc; text-decoration: none; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 6px 15px; background: rgba(255,255,255,.04); }
.hm-try a:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.hm-what { margin: 6px 0 0; color: #9b9ba7; font-size: 14.5px; max-width: 62ch; }

/* the count strip at the foot of the hero */
.hm-pad { display: none; }
.hm-strip { position: relative; z-index: 4; max-width: var(--vx-max); width: 100%; margin: 0 auto;
  box-sizing: border-box; padding: 0 var(--vx-gutter) clamp(20px, 4vh, 36px);
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; }
.hm-strip p { margin: 0; font-family: var(--vx-mono); font-size: 12px; letter-spacing: .1em; color: #c4c4ce; }
#hm-counts { display: block; width: 100%; overflow: hidden; font-family: inherit; letter-spacing: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.hm-track { display: flex; width: max-content; animation: hm-ticker 42s linear infinite; }
.hm-group { display: flex; gap: 46px; padding-right: 46px; }
#hm-counts:hover .hm-track { animation-play-state: paused; }
@keyframes hm-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hm-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .hm-group { flex-wrap: wrap; justify-content: center; padding: 0; gap: 14px 34px; }
  .hm-group[aria-hidden] { display: none; }
  #hm-counts { -webkit-mask-image: none; mask-image: none; }
}
.hm-strip .hm-stat { align-items: center; }
#hm-counts[hidden] { display: none; }
.hm-stat { display: flex; flex-direction: column; gap: 4px; flex: none; white-space: nowrap; }
.hm-strip .hm-stat b { font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hm-strip .hm-stat small { font-size: 13px; color: var(--vx-live); letter-spacing: 0; }
.hm-strip .hm-stat.is-meta b { color: #c9c9d2; }
.hm-strip .hm-stat.is-meta small { color: #8a8a96; }
@media (max-width: 640px) { .hm-strip .hm-stat b { font-size: 21px; } .hm-group { gap: 28px; padding-right: 28px; } }
.hm-strip span { color: #65656f; }
.hm-strip .hm-rel { color: #65656f; letter-spacing: .08em; }

/* ----------------------------------------------------------- page sections */
.hm-main { background: #000; position: relative; z-index: 2; }
.hm-sec { max-width: var(--vx-max); margin: 0 auto; box-sizing: border-box; padding: clamp(64px, 10vh, 118px) var(--vx-gutter) 0; }
.hm-sec-head { max-width: 760px; }
.hm-label { font-family: var(--vx-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6e6e7a; }
.hm-h2 { margin: 12px 0 0; font-size: clamp(27px, 4vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -0.028em; color: #fff; }
.hm-h2 span { color: #76767f; }
.hm-sub { margin: 14px 0 0; color: #9b9ba7; font-size: 16px; max-width: 62ch; }

/* steps */
.hm-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-step { background: #08080b; border: 1px solid var(--vx-line-dark); border-radius: var(--vx-radius); padding: 26px 24px 28px; }
.hm-num { font-family: var(--vx-mono); font-size: 12px; color: #000; background: #e9e9ef; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.hm-step h3 { margin: 18px 0 0; font-size: 19px; font-weight: 500; color: #fff; letter-spacing: -0.012em; }
.hm-step p { margin: 9px 0 0; color: #9b9ba7; font-size: 14.5px; }

/* resource numbers */
.hm-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 1px; margin: 40px 0 0;
  background: var(--vx-line-dark); border: 1px solid var(--vx-line-dark); border-radius: var(--vx-radius); overflow: hidden; }
.hm-num-cell { background: #08080b; padding: 22px 22px 24px; }
/* molecule types lead; the four release totals sit under them, smaller */
.hm-kinds { display: flex; flex-wrap: wrap; gap: 1px; margin: 40px 0 0;
  background: var(--vx-line-dark); border: 1px solid var(--vx-line-dark); border-radius: var(--vx-radius); overflow: hidden; }
.hm-kind-cell { background: #08080b; padding: 26px 24px 28px; flex: 1 1 220px; min-width: 0; }
.hm-kind-cell dt { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: var(--vx-live); }
.hm-kind-cell dd { margin: 12px 0 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; }
.hm-kind-cell small { display: block; margin-top: 12px; font-size: 13px; color: #8a8a96; line-height: 1.45; }
.hm-nums.is-secondary { margin-top: 12px; }
.hm-nums.is-secondary .hm-num-cell { padding: 16px 20px 18px; }
.hm-nums.is-secondary .hm-num-cell dd { font-size: clamp(20px, 2.2vw, 26px); color: #d6d6de; }
.hm-nums.is-secondary .hm-num-cell small { font-size: 12px; }
.hm-num-cell dt { font-family: var(--vx-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #6e6e7a; }
.hm-num-cell dd { margin: 10px 0 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.hm-num-cell small { display: block; margin-top: 11px; font-size: 13px; color: #8a8a96; line-height: 1.45; }

.hm-sources { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-sources span { font-size: 13px; color: #c0c0cb; border: 1px solid #2a2a33; border-radius: 999px; padding: 5px 13px; }
.hm-sources span.more { color: #7c7c8a; border-style: dashed; }
.hm-fine { margin: 20px 0 0; color: #6e6e7a; font-size: 13px; max-width: 72ch; }

/* versions */
.hm-vers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; }
.hm-ver { background: #08080b; border: 1px solid var(--vx-line-dark); border-radius: var(--vx-radius); padding: 24px; display: flex; flex-direction: column; }
.hm-ver.is-now { border-color: #2f4a3c; background: linear-gradient(180deg, #0a1410 0%, #08080b 58%); }
.hm-ver-head { display: flex; align-items: center; gap: 10px; }
.hm-ver-name { font-size: 24px; font-weight: 500; color: #fff; letter-spacing: -0.02em; }
.hm-ver-name.is-dim { color: #76767f; }
.hm-ver-tag { font-family: var(--vx-mono); font-size: 10px; letter-spacing: .13em; color: #7c7c8a; border: 1px solid #30303b; border-radius: 4px; padding: 3px 7px; }
.hm-ver-tag.is-now { color: #0a1410; background: var(--vx-live); border-color: var(--vx-live); font-weight: 600; }
.hm-ver h3 { margin: 16px 0 0; font-size: 16.5px; font-weight: 500; color: #e8e8f0; }
.hm-ver p { margin: 8px 0 0; color: #9b9ba7; font-size: 14.5px; }

/* about strip */
.hm-about { max-width: var(--vx-max); margin: clamp(64px, 10vh, 118px) auto 0; box-sizing: border-box; padding: 0 var(--vx-gutter); }
.hm-about-in { background: #f5f3ee; color: #17161a; border-radius: var(--vx-radius); padding: clamp(30px, 5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.hm-about .hm-label { color: #6b6872; }
.hm-about h2 { margin: 12px 0 0; font-size: clamp(23px, 3vw, 33px); font-weight: 500; letter-spacing: -0.025em; color: #17161a; }
.hm-about p { margin: 10px 0 0; color: #5d5b64; font-size: 15.5px; max-width: 58ch; }
/* .hm a sets colour by inheritance, so this needs the extra class to win */
.hm .hm-about-btn { flex: none; background: #17161a; color: #fff; text-decoration: none; border-radius: 11px;
  padding: 14px 24px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hm .hm-about-btn:hover { background: #343239; }
.hm-about-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.hm-foot { max-width: var(--vx-max); margin: clamp(56px, 8vh, 96px) auto 0; box-sizing: border-box;
  padding: 26px var(--vx-gutter) 40px; border-top: 1px solid var(--vx-line-dark);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 13.5px; color: #6e6e7a; }
.hm-foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #9b9ba7; }
.hm-foot-brand img { display: block; height: 12px; width: auto; }
.hm-foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hm-foot-links a { color: #9b9ba7; text-decoration: none; }
.hm-foot-links a:hover { color: #fff; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hm-steps, .hm-vers { grid-template-columns: 1fr; }
  .hm-about-in { grid-template-columns: 1fr; align-items: start; }
  .hm-about-btn, .hm-about-btns { justify-self: start; }
}
@media (max-width: 760px) {
  .hm-hero { min-height: 100svh; }
  .hm-hero-body { padding-top: 28px; padding-bottom: 28px; gap: 14px; }
  .hm-h1 { font-size: clamp(52px, 15vw, 76px); }
  .hm-field { flex-wrap: wrap; row-gap: 10px; padding: 12px 14px 14px; border-radius: 22px; }
  .hm-field > svg { order: 1; flex: none; }
  .hm-field input { order: 2; flex: 1 1 auto; width: auto; padding: 4px 0; }
  .hm-kbd { display: none; }
  .hm-go { order: 3; flex: 1 0 100%; border-radius: 14px; }
  .hm-ac { max-height: 44svh; }
  .hm-strip { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-eyebrow i { animation: none; }
}

/* ---- the live example answer under the hero */
.hm-ex-card { margin-top: 36px; background: #08080b; border: 1px solid var(--vx-line-dark); border-radius: var(--vx-radius); padding: clamp(22px, 3vw, 34px); }
.hm-ex-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.hm-ex-name { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -0.03em; color: #fff; }
.hm-ex-name small { font-size: 14px; color: var(--vx-live); letter-spacing: 0; margin-left: 10px; font-weight: 500; }
.hm-ex-nums { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 14px 0 0; padding: 0; list-style: none; }
.hm-ex-nums li { color: #8a8a96; font-size: 13px; }
.hm-ex-nums b { display: block; color: #fff; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hm-ex-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; margin-top: 26px; }
.hm-ex-cols h3 { margin: 0 0 10px; font-family: var(--vx-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #6e6e7a; font-weight: 400; }
.hm-ex-cols ul { margin: 0; padding: 0; list-style: none; }
.hm-ex-cols li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; color: #d6d6de; margin: 0 0 10px; }
.hm-ex-cols li i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 4px; background: #1c1c22; overflow: hidden; }
.hm-ex-cols li i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: var(--vx-live); opacity: .8; }
.hm-ex-cols li span { color: #8a8a96; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hm .hm-ex-go, .hm-ex-go { display: inline-flex; margin-top: 22px; color: #000; background: #fff; text-decoration: none; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 500; }
.hm .hm-ex-go:hover { background: #dcdce4; color: #000; }

/* ---- most-studied molecules: plain links, one tap to each molecule page */
.hm-pop-list { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm .hm-pop-list a { font-size: 14px; color: #d6d6de; text-decoration: none; border: 1px solid var(--vx-line-dark); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.03); }
.hm .hm-pop-list a:hover { color: #fff; border-color: #4a4a55; }

/* ---- layers beyond cargo: same cells, a quieter accent */
.hm-layers { margin-top: 12px; }
.hm-kind-cell.is-layer dt { color: #b9a6ff; }
.hm-kind-cell.is-layer dd { font-size: clamp(28px, 3.6vw, 44px); }
.hm-ac li.hm-ac-trials { border-top: 1px solid var(--vx-line-dark); border-radius: 0 0 12px 12px; margin-top: 4px; }
.hm-ac li.hm-ac-trials b { color: var(--vx-live); }
