/* Bench to Bedside Science: one pinned scene; an SVG camera plus HTML overlays (heading, taglines, checklist). */
#bench.bn { padding: 0; }
.bn .stage { --bn-g: 24px; --bn-gap: 20px; --bn-top: 72px; }
.bn-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: hidden; }
.bn-svg * { transform-box: view-box; }

/* ---------- Overlays ---------- */
.bn-head {
  position: absolute; z-index: 2; top: var(--bn-top); left: var(--bn-g); right: var(--bn-g); margin: 0;
  text-align: center; font-size: clamp(26px, 4vw, 52px); will-change: transform, opacity;
}
.bn-tag {
  position: absolute; z-index: 2; left: var(--bn-g); right: var(--bn-g); bottom: var(--bn-gap); margin: 0;
  text-align: center; opacity: 0; will-change: transform, opacity; text-wrap: balance;
}
.bn-tag .k-word { display: inline-block; white-space: nowrap; }
.bn-tag .k-ch { display: inline-block; will-change: transform, opacity; }
.bn-tag .k-sp { display: inline-block; width: 0.34em; }
.bn-tag::after {
  content: ""; display: block; width: 72px; height: 1px; margin: 12px auto 0;
  background: var(--holo); box-shadow: 0 0 8px var(--holo);
}
[data-mode="short"] .bn-head { font-size: clamp(20px, 3vw, 28px); }
[data-mode="short"] .bn-tag { font-size: 15px; }
[data-mode="short"] .bn-tag::after { margin-top: 8px; }
[data-mode="tall"] .bn-head { font-size: clamp(24px, 7.4vw, 40px); }
[data-mode="tall"] .bn-tag { font-size: clamp(15px, 4.4vw, 20px); letter-spacing: 0.18em; line-height: 1.4; }

/* Checklist card */
.bn-check { position: absolute; z-index: 2; display: flex; align-items: center; opacity: 0; pointer-events: none; }
[data-mode="tall"] .bn-check { align-items: flex-end; }
.bn-card {
  width: 100%; max-width: 480px; padding: 24px 28px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(0, 150, 200, 0.28); border-left: 3px solid var(--heal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 10px 40px -18px rgba(0, 110, 150, 0.35);
  will-change: transform;
}
[data-mode="tall"] .bn-card { max-width: none; padding: 16px 18px 18px; }
[data-mode="short"] .bn-card { padding: 14px 18px 16px; }
.bn-card-eye { margin: 0 0 14px; color: var(--heal); }
[data-mode="tall"] .bn-card-eye, [data-mode="short"] .bn-card-eye { margin-bottom: 10px; }
.bn-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
[data-mode="tall"] .bn-card ul, [data-mode="short"] .bn-card ul { gap: 10px; }
.bn-card li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: center; }
.bn-box { position: relative; width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: rgba(255, 255, 255, 0.7); }
.bn-box-on { position: absolute; inset: -1.5px; border-radius: 7px; background: var(--heal); box-shadow: 0 0 12px color-mix(in srgb, var(--heal) 55%, transparent); opacity: 0; }
.bn-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bn-box path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bn-item { font: 600 16px/1.35 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); opacity: 0.42; }
[data-mode="tall"] .bn-item { font-size: 13px; letter-spacing: 0.1em; }
[data-mode="short"] .bn-item { font-size: 13px; }

/* ---------- SVG: shared ---------- */
.bn-svg path, .bn-svg ellipse, .bn-svg circle, .bn-svg rect { vector-effect: non-scaling-stroke; }
.bn-glow { fill: none; stroke: var(--holo); stroke-width: 6; opacity: 0.16; stroke-linejoin: round; stroke-linecap: round; }
.bn-glow-wide { stroke-width: 10; opacity: 0.14; }
.bn-glow-heal { stroke: var(--heal); opacity: 0.14; }
.bn-lbl {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.26em; fill: var(--muted);
  font-size: calc(var(--fs, 12) * var(--u, 1px));
}
.bn-st, .bn-dna { --fs: 13.5; }
[data-mode="tall"] .bn-st, [data-mode="tall"] .bn-dna, [data-mode="short"] .bn-st, [data-mode="short"] .bn-dna { --fs: 11.5; }
.bn-lbl-heal { fill: var(--heal); }
.bn-sign { font-weight: 700; }

/* Dish */
.bn-shadow { fill: url(#bn-shadow); }
.bn-dish-wall { fill: url(#bn-wall); }
.bn-dish-floor { fill: url(#bn-floor); }
.bn-dish-rim { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.bn-dish-inner { fill: none; stroke: var(--faint); stroke-width: 1; opacity: 0.8; }
.bn-dish-edge { fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linejoin: round; }
.bn-spec { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0.95; }
.bn-spec-2 { stroke-width: 2; opacity: 0.8; }
.bn-cellb { fill: rgba(255, 255, 255, 0.85); stroke: var(--muted); stroke-width: 1.15; }
.bn-celln { fill: var(--muted); opacity: 0.55; }
.bn-org-body { fill: rgba(255, 255, 255, 0.82); stroke: var(--muted); stroke-width: 1.2; }
.bn-org-div { fill: none; stroke: var(--muted); stroke-width: 0.8; opacity: 0.55; }
.bn-org-lumen { fill: color-mix(in srgb, var(--holo) 10%, #fff); stroke: var(--muted); stroke-width: 1; }
.bn-tgt .bn-cellb { stroke: var(--text); }
.bn-ret-c { fill: none; stroke: var(--holo); stroke-width: 1.4; }
.bn-ret-t { fill: none; stroke: var(--holo); stroke-width: 2; stroke-linecap: round; }

/* Cell */
.bn-mem { fill: url(#bn-cyto); stroke: var(--muted); stroke-width: 1.8; }
.bn-mem-in { fill: none; stroke: var(--faint); stroke-width: 1; opacity: 0.7; }
.bn-vesicle { fill: none; stroke: var(--faint); stroke-width: 1; opacity: 0.55; }
.bn-nuc { fill: url(#bn-nucl); stroke: var(--muted); stroke-width: 1.6; }
.bn-nuc-in { fill: none; stroke: var(--faint); stroke-width: 1; opacity: 0.8; }
.bn-pore { fill: var(--bg); stroke: var(--muted); stroke-width: 1; }
.bn-nucleolus { fill: var(--muted); opacity: 0.22; }
.bn-chrom { fill: none; stroke: var(--dna); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3; }
.bn-chrom-t { opacity: 0.75; stroke-width: 1.1; }
.bn-thread-hi { fill: none; stroke: var(--holo); stroke-width: 1.4; stroke-linecap: round; }

/* DNA */
.bn-hx-front { fill: none; stroke: var(--dna); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bn-hx-back { fill: none; stroke: var(--dna); stroke-width: 1.5; stroke-linecap: round; opacity: 0.32; }
.bn-hx-rung { fill: none; stroke: var(--holo); stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; }
.bn-hx-glow { fill: none; stroke: var(--holo); stroke-width: 7; stroke-linecap: round; opacity: 0.12; }
.bn-hx-ghost .bn-hx-front, .bn-hx-ghost .bn-hx-back { stroke: var(--faint); stroke-dasharray: 3 4; opacity: 0.9; }
.bn-hx-ghost .bn-hx-rung { stroke: var(--faint); opacity: 0.55; }
.bn-hx-new .bn-hx-front { stroke: var(--holo); stroke-width: 2.6; }
.bn-hx-new .bn-hx-back { stroke: var(--holo); opacity: 0.45; }
.bn-hx-new .bn-hx-rung { stroke: var(--dna); opacity: 0.55; }
.bn-hx-halo { fill: none; stroke: var(--holo); stroke-width: 12; stroke-linecap: round; opacity: 0.16; }
.bn-sel { fill: none; stroke: var(--holo); stroke-width: 1.8; stroke-linecap: round; }
.bn-cut-l { fill: none; stroke: var(--holo); stroke-width: 1.4; stroke-dasharray: 3 3; }
.bn-cut-tip { fill: var(--holo); }
.bn-lig { fill: none; stroke: var(--holo); stroke-width: 2; }
.bn-br { fill: none; stroke: var(--faint); stroke-width: 1.3; stroke-linejoin: round; }
.bn-br-ins { stroke: var(--holo); }
.bn-dlbl-del .bn-lbl { fill: var(--muted); }
.bn-dlbl-ins .bn-lbl { fill: var(--text); }

/* Mice */
.bn-m-body, .bn-m-ear { fill: url(#bn-glass); stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.bn-m-earin { fill: color-mix(in srgb, var(--holo) 16%, #fff); stroke: var(--muted); stroke-width: 1; }
.bn-m-tail { fill: var(--text); }
.bn-m-foot { fill: var(--muted); }
.bn-m-thin { fill: none; stroke: var(--muted); stroke-width: 1.1; stroke-linecap: round; }
.bn-m-whisk { fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; opacity: 0.85; }
.bn-m-eye { fill: var(--text); }
.bn-m-glint { fill: #fff; }
.bn-tum { fill: color-mix(in srgb, var(--tumor) 72%, #fff); stroke: var(--tumor); stroke-width: 1.6; }
.bn-tum-heal { fill: color-mix(in srgb, var(--heal) 60%, #fff); stroke: var(--heal); }
.bn-tum-glow { fill: var(--tumor); opacity: 0.14; }
.bn-ring { fill: none; stroke: var(--heal); stroke-width: 1.6; }
.bn-drop { fill: var(--heal); }
.bn-scan-l { fill: none; stroke: var(--holo); stroke-width: 1.5; }
.bn-scan-g { fill: none; stroke: var(--holo); stroke-width: 12; opacity: 0.18; }

/* Patients */
.bn-pat-body { fill: url(#bn-glass); stroke: var(--heal); stroke-width: 1.6; }
.bn-divider { fill: none; stroke: var(--holo); stroke-width: 1.3; stroke-dasharray: 4 4; }

/* Schematic */
.bn-node-c { fill: rgba(255, 255, 255, 0.7); stroke: var(--holo); stroke-width: 1.4; }
.bn-node-glow { fill: none; stroke: var(--holo); stroke-width: 6; opacity: 0.14; }
.bn-ic-line { fill: rgba(255, 255, 255, 0.6); stroke: var(--muted); stroke-width: 1.3; }
.bn-ic-wall { fill: url(#bn-wall); stroke: var(--muted); stroke-width: 1.2; }
.bn-ic-cell { fill: var(--muted); opacity: 0.5; }
.bn-icon .bn-m-body, .bn-icon .bn-m-ear { stroke-width: 1.4; }
.bn-icon .bn-m-whisk, .bn-icon .bn-m-thin { stroke-width: 0.9; }
.bn-pat-ic .bn-pat-body { stroke-width: 1.4; }
.bn-s-num { font: 600 12px/1 var(--font-display); letter-spacing: 0.3em; fill: var(--holo); }
.bn-s-title { font: 700 18px/1 var(--font-display); letter-spacing: 0.24em; fill: var(--text); }
.bn-s-sub { font: 500 15px/1 var(--font-display); letter-spacing: 0.06em; fill: var(--muted); }
[data-mode="short"] .bn-s-title { font-size: 14px; }
[data-mode="short"] .bn-s-sub { font-size: 12px; }
[data-mode="tall"] .bn-s-title { font-size: 15px; }
[data-mode="tall"] .bn-s-sub { font-size: 12.5px; }
.bn-arr { color: var(--holo); }
.bn-arr path:first-child { stroke-width: 1.6; }

/* ---------- Reduced motion: the stage shows the final workflow; the beats are listed under it ---------- */
.bn-summary { display: none; }
@media (prefers-reduced-motion: reduce) {
  #bench.bn { padding-bottom: clamp(48px, 8vh, 96px); }
  .bn-summary { display: block; margin-top: clamp(28px, 5vh, 56px); }
  .bn-summary ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .bn-summary > ol > li {
    padding: 20px 22px; border-radius: var(--radius); background: var(--glass);
    border: 1px solid var(--line); border-left: 3px solid var(--holo);
  }
  .bn-summary > ol > li:last-child { border-left-color: var(--heal); }
  .bn-summary b { display: block; font: 700 15px/1.2 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; }
  .bn-summary span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
  .bn-summary em { display: block; margin-top: 14px; font-style: normal; font-size: 15px; }
  .bn-summary ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
  .bn-summary ul li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
  .bn-summary ul li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 5px; background: var(--heal);
  }
  .bn-summary ul li::after {
    content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
}

/* Phones: draw on into the stage's bottom extension (base.css, --stage-ext) */
@media (pointer: coarse) { .bn-svg { overflow: visible; } }
