@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/InterVariable-Italic.woff2") format("woff2"); font-style: italic; font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --page: #0a0a0c;
  --panel: #121216;
  --text: #ededf0;
  --text-2: #9b9ba6;
  --text-3: #6b6b76;
  --hair: rgba(255, 255, 255, 0.08);
  --cd8: #28eba5;
  --treg: #ff37af;
  --blue-lo: #0f2a55;
  --blue-hi: #b6d5f8;
  font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.wordmark { font-weight: 700; letter-spacing: 0.22em; font-size: 14px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; }
.nav-links a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .muted { color: var(--text-3); }

/* hero lens */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; cursor: none; }
.stagebox { position: absolute; inset: 108px 78px 78px 36%; --pad: 34; }
/* glass plate under the slide (placed on the image's contained rect by showcase.js), as in the promo video */
.plate {
  position: absolute; border-radius: 34px; border: 1.5px solid rgba(255, 255, 255, .17); pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .06));
  box-shadow: 0 0 160px 20px rgba(255, 140, 200, .10), 0 50px 120px -40px rgba(0, 0, 0, .9);
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none;
}
.layer.mif-src { visibility: hidden; }
.loupe {
  position: absolute; left: 0; top: 0; width: calc(var(--r, 150px) * 2); height: calc(var(--r, 150px) * 2); border-radius: 50%;
  transform: translate(calc(var(--x, 50%) - var(--r, 150px)), calc(var(--y, 50%) - var(--r, 150px)));
  background-image: url("img/crc01/mif_overview.webp"); background-repeat: no-repeat; background-color: #000;
  pointer-events: none; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.lens-ring {
  position: absolute; left: 0; top: 0; width: calc(var(--r, 150px) * 2); height: calc(var(--r, 150px) * 2);
  transform: translate(calc(var(--x, 50%) - var(--r, 150px)), calc(var(--y, 50%) - var(--r, 150px)));
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 60px rgba(40, 235, 165, 0.12);
  pointer-events: none;
}
.lens-ring span {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  background: rgba(10, 10, 12, 0.72); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-copy { position: absolute; left: 40px; bottom: 96px; width: min(34%, 520px); }
.eyebrow { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 22px; }
.hero p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 430px; }
.fluor-legend { position: absolute; left: 40px; bottom: 40px; display: flex; gap: 18px; list-style: none; margin: 0; padding: 0;
  font-size: 12.5px; color: var(--text-2); }
.fluor-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px;
  box-shadow: 0 0 10px var(--c); }
.scroll-cue { position: absolute; right: 40px; bottom: 34px; text-decoration: none; color: var(--text-3); font-size: 20px;
  animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* biomarker section */
.bm { padding: 120px 40px 80px; max-width: 1480px; margin: 0 auto; }
.bm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--hair);
  margin-bottom: 16px; }
.seg button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13.5px; padding: 8px 18px;
  border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: #24242b; color: var(--text); }
.viewer { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--hair); user-select: none; }
.v { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s ease; }
.mif { }
.viewer .mif { clip-path: inset(0 0 0 var(--split, 50%)); }
.split { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 0; border-left: 1px solid rgba(255,255,255,.85);
  cursor: ew-resize; transition: opacity .3s; }
.split::before { content: ""; position: absolute; inset: 0 -14px; }
.knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.75); border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center;
  font-size: 15px; backdrop-filter: blur(6px); }
.tag { position: absolute; top: 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px;
  border-radius: 999px; background: rgba(10, 10, 12, 0.6); backdrop-filter: blur(6px); color: var(--text); transition: opacity .3s; }
.tag.tl { left: 14px; } .tag.tr { right: 14px; }
.scalebar { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 11.5px;
  color: #fff; text-shadow: 0 1px 3px #000; }
.scalebar i { display: block; height: 3px; background: #fff; border-radius: 2px; box-shadow: 0 1px 3px #000; }
.viewer-cap { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 16px 2px 0; min-height: 42px; }
.viewer-cap b { color: var(--text); font-weight: 500; }
.viewer-cap .k8 { color: var(--cd8); } .viewer-cap .kt { color: var(--treg); }

.text-col { padding-top: 58px; }
.text-col h2 { font-size: clamp(28px, 2.5vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; }
.def { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.def .where { font-family: Inter, sans-serif; font-size: 13px; color: var(--text-3); }
.def .op { color: var(--blue-hi); } .def .c8 { color: var(--cd8); } .def .tr { color: var(--treg); } .def .sep { color: var(--text-3); margin: 0 6px; }
.agent { margin: 34px 0 0; padding: 0 0 0 22px; border-left: 2px solid rgba(255, 255, 255, 0.18); }
.agent p { font-size: 18px; line-height: 1.55; margin: 0 0 10px; font-style: italic; color: #d8d8de; letter-spacing: -0.005em; }
.agent footer { font-size: 12.5px; color: var(--text-3); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 44px; padding: 26px 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.nums b { display: block; font-size: 38px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nums b small { font-size: 16px; color: var(--text-3); font-weight: 500; }
.nums span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 6px; }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.maps figure { margin: 0; }
.maps canvas { width: 100%; aspect-ratio: 1.37; display: block; border-radius: 10px; background: #050506; box-shadow: 0 0 0 1px var(--hair); }
.maps figcaption { font-size: 12.5px; color: var(--text-2); margin-top: 9px; }
.maps-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.ramp-key i { display: inline-block; width: 64px; height: 6px; border-radius: 3px; margin-right: 8px; vertical-align: 1px;
  background: linear-gradient(90deg, var(--blue-lo), #257de0, var(--blue-hi)); }

.more { text-align: center; padding: 100px 40px 120px; border-top: 1px solid var(--hair); max-width: 1480px; margin: 0 auto; }
.more h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 28px; color: #d8d8de; }
.cta { display: inline-block; text-decoration: none; padding: 13px 26px; border-radius: 999px; background: var(--text); color: #0a0a0c;
  font-weight: 600; font-size: 14.5px; transition: transform .2s; }
.cta:hover { transform: translateY(-1px); }
.foot { color: var(--text-3); font-size: 12px; text-align: center; padding: 0 40px 40px; }

@media (max-width: 1100px) {
  .stagebox { inset: 92px 38px 238px 38px; --pad: 18; }
  .plate { border-radius: 22px; }
  .hero-copy { width: auto; right: 20px; left: 20px; bottom: 80px; }
  .bm-grid { grid-template-columns: 1fr; gap: 40px; }
  .text-col { padding-top: 0; }
}


@media (max-width: 760px) {
  .stagebox { inset: 84px 26px auto 26px; height: min(46vh, 112vw); --pad: 12; }
  .hero-copy { bottom: 64px; }
  .hero h1 { font-size: 32px; margin-bottom: 16px; }
  .hero p { font-size: 15px; }
  .fluor-legend { left: 20px; bottom: 24px; gap: 12px; font-size: 11.5px; }
  .scroll-cue { display: none; }
  .nav { padding-left: 18px; padding-right: 18px; gap: 18px; }
  .wordmark { letter-spacing: .14em; flex: none; }
  .nav-links { gap: 16px; font-size: 12.5px; overflow-x: auto; scrollbar-width: none; }
  .nav-links .gh { display: none; }
}

/* ---------- landing: chapters, evidence strip, run ---------- */
.chapters { max-width: 1480px; margin: 0 auto; padding: 110px 40px 40px; border-top: 1px solid var(--hair); }
.ch-head h2, .run h2 { font-size: clamp(30px, 3vw, 46px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; }
.ch-head p, .run p { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 640px; margin: 0; }
.ch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.ch { text-decoration: none; color: inherit; display: block; padding: 12px 12px 22px; border-radius: 18px; background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 1px var(--hair); transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s; }
.ch:hover { transform: translateY(-3px); background: rgba(255,255,255,.045); }
.ch-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #050507; margin-bottom: 18px; }
.ch-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ch-img img.h { opacity: 0; }
.ch:hover .ch-img img.h { opacity: 1; }
.ch-img.wsi { background: radial-gradient(70% 70% at 50% 50%, rgba(169, 155, 255, .10), transparent 70%); }
.ch-img.wsi img { object-fit: contain; padding: 14px; }
.ch-img.compose { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 20px; font-size: 19px; font-weight: 550; letter-spacing: -0.015em; line-height: 1.35;
  background: radial-gradient(120% 90% at 80% 10%, rgba(40,235,165,.10), transparent 60%), radial-gradient(100% 80% at 10% 100%, rgba(255,55,175,.10), transparent 60%), #08080a; }
.ch-img.compose b { font-weight: 600; border-bottom: 2px solid rgba(255,255,255,.25); white-space: nowrap; }
.ch-img.compose b.a { color: #28eba5; } .ch-img.compose b.b { color: #ff37af; }
.ch-img.compose em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.ch-img.metro svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px; }
.ch-n { display: block; padding: 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ch h3 { padding: 0 8px; margin: 8px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ch p { padding: 0 8px; margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.ev-strip { max-width: 1480px; margin: 40px auto 0; padding: 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 22px; align-items: stretch; }   /* stretch: top rules line up when one caption is shorter */
.ev-strip div { padding: 20px 0; border-top: 1px solid var(--hair); }
.ev-strip b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ev-strip span { color: var(--text-2); font-size: 13.5px; }
.ev-strip a { align-self: center; color: #8fc0ff; text-decoration: none; font-size: 15px; white-space: nowrap; }
.ev-strip a:hover { text-decoration: underline; }
.run { max-width: 1480px; margin: 0 auto; padding: 110px 40px 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.code { margin: 0; padding: 24px 26px; border-radius: 16px; background: #111114; box-shadow: inset 0 0 0 1px var(--hair); overflow-x: auto;
  font: 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #d6d6de; }
.code .cm { color: var(--text-3); }
@media (max-width: 1100px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .run { grid-template-columns: 1fr; } .ev-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ch-grid, .ev-strip { grid-template-columns: 1fr; } .chapters, .run, .ev-strip { padding-left: 18px; padding-right: 18px; } }
/* read mode: H&E-read field left of the split, measured field right */
.viewer .vread { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); opacity: 0; }
.viewer .vmeas { clip-path: inset(0 0 0 var(--split, 50%)); opacity: 0; }
.vtip { position: absolute; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 4; white-space: nowrap;
  background: rgba(8,8,10,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 7px 11px; font-size: 12px; line-height: 1.55; color: #9b9ba6; }
.vtip b { color: #ededf0; font-weight: 600; margin-left: 10px; float: right; }

/* ---- the loop: the paper's five steps, one lap per round, then deployment (index.html #loop) ---- */
.lp { max-width: 1480px; margin: 0 auto; padding: 130px 40px 40px; }
.lp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: end; margin-bottom: 46px; }
.lp-head .eyebrow { grid-column: 1 / -1; margin-bottom: -40px; }
.lp-head h2 { font-size: clamp(32px, 3.2vw, 50px); line-height: 1.06; margin: 0; }
.lp-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 560px; justify-self: end; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.lp-step { position: relative; cursor: default; transition: opacity .5s; }
.lp-run .lp-step { opacity: .55; }
.lp-run .lp-step.on { opacity: 1; }
/* the five loop steps of the paper (Fig. 1a) on the left, closed by the arc; deployment sits outside the loop, after a dashed rule */
.lp-flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1.04fr); gap: 48px; align-items: start; }
.lp-dep::before { content: ""; position: absolute; left: -25px; top: 6px; height: calc(100% - 12px); border-left: 1px dashed rgba(255, 255, 255, .16); }
.lp-dep .lp-n { letter-spacing: .14em; text-transform: uppercase; }
.lp-vis { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #07080d;
  box-shadow: var(--tile-edge), var(--lift); transition: box-shadow .5s, transform .5s; }
.lp-step.on .lp-vis { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 0 0 6px rgba(140, 160, 255, .07), var(--lift); transform: translateY(-4px); }
.lp-vis > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-over { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.5, 0, .2, 1) .1s; }
.lp-step.on .lp-over, .lp-step.seen .lp-over { clip-path: inset(0 0 0 0); }
.lp-n { display: block; margin: 18px 0 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .17em; color: var(--text-3); }
.lp-step.on .lp-n { color: #a9b6ff; }
.lp-step h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.lp-step > p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
/* step 1: the agent's own words */
.lp-term { padding: 16px 16px 14px; display: flex; flex-direction: column; background:
  radial-gradient(120% 80% at 0% 0%, rgba(169, 155, 255, .12), transparent 60%), #07080d; }
.lp-who { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.lp-who i { width: 7px; height: 7px; border-radius: 50%; background: #46e6c8; box-shadow: 0 0 10px #46e6c8; }
.lp-typed { margin: 11px 0 0; font-size: 13.5px; line-height: 1.42; color: #e3e5f0; letter-spacing: -.005em; }
.lp-typed::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #a9b6ff; animation: lpblink 1s steps(1) infinite; }
.lp-typed.done::after { opacity: 0; animation: none; }
@keyframes lpblink { 50% { opacity: 0; } }
.lp-fals { margin: auto 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; line-height: 1.4; color: var(--text-3); }
.lp-fals em { display: block; margin-bottom: 3px; }
.lp-fals em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #ffaf28; margin-right: 4px; }
/* step 2: the executable spec */
.lp-specv { padding: 16px 16px 14px; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 100% 0%, rgba(70, 230, 200, .09), transparent 60%), #07080d; }
.lp-spec { margin: 14px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.35; }
.lp-spec dt { color: var(--text-3); } .lp-spec dd { margin: 0; color: #e3e5f0; }
.lp-spec dt, .lp-spec dd { transition: opacity .35s calc(var(--r) * 110ms + 120ms), transform .35s calc(var(--r) * 110ms + 120ms); }
.lp-step.reset .lp-spec dt, .lp-step.reset .lp-spec dd { opacity: 0; transform: translateX(-6px); transition: none; }
.lp-spec .k, .lp-expr .k { color: #84b4ff; } .lp-spec .a, .lp-expr .a { color: #28eba5; } .lp-spec .b, .lp-expr .b { color: #ff37af; } .lp-spec .n, .lp-expr .n { color: #ffaf28; }
.lp-expr { margin-top: auto; padding: 8px 10px; border-radius: 9px; font-family: var(--mono); font-size: 11px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  color: #cfd3e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s .7s; }
.lp-step.reset .lp-expr { opacity: 0; transition: none; }
/* step 3: measured values cover the right part of the fluorescence */
.lp-step.on .lp-over.lp-half, .lp-step.seen .lp-over.lp-half { clip-path: inset(0 0 0 42%); }
.lp-over.lp-half { clip-path: inset(0 0 0 100%); }
.lp-step.reset .lp-over.lp-half { clip-path: inset(0 0 0 100%); }
.lp-chip.r { left: auto; right: 12px; }
.lp-chip { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(5, 6, 11, .66); backdrop-filter: blur(6px); }
/* step 4: two gates */
.lp-gates { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 16px; }
.lp-gl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); margin-bottom: 9px; gap: 8px; }
.lp-gl span { flex: 1; min-width: 0; line-height: 1.3; }
.lp-gl b { white-space: nowrap; font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.lp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: #1f6fe0; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.lp-gate + .lp-gate .lp-bar i { background: #46e6c8; }
.lp-bar s { position: absolute; top: -4px; bottom: -4px; width: 1px; background: rgba(255, 255, 255, .55); }
.lp-pass { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(70, 230, 200, .14); color: #6ff0d6;
  opacity: 0; transform: translateY(4px); transition: opacity .4s .9s, transform .4s .9s; }
.lp-step.on .lp-pass, .lp-step.seen .lp-pass { opacity: 1; transform: none; }
.lp-stop { margin: auto 0 0; font-size: 11px; line-height: 1.45; color: var(--text-3); }
/* step 5: survival */
.lp-km { padding: 16px 14px 12px; display: flex; flex-direction: column; }
.lp-km svg { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.lp-km path.c { fill: none; stroke-width: 2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.2s ease; }
.lp-step.on .lp-km path.c, .lp-step.seen .lp-km path.c { stroke-dashoffset: 0; }
.lp-km .ax { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.lp-km text { font-family: var(--mono); font-size: 9px; fill: var(--text-3); }
.lp-kmk { margin: 6px 2px 0; font-size: 11px; line-height: 1.5; color: var(--text-2); }
.lp-kmk span { color: var(--text-3); }
.lp-kmk i { display: inline-block; width: 10px; height: 2px; vertical-align: 3px; margin-right: 6px; }
/* replay: the active tile restarts from these states (showcase.js adds .reset for one frame), then transitions to its finished state */
.lp-step.reset .lp-over { clip-path: inset(0 100% 0 0); transition: none; }
.lp-step.reset .lp-bar i { width: 0 !important; transition: none; }
.lp-step.reset .lp-pass { opacity: 0; transform: translateY(4px); transition: none; }
.lp-step.reset .lp-km path.c { stroke-dashoffset: var(--len); transition: none; }
/* lineage: the current round is ringed, later rounds wait (dim, empty bar); a round's bar grows when its gate step runs */
.lp-lc { cursor: pointer; transition: box-shadow .3s, background .3s, opacity .4s; }
.lp-lc.todo { opacity: .38; }
.lp-lc.todo .lp-lb i { width: 0; }
.lp-lc.cur { box-shadow: inset 0 0 0 1.5px rgba(169, 182, 255, .8), 0 0 0 5px rgba(140, 160, 255, .08), var(--lift); }
.lp-lc.pend .lp-lb i { width: 0; }
.lp-lc.pend .lp-lv { opacity: .3; }
.lp-lv { transition: opacity .4s .6s; }
/* feedback moment between rounds: the arc lights up */
.lp-arc path { transition: stroke .4s; }
#loop.lp-fbk .lp-arc path { stroke: rgba(255, 196, 107, .95); stroke-width: 2; animation-duration: .5s; }
#loop.lp-fbk .lp-note { color: var(--text); }
.lp-tag { position: absolute; right: 12px; top: 12px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; color: var(--text-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lp-note { transition: color .4s; }
/* progress line along the bottom of the active tile: the strip moves on by itself */
.lp-vis::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; z-index: 3; background: var(--grad); pointer-events: none; }
.lp-step.on:not(.hold) .lp-vis::after { animation: lpprog var(--dur, 3800ms) linear forwards; }
.lp-step.reset .lp-vis::after { animation: none; }
@keyframes lpprog { to { width: 100%; } }
.lp-step { cursor: pointer; }
/* the way back: scores return to the agent */
.lp-back { position: relative; margin-top: 0; }
/* the arc closes the loop: from Feedback (step 5) back to Propose (step 1) */
.lp-arc { display: block; width: 100%; height: 60px; margin-top: 18px; overflow: visible; }
.lp-arc path { fill: none; stroke: rgba(169, 182, 255, .45); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; animation: lpflow 1.6s linear infinite; }
.lp-arc .lp-head-arrow { stroke-dasharray: none; animation: none; }
@keyframes lpflow { to { stroke-dashoffset: 22; } }
/* the lineage under the way back: earlier proposals on the same cells, then this biomarker */
.lp-lin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin: 10px 0 16px; font-size: 14.5px; color: var(--text-2); }
.lp-lin-head b { color: var(--text); font-weight: 600; }
.lp-lin-head span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.lp-lin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.lp-lc { position: relative; padding: 16px 18px 15px; border-radius: 16px; background: var(--tile); box-shadow: var(--tile-edge); display: flex; flex-direction: column;
  transition: box-shadow .3s, background .3s; }
.lp-lc:not(:last-child)::after { content: "→"; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; }
.lp-lc.me { background: linear-gradient(160deg, rgba(169, 155, 255, .13), rgba(70, 230, 200, .06)); box-shadow: inset 0 0 0 1px rgba(169, 182, 255, .45), var(--lift); }
.lp-lc.hl { box-shadow: inset 0 0 0 1px rgba(255, 175, 40, .75); background: rgba(255, 175, 40, .07); }
.lp-lr { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; }
.lp-lr em { font-style: normal; color: #a9b6ff; letter-spacing: .1em; }
.lp-lc p { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--text); flex: 1; }
.lp-lb { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lp-lb i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: rgba(238, 240, 247, .38);
  transition: width 1s cubic-bezier(.2, .7, .2, 1) calc(var(--d) * 260ms + 200ms); }
.lp-lc.me .lp-lb i { background: var(--grad); }
.lp-lin.reset .lp-lb i { width: 0; transition: none; }
.lp-lv { margin-top: 8px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lp-lv b { color: var(--text-2); font-weight: 600; }
.lp-lc.me .lp-lv b { color: var(--text); }
.lp-note { max-width: 900px; margin: 22px auto 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.lp-note q { font-style: italic; color: #d8dae6; }
.lp-ref { text-decoration: underline; text-decoration-color: rgba(255, 175, 40, .6); text-underline-offset: 3px; cursor: default; transition: color .2s; }
.lp-ref.hl { color: #ffc46b; }
@media (max-width: 1100px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .lp-lin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .lp-lc::after { display: none; }
  .lp-head { grid-template-columns: 1fr; gap: 18px; } .lp-head .eyebrow { margin-bottom: 0; } .lp-head p { justify-self: start; }
  .lp-arc { display: none; }
  .lp-flow { grid-template-columns: 1fr; gap: 34px; } .lp-dep { max-width: calc((100% - 36px) / 3); } .lp-dep::before { display: none; }
}
@media (max-width: 640px) {
  .lp { padding: 90px 20px 20px; }
  .lp-run .lp-step { opacity: 1; } .lp-dep { max-width: none; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-term, .lp-gates, .lp-km, .lp-specv { aspect-ratio: auto; min-height: 280px; }
}
