.stage-logo {
  display: block;
  width: 110px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  background: white;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 8px;
}
.stage-logo[hidden] { display: none; }
.pharma-regulatory {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.pharma-regulatory div { flex: 1 1 250px; }
.pharma-regulatory h3 { margin-top: 0; }
.pharma-regulatory p { margin-bottom: 0; }
.lifecycle-demo[data-stage="1"] .lifecycle-body,
.lifecycle-demo[data-stage="1"] .lifecycle-cap { transform: translate(-50%, -50%) scale(1.23); }
.lifecycle-demo[data-stage="1"] .lifecycle-cap { left: 69%; }
.diagnostic-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  gap: 5px;
  padding: 0;
  margin: 0 0 16px;
}
.diagnostic-progress li {
  text-align: center;
  padding: 8px 2px;
  border-bottom: 3px solid #ced9cf;
  font-size: clamp(12px, 2vw, 15px);
}
.diagnostic-progress [aria-current] { border-color: var(--teal); font-weight: 750; }
.diagnostic-demo .lifecycle-controls { margin: 0 0 16px; }
.journey-scene { position: relative; border-radius: 12px; overflow: hidden; background: #142d35; color: #f3f7ee; }
.journey-photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.journey-shot {
  position: absolute;
  inset: 0;
  background-image: url("assets/diagnostics-storyboard.jpg");
  background-size: 200% 300%;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .65s ease, transform 5s ease-out;
}
.shot-0 { background-position: 0 0; }
.shot-1 { background-position: 100% 0; }
.shot-2 { background-position: 0 50%; }
.shot-3 { background-position: 100% 50%; }
.shot-4 { background-position: 0 100%; }
.shot-5 { background-position: 100% 100%; }
[data-view="0"] .shot-0, [data-view="1"] .shot-1, [data-view="2"] .shot-2,
[data-view="3"] .shot-3, [data-view="4"] .shot-4, [data-view="5"] .shot-5 {
  opacity: 1;
  transform: scale(1);
}
[data-view="6"] .journey-photo { display: none; }
.journey-dashboard { padding: clamp(16px, 3vw, 30px); background: linear-gradient(145deg, #223f43, #142b32 75%); }
.journey-dashboard[hidden] { display: none; }
.journey-dashboard .eyebrow { color: #d1e68e; }
.journey-dashboard h4 { color: inherit; font-size: clamp(19px, 2.5vw, 26px); margin: 6px 0 14px; }
.journey-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.journey-dashboard-grid > div { border: 1px solid #66817c; border-radius: 8px; padding: 12px; }
.journey-dashboard h5 { color: #d1e68e; margin: 0 0 5px; font-size: 14px; }
.journey-dashboard dl { margin: 0; }
.journey-dashboard dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #59736e; font-size: 13px; }
.journey-dashboard dl div:last-child { border-bottom: 0; }
.journey-dashboard dd { margin: 0; font-weight: 700; white-space: nowrap; }
.journey-total { color: #d1e68e; }
@media (max-width: 420px) {
  .diagnostic-progress li { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-shot { transition: none; }
}

/* The photos set the location. Dimensional foreground objects show each handoff. */
.journey-shot {
  transform: none;
  transition: opacity .35s ease;
}
.motion-scene {
  position: absolute;
  inset: 38% 0 0;
  isolation: isolate;
  container-type: inline-size;
  perspective: 660px;
  background: linear-gradient(0deg, #10272eed 3%, #172f37db 58%, transparent);
}
.motion-scene > div {
  position: absolute;
  box-sizing: border-box;
}
.motion-tube {
  z-index: 3;
  width: 5.5cqw;
  height: 16cqw;
  border-radius: 1cqw 1cqw 2.5cqw 2.5cqw;
  border: 1px solid #c4d7dc;
  border-top: 2.4cqw solid #a37cb2;
  background: linear-gradient(90deg, #a1bdc4, #f8ffff 28%, #aec3cc 77%, #78929e);
  box-shadow: 0 .65cqw 1.1cqw #0a1b2699;
}
.motion-tube::before {
  content: '';
  position: absolute;
  inset: 51% 12% 7%;
  border-radius: 0 0 1.7cqw 1.7cqw;
  background: linear-gradient(90deg, #781e36, #ad4254 42%, #69182d);
}
.motion-tube::after {
  content: '';
  position: absolute;
  inset: 24% 5% 45%;
  background: repeating-linear-gradient(90deg, #304655 0 1px, #f0f1ea 1px 3px);
}
.motion-phone, .motion-tag, .motion-report, .motion-portal, .motion-consult {
  color: #152d34;
  background: linear-gradient(145deg, #f5f8ee, #bbcfd0);
  border-radius: 1.6cqw;
  box-shadow: .6cqw .75cqw #668885, 0 1.8cqw 3cqw #061a239e;
  padding: 1.7cqw;
  font-size: clamp(10px, 3cqw, 17px);
  font-weight: 700;
}
.motion-phone { left: 23%; top: 25%; width: 32%; border: .8cqw solid #385963; }
.motion-phone i { display: block; width: 32%; height: .6cqw; background: #86a6a8; margin: 0 auto 1.8cqw; }
.motion-check { left: 61%; top: 33%; border-radius: 50%; padding: 1.2cqw 2cqw; color: #203840; background: #d8e993; font-size: 5cqw; }
.motion-tag { left: 12%; top: 66%; font-size: clamp(9px, 2.5cqw, 14px); }
.motion-rack {
  left: 54%;
  top: 60%;
  width: 34%;
  height: 12cqw;
  padding: 2cqw 1.8cqw;
  border-radius: 2cqw;
  background: linear-gradient(#b2c7c8 0 22%, #44666e 24% 36%, #749b9b 38% 84%, #507176 85%);
  box-shadow: .9cqw 1cqw #36565d;
  color: #102c34;
  font-size: clamp(10px, 3cqw, 16px);
  font-weight: 700;
  display: flex;
  align-items: end;
}
.shot-1 .motion-tube { left: 68%; top: 40%; }
.motion-centrifuge {
  left: 30%;
  top: 42%;
  width: 50%;
  height: 23cqw;
  border-radius: 5cqw 5cqw 3cqw 3cqw;
  background: linear-gradient(160deg, #f2f9f7, #adbfca 55%, #678591 87%);
  box-shadow: 1cqw 1.6cqw #45636f, 0 2cqw 4cqw #061620b8;
}
.motion-lid, .motion-well {
  position: absolute;
  left: 11%;
  width: 78%;
  border-radius: 50%;
}
.motion-well {
  z-index: 1;
  top: 4%;
  height: 51%;
  background: radial-gradient(ellipse, #5a7883, #142936 62%, #688793 65%, #d6e0e4 73%);
  display: grid;
  place-items: center;
}
.motion-rotor {
  width: 51%;
  height: 68%;
  border-radius: 50%;
  border: 1px solid #87a0aa;
  background: repeating-conic-gradient(#758a97 0deg 30deg, #192f3b 32deg 65deg);
}
.motion-lid {
  top: 4%;
  height: 50%;
  z-index: 4;
  transform-origin: top center;
  background: radial-gradient(ellipse at 40% 25%, #f6ffff, #91a9b5);
  border: 1px solid #6f909c;
}
.motion-display {
  position: absolute;
  left: 25%;
  bottom: 12%;
  padding: 1cqw 1.6cqw;
  background: #17383f;
  color: #d5e9a3;
  border-radius: 1cqw;
  font-size: clamp(10px, 2.7cqw, 15px);
}
.shot-2 .motion-tube { left: 52%; top: 31%; opacity: 0; }
.motion-analyser {
  left: 43%;
  top: 30%;
  width: 44%;
  height: 29cqw;
  border-radius: 3cqw;
  background: linear-gradient(150deg, #edf6f5, #93aab2 55%, #5a7a88);
  box-shadow: 1.2cqw 1.5cqw #426571, 0 2.3cqw 4cqw #061620bc;
}
.motion-bay {
  position: absolute;
  inset: 21% 49% 22% 5%;
  border-radius: 1.4cqw;
  background: linear-gradient(160deg, #0f2832, #345662);
  border: 1px solid #527582;
  box-shadow: inset 0 0 1.4cqw #071b22;
}
.motion-analyser .motion-display { left: 54%; right: 6%; bottom: 19%; }
.motion-display b { display: block; font-size: .85em; font-weight: 650; }
.shot-3 .motion-tube { left: 52%; top: 45%; opacity: 0; }
.motion-reagent {
  z-index: 3;
  left: 53%;
  top: 57%;
  width: 11cqw;
  height: 10cqw;
  border-radius: 1cqw;
  border-top: 2cqw solid #8ead4c;
  padding: 1cqw .4cqw;
  text-align: center;
  background: linear-gradient(95deg,#acc18c,#f6f9e9,#a8ba90);
  color: #19323a;
  font-size: clamp(8px, 2cqw, 12px);
  opacity: 0;
}
.motion-signal { left: 51%; top: 56%; z-index: 2; display: flex; align-items: end; gap: .6cqw; height: 4cqw; }
.motion-signal i { width: .85cqw; background: #cde687; box-shadow: 0 0 1cqw #d7f79f; height: 40%; }
.motion-signal i:nth-child(2) { height: 68%; }
.motion-signal i:nth-child(3) { height: 100%; }
.motion-monitor {
  left: 44%;
  top: 24%;
  width: 43%;
  padding: 2cqw;
  border: 1.1cqw solid #47646e;
  border-radius: 2cqw;
  background: #17353e;
  box-shadow: 1cqw 1.2cqw #294852, 0 2cqw 4cqw #061620b0;
  font-size: clamp(10px, 2.7cqw, 15px);
}
.motion-monitor strong { color: #def098; font-size: .9em; }
.motion-bars { display: flex; align-items: end; gap: 1.2cqw; height: 9cqw; margin: 1cqw 0; border-bottom: 1px solid #8fa8ac; }
.motion-bars i { width: 3cqw; height: 32%; background: #8bbcaf; transform-origin: bottom; }
.motion-bars i:nth-child(2) { height: 64%; }
.motion-bars i:nth-child(3) { height: 49%; }
.motion-bars i:nth-child(4) { height: 95%; }
.motion-report { left: 18%; top: 50%; z-index: 1; width: 22%; }
.motion-report::after {
  content: '';
  display: block;
  margin-top: 1.3cqw;
  height: 5cqw;
  background: repeating-linear-gradient(#7a959a 0 1px, transparent 1px 1.7cqw);
}
.motion-portal { left: 10%; top: 58%; }
.motion-consult { right: 9%; top: 58%; background: #d9e993; }
.shot-5 .motion-report { left: 64%; top: 24%; }
@media (prefers-reduced-motion: no-preference) {
  [data-view="0"] .motion-check { animation: motion-confirm 1.3s both; }
  [data-view="1"] .motion-tube { animation: motion-intake 2.5s both; }
  [data-view="2"] .motion-tube { animation: motion-load 2.1s both; }
  [data-view="2"] .motion-lid { animation: motion-lid 4.9s both; }
  [data-view="2"] .motion-rotor { animation: motion-spin .18s 13 linear 2s; }
  [data-view="3"] .motion-tube { animation: motion-feed 2.2s both; }
  [data-view="3"] .motion-reagent { animation: motion-feed 2.4s .35s both; }
  [data-view="3"] .motion-signal { animation: motion-confirm 1.2s 2.3s both; }
  [data-view="3"] .motion-display b { animation: motion-confirm .7s 3.45s both; }
  [data-view="4"] .motion-bars i { animation: motion-bars .9s 1.25s both; }
  [data-view="4"] .motion-report { animation: motion-review 1.5s both; }
  [data-view="4"] .motion-monitor strong { animation: motion-confirm .7s 2.1s both; }
  [data-view="5"] .motion-report { animation: motion-deliver 3s both; }
}
@keyframes motion-confirm {
  0%, 32% { opacity: 0; transform: scale(.72); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes motion-intake {
  0% { transform: translate(-42cqw,-9cqw) rotate(-25deg); }
  55% { transform: translateY(-7cqw); }
  100% { transform: translateY(0); }
}
@keyframes motion-load {
  0% { opacity: 1; transform: translate(-32cqw,-9cqw) rotate(-24deg); }
  62% { opacity: 1; transform: translateY(-8cqw); }
  88% { opacity: 1; transform: translateY(2cqw); }
  100% { opacity: 0; transform: translateY(4cqw) scale(.7); }
}
@keyframes motion-lid {
  0%, 26% { transform: translateY(-5cqw) rotateX(-71deg); }
  44%, 87% { transform: none; }
  100% { transform: translateY(-5cqw) rotateX(-71deg); }
}
@keyframes motion-spin { to { transform: rotate(360deg); } }
@keyframes motion-feed {
  0% { opacity: 1; transform: translateX(-39cqw); }
  75% { opacity: 1; transform: translateX(-2cqw); }
  100% { opacity: 0; transform: scale(.58); }
}
@keyframes motion-bars { from { transform: scaleY(.06); } }
@keyframes motion-review {
  from { opacity: 0; transform: translate(-10cqw,4cqw) rotate(-9deg); }
  to { transform: translateX(2cqw); }
}
@keyframes motion-deliver {
  0% { transform: translate(-50cqw,10cqw) rotate(-12deg); }
  45% { transform: translate(-21cqw,-3cqw) rotate(3deg); }
  100% { transform: none; }
}
.diagnostic-progress li { padding: 0; border: 0; }
.diagnostic-progress button {
  width: 100%;
  background: transparent;
  color: var(--teal);
  border-radius: 5px 5px 0 0;
  border-bottom: 3px solid #ced9cf;
  padding: 9px 2px;
  font-size: inherit;
}
.diagnostic-progress button:hover { background: #e4ede1; }
.motion-lid { background: radial-gradient(ellipse at 38% 26%, #edfaffbc, #90aab5aa); }

.diagnostic-demo .lifecycle-layout { align-items: start; }
.diagnostic-demo .lifecycle-copy h3 { margin-bottom: 8px; }
.diagnostic-demo .lifecycle-copy > p:not(.lifecycle-context) { margin: 0 0 14px; }
.diagnostic-demo .journey-scene { isolation: isolate; }
.diagnostic-scene-cue {
  position: absolute; z-index: 5; top: 12px; left: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px;
  padding: 5px 10px 5px 5px; max-width: calc(100% - 24px);
  background: #152e36f2; color: #fff; border: 1px solid #91acac;
  border-radius: 7px; font-size: clamp(11px, 2.4vw, 14px); font-weight: 700;
  pointer-events: none;
}
.diagnostic-scene-cue img { width: 70px; height: 29px; padding: 3px; border-radius: 4px; object-fit: contain; background: white; }
.journey-dashboard { padding-top: 66px; }
.diagnostic-evidence {
  display: flex; flex-wrap: wrap; list-style: none;
  padding: 0; margin: 0; gap: 6px;
}
.diagnostic-evidence li {
  padding: 4px 8px; border-radius: 4px; border: 1px solid #bdcec5;
  background: #e9f1eb; color: #21463e; font-size: 12px; font-weight: 650;
}
.journey-shot { filter: saturate(.9); }
.motion-scene { inset: 46% 0 0; background: linear-gradient(0deg, #10262ef0 0%, #142b33c9 44%, transparent 88%); }
.motion-phone, .motion-tag, .motion-report, .motion-portal, .motion-consult {
  border-radius: .9cqw; box-shadow: 0 1cqw 2.4cqw #061a239e; border: 1px solid #aebfc0;
}
.motion-phone { border: .65cqw solid #385963; }
.motion-check { font-size: 3.2cqw; background: #cfdece; }
.motion-consult { background: #d2e0d5; }
[data-view="2"] .motion-scene, [data-view="3"] .motion-scene { inset: 38% 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .journey-shot { transform: scale(1); transition: opacity .38s ease, transform .5s ease; }
  [data-view="0"] .shot-0, [data-view="1"] .shot-1, [data-view="2"] .shot-2,
  [data-view="3"] .shot-3, [data-view="4"] .shot-4, [data-view="5"] .shot-5 {
    animation: diagnostic-focus 5.5s ease-out both;
  }
  .diagnostic-evidence li { animation: diagnostic-evidence-in .35s ease-out both; }
  .diagnostic-evidence li:nth-child(2) { animation-delay: 100ms; }
  .diagnostic-evidence li:nth-child(3) { animation-delay: 200ms; }
  [data-view="6"] .journey-dashboard-grid > div { animation: diagnostic-evidence-in .45s ease both; }
  [data-view="6"] .journey-dashboard-grid > div + div { animation-delay: 140ms; }
}
@keyframes diagnostic-focus { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes diagnostic-evidence-in { from { opacity: 0; transform: translateY(5px); } }

#diagnostic-stage #diagnostic-evidence { margin-top: 6px; }
#diagnostics img[src$="zeno-health.webp"] { background: #193742; }
