/* ─────────────────────────────────────────────────
   Whelix shared custom CSS
   Used alongside Tailwind via cdn + tokens.js
   ───────────────────────────────────────────────── */

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-feature-settings: "ss01", "cv11", "cv02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Logo: invert for dark backgrounds */
.logo-invert { filter: invert(1) brightness(2); }

/* Real brand gradient (from bg01.png — yellow-lime → white → sky-blue) */
.brand-gradient {
  background:
    radial-gradient(120% 80% at 0% 100%, #E2F895 0%, rgba(226,248,149,0) 55%),
    radial-gradient(110% 80% at 100% 10%, #9CC1F4 0%, rgba(156,193,244,0) 50%),
    #FAFAF7;
}
.brand-gradient-soft {
  background:
    radial-gradient(100% 70% at 0% 100%, rgba(226,248,149,.55) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 0%, rgba(156,193,244,.45) 0%, transparent 55%),
    #FAFAF7;
}

/* Partner logo row — consistent greyscale neutralization */
.partner-logo {
  filter: grayscale(1) brightness(.35) contrast(1.2);
  opacity: .7;
  transition: opacity .2s, filter .2s;
}
.partner-logo:hover { filter: none; opacity: 1; }

/* Sticky bottom CTA bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  transform: translateY(120%);
  transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }

/* Custom brand cursor — auto-inverts against any background via mix-blend-mode */
@media (hover: hover) and (pointer: fine) {
  body.brand-cursor,
  body.brand-cursor a,
  body.brand-cursor button,
  body.brand-cursor input,
  body.brand-cursor textarea,
  body.brand-cursor select,
  body.brand-cursor summary,
  body.brand-cursor label,
  body.brand-cursor [role="button"] { cursor: none; }
}
.brand-cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: width .18s ease, height .18s ease, border-width .18s ease, background-color .18s ease, opacity .12s ease;
  will-change: transform;
}
.brand-cursor__dot.is-visible { opacity: 1; }
.brand-cursor__dot.is-hover {
  width: 32px; height: 32px;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.brand-cursor__dot.is-text {
  width: 3px; height: 22px;
  border-radius: 2px;
  border-width: 0;
  background: #fff;
}
@media (hover: none), (pointer: coarse) {
  .brand-cursor__dot { display: none; }
}

/* ─────────────────────────────────────────────────
   Interactive Willy chat (homepage · 4-pillars · Planning)
   Replaces the static willy-chat.png with a live chat sim.
   ───────────────────────────────────────────────── */

.willy {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E5E3DD;
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(226,248,149,.55) 0%, transparent 60%),
    radial-gradient(110% 80% at 100% 0%, rgba(156,193,244,.4) 0%, transparent 55%),
    #FFFFFF;
  display: flex;
  flex-direction: column;
  height: 520px;
  font-family: "Poppins", system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(10,10,10,.03), 0 14px 36px -18px rgba(10,10,10,.18);
}

.willy__header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(10,10,10,.06);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.willy__header .logo { width: 22px; height: 22px; }
.willy__header .status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #6F6C66;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 400;
}
.willy__header .status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: #10B981;
  animation: pulseDot 2s ease-in-out infinite;
}

.willy__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.willy__messages::-webkit-scrollbar { width: 6px; }
.willy__messages::-webkit-scrollbar-thumb { background: rgba(10,10,10,.15); border-radius: 999px; }

/* Message rows — left for Willy, right for user */
.willy__row {
  display: flex;
  animation: willyFadeIn .3s cubic-bezier(.16,1,.3,1);
}
.willy__row--ai   { justify-content: flex-start; }
.willy__row--user { justify-content: flex-end; }
@keyframes willyFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.willy__bubble {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.willy__row--ai .willy__bubble {
  background: #FFFFFF;
  border: 1px solid #E5E3DD;
  border-radius: 16px 16px 16px 4px;
  color: #0A0A0A;
}
.willy__row--user .willy__bubble {
  background: #9CC1F4;
  color: #0A0A0A;
  border-radius: 16px 16px 4px 16px;
}

/* Typing indicator (3 dots) */
.willy__typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.willy__typing span {
  width: 6px; height: 6px; border-radius: 999px;
  background: #6F6C66;
  animation: willyDot 1.4s ease-in-out infinite;
}
.willy__typing span:nth-child(2) { animation-delay: .2s; }
.willy__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes willyDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .3; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

/* ── Rich inline cards ── */
.willy__card {
  width: 100%;
  max-width: 92%;
  background: #FFFFFF;
  border: 1px solid #E5E3DD;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  box-shadow: 0 1px 0 rgba(10,10,10,.03), 0 6px 14px -8px rgba(10,10,10,.15);
  animation: willyCardIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes willyCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.willy__card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6F6C66;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F2F0EB;
}
.willy__card-title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #0A0A0A;
  margin-bottom: 10px;
}
.willy__card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #F2F0EB;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #6F6C66;
  display: flex; justify-content: space-between; gap: 10px;
}

/* Protocol step list */
.willy__steps { display: flex; flex-direction: column; gap: 6px; }
.willy__step {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12.5px;
}
.willy__step-n {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #E2F895;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #0A0A0A;
}
.willy__step-t { flex: 1; line-height: 1.4; }

/* Confluency grid */
.willy__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px;
}
.willy__grid-row {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.willy__grid-row .label { color: #6F6C66; width: 28px; flex-shrink: 0; }
.willy__grid-row .bar {
  flex: 1; height: 6px; background: #F2F0EB; border-radius: 999px; overflow: hidden;
}
.willy__grid-row .bar-fill {
  display: block;
  height: 100%; width: 0%;
  background: #E2F895;
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.willy__grid-row.warn .bar-fill { background: #FFB547; }
.willy__grid-row.crit .bar-fill { background: #E56B4E; }
.willy__grid-row .pct { width: 32px; text-align: right; font-weight: 600; color: #0A0A0A; }

/* Incubator slot grid */
.willy__incu {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.willy__incu-slot {
  aspect-ratio: 1;
  border: 1.5px dashed #D8D5CE;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  padding: 6px;
  font-family: "JetBrains Mono", monospace;
  color: #6F6C66;
  background: #FAFAF7;
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.willy__incu-slot:hover { transform: scale(1.03); box-shadow: 0 2px 8px rgba(10,10,10,.08); }
.willy__incu-slot .willy__incu-n {
  position: absolute;
  top: 4px; left: 6px;
  font-size: 8px;
  font-weight: 600;
  opacity: .5;
  letter-spacing: .02em;
  line-height: 1;
}
.willy__incu-slot .willy__incu-c {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.willy__incu-slot .willy__incu-p {
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1;
  opacity: .7;
  letter-spacing: .02em;
}
.willy__incu-slot.on {
  background: linear-gradient(180deg, #E2F895, #C7E055);
  border: 1.5px solid #0A0A0A;
  color: #0A0A0A;
}
.willy__incu-slot.on::after {
  content: ""; position: absolute;
  top: 4px; right: 4px;
  width: 4px; height: 4px; border-radius: 999px;
  background: #10B981; animation: pulseDot 1.8s ease-in-out infinite;
}

/* Project list */
.willy__proj { display: flex; flex-direction: column; gap: 6px; }
.willy__proj-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid #F2F0EB;
  border-radius: 8px;
  font-size: 12px;
}
.willy__proj-row .dot {
  width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0;
}
.willy__proj-row.active .dot { background: #10B981; animation: pulseDot 2s ease-in-out infinite; }
.willy__proj-row.paused .dot { background: #FFB547; }
.willy__proj-row.queued .dot { background: #6F6C66; }
.willy__proj-row .name { flex: 1; font-weight: 500; }
.willy__proj-row .frac {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #6F6C66;
}

/* Action buttons inside chat */
.willy__actions { display: flex; gap: 8px; margin-top: 4px; }
.willy__btn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #E5E3DD;
  background: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.willy__btn:hover { border-color: #0A0A0A; }
.willy__btn--primary {
  background: #0A0A0A; color: #fff; border-color: #0A0A0A;
}
.willy__btn--primary:hover { background: #2E2E2E; }

/* Chip bar (above input) — preset prompts the user can click */
.willy__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px 8px;
  border-top: 1px solid rgba(10,10,10,.06);
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.willy__chip {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #E5E3DD;
  background: #fff;
  color: #2E2E2E;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.willy__chip:hover:not(:disabled) {
  border-color: #0A0A0A;
  background: #E2F895;
}
.willy__chip:disabled {
  opacity: .45;
  cursor: default;
}
.willy__chip.is-active {
  background: #0A0A0A; color: #E2F895; border-color: #0A0A0A;
}

/* Input row */
.willy__input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.willy__input input {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #E5E3DD;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.willy__input input:focus { border-color: #0A0A0A; }
.willy__input .mic {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: #9CC1F4;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.willy__input .mic:hover { background: #7AA9E8; transform: scale(1.05); }

/* ─────────────────────────────────────────────────
   Live CV monitor (homepage · 4-pillars · Monitoring)
   Two-canvas animated cell-detection visualization.
   ───────────────────────────────────────────────── */

.cv-monitor {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #9E968A;
  border-top: 1px solid #E5E3DD;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  isolation: isolate;
}

.cv-monitor__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.cv-monitor__canvas--bg { z-index: 1; }
.cv-monitor__canvas--fx { z-index: 2; pointer-events: none; }

/* Top bar: status + mode tabs */
.cv-monitor__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(10,10,10,.80), rgba(10,10,10,0));
  color: #fff;
  font-size: 10.5px;
  pointer-events: none;
}
.cv-monitor__status {
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .08em; text-transform: uppercase;
}
.cv-monitor__status .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #E2F895;
  animation: pulseDot 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(226,248,149,.6);
}
.cv-monitor__modes {
  display: flex; gap: 4px;
  pointer-events: auto;
}
.cv-mode {
  padding: 4px 9px;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.cv-mode:hover { background: rgba(255,255,255,.22); color: #fff; }
.cv-mode.is-active {
  background: #E2F895;
  color: #0A0A0A;
  border-color: #E2F895;
  box-shadow: 0 0 10px rgba(226,248,149,.45);
}

/* Phase indicator */
.cv-monitor__phase {
  position: absolute; top: 46px; left: 12px; z-index: 5;
  padding: 4px 10px 4px 8px;
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(4px);
  color: #E2F895;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.cv-monitor__phase::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: #E2F895;
  animation: pulseDot 1.2s ease-in-out infinite;
}

/* Hover tooltip for a specific cell */
.cv-monitor__tooltip {
  position: absolute; z-index: 10;
  pointer-events: none;
  background: #0A0A0A;
  color: #fff;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  white-space: nowrap;
  transform: translate(8px, -50%);
  opacity: 0;
  transition: opacity .15s;
}
.cv-monitor__tooltip.is-shown { opacity: 1; }
.cv-monitor__tooltip .id { color: #E2F895; font-weight: 600; }
.cv-monitor__tooltip .sep { color: rgba(255,255,255,.35); margin: 0 4px; }

/* Metrics bar (bottom) */
.cv-monitor__metrics {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(10,10,10,.92) 40%, rgba(10,10,10,.55) 85%, rgba(10,10,10,0));
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  gap: 14px;
  align-items: end;
  pointer-events: none;
}
.cv-metric { display: flex; flex-direction: column; gap: 2px; }
.cv-metric .k {
  font-size: 8.5px; color: rgba(255,255,255,.58);
  letter-spacing: .1em; text-transform: uppercase;
}
.cv-metric .v {
  font-family: "Figtree", sans-serif;
  font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cv-metric .v.lime  { color: #E2F895; }
.cv-metric .v.amber { color: #FFB547; }
.cv-metric .v.red   { color: #E56B4E; }

.cv-bar-wrap { grid-column: 1 / -1; margin-top: 2px; }
.cv-bar {
  position: relative;
  height: 5px; background: rgba(255,255,255,.15);
  border-radius: 999px; overflow: hidden;
}
.cv-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #E2F895, #C7E055);
  transition: width .4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 8px rgba(226,248,149,.5);
}
.cv-bar-thresh {
  position: absolute; top: -2px; bottom: -2px;
  left: 80%;
  width: 1px;
  background: rgba(255,255,255,.45);
}
.cv-bar-thresh::before {
  content: "80%"; position: absolute; top: -12px; left: 2px;
  font-size: 8px; color: rgba(255,255,255,.55);
}

@media (prefers-reduced-motion: reduce) {
  .cv-monitor__status .dot,
  .cv-monitor__phase::before { animation: none; }
}

/* ─────────────────────────────────────────────────
   Digital Twin — isometric workcell simulator
   (Pillar 02 · Simulating with a Digital Twin)
   ───────────────────────────────────────────────── */

.dtwin {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #0F1419;           /* workshop dark */
  border-top: 1px solid #E5E3DD;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  isolation: isolate;
  color: #fff;
  user-select: none;
}

.dtwin__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Top bar: status + mode tabs */
.dtwin__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(10,10,10,.75), rgba(10,10,10,0));
  font-size: 10.5px;
  pointer-events: none;
}
.dtwin__status {
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .08em; text-transform: uppercase;
}
.dtwin__status .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #E2F895;
  animation: pulseDot 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(226,248,149,.6);
}
.dtwin__modes {
  display: flex; gap: 4px;
  pointer-events: auto;
}
.dtwin-mode {
  padding: 4px 9px;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.dtwin-mode:hover { background: rgba(255,255,255,.22); color: #fff; }
.dtwin-mode.is-active {
  background: #E2F895; color: #0A0A0A; border-color: #E2F895;
  box-shadow: 0 0 10px rgba(226,248,149,.4);
}

/* Step indicator (top-left under status) */
.dtwin__step {
  position: absolute;
  top: 42px; left: 12px;
  right: 12px;
  z-index: 5;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(4px);
  color: #E2F895;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(226,248,149,.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}
@media (min-width: 640px) {
  .dtwin__step {
    right: auto;
    white-space: nowrap;
  }
}
.dtwin__step .sep { color: rgba(255,255,255,.35); margin: 0 6px; }
.dtwin__step .txt { color: #fff; text-transform: none; letter-spacing: 0; font-family: "Poppins", sans-serif; }

/* Bottom control bar */
.dtwin__ctrls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 10px 12px 12px;
  background: linear-gradient(to top, rgba(10,10,10,.95) 40%, rgba(10,10,10,.6) 85%, rgba(10,10,10,0));
  display: flex; align-items: center; gap: 8px;
}
.dtwin-btn {
  width: 28px; height: 28px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dtwin-btn:hover:not(:disabled) { background: rgba(255,255,255,.22); border-color: #fff; }
.dtwin-btn:disabled { opacity: .35; cursor: default; }
.dtwin-btn--primary {
  background: #E2F895; color: #0A0A0A; border-color: #E2F895;
  box-shadow: 0 0 10px rgba(226,248,149,.35);
}
.dtwin-btn--primary:hover:not(:disabled) { background: #C7E055; border-color: #C7E055; }

.dtwin__progress {
  flex: 1;
  position: relative;
  height: 28px;
  padding: 11px 0;
  cursor: pointer;
}
.dtwin__progress-track {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
}
.dtwin__progress-bar {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #E2F895, #C7E055);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(226,248,149,.55);
}
.dtwin__progress-thumb {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: #fff;
  border: 2px solid #E2F895;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(226,248,149,.2), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .1s;
}
.dtwin__progress:hover .dtwin__progress-thumb { transform: translate(-50%, -50%) scale(1.2); }
.dtwin__progress-marks {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.dtwin__progress-mark {
  position: absolute;
  top: -3px;
  width: 2px; height: 10px;
  background: rgba(255,255,255,.25);
  border-radius: 1px;
}

.dtwin__speed {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: .04em;
}
.dtwin__speed:focus { outline: none; border-color: #E2F895; }
.dtwin__speed option { background: #0F1419; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .dtwin__status .dot { animation: none; }
}

/* ─── Light-theme modifier for the digital twin ─── */
.dtwin--light {
  background: #FAFAF7;            /* paper */
  color: #0A0A0A;
}
.dtwin--light .dtwin__top {
  background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,0));
  color: #2E2E2E;
}
.dtwin--light .dtwin__status { color: #2E2E2E; }
.dtwin--light .dtwin__status .dot {
  background: #C7E055;
  box-shadow: 0 0 6px rgba(199,224,85,.5);
}
.dtwin--light .dtwin-mode {
  background: #FFFFFF;
  color: #2E2E2E;
  border: 1px solid #E5E3DD;
}
.dtwin--light .dtwin-mode:hover {
  background: #F2F0EB;
  color: #0A0A0A;
  border-color: #C7C4BC;
}
.dtwin--light .dtwin-mode.is-active {
  background: #E2F895;
  color: #0A0A0A;
  border-color: #C7E055;
  box-shadow: none;
}
.dtwin--light .dtwin__step {
  background: rgba(255,255,255,.92);
  border: 1px solid #E5E3DD;
  color: #0A0A0A;
  backdrop-filter: blur(4px);
}
.dtwin--light .dtwin__step .sep { color: rgba(10,10,10,.35); }
.dtwin--light .dtwin__step .txt { color: #0A0A0A; }
.dtwin--light .dtwin__ctrls {
  background: linear-gradient(to top, rgba(255,255,255,.97) 40%, rgba(255,255,255,.7) 85%, rgba(255,255,255,0));
  border-top: 1px solid #EEEBE3;
}
.dtwin--light .dtwin-btn {
  background: #FFFFFF;
  color: #0A0A0A;
  border: 1px solid #E5E3DD;
}
.dtwin--light .dtwin-btn:hover:not(:disabled) {
  background: #F2F0EB;
  border-color: #0A0A0A;
}
.dtwin--light .dtwin-btn--primary {
  background: #E2F895;
  color: #0A0A0A;
  border-color: #C7E055;
  box-shadow: none;
}
.dtwin--light .dtwin-btn--primary:hover:not(:disabled) {
  background: #C7E055;
  border-color: #0A0A0A;
}
.dtwin--light .dtwin__progress-track { background: rgba(10,10,10,.10); }
.dtwin--light .dtwin__progress-bar   { box-shadow: 0 0 6px rgba(199,224,85,.45); }
.dtwin--light .dtwin__progress-thumb {
  background: #FFFFFF;
  border: 2px solid #C7E055;
  box-shadow: 0 0 0 3px rgba(226,248,149,.4), 0 2px 6px rgba(10,10,10,.18);
}
.dtwin--light .dtwin__progress-mark { background: rgba(10,10,10,.18); }
.dtwin--light .dtwin__speed {
  background: #FFFFFF;
  color: #0A0A0A;
  border: 1px solid #E5E3DD;
}
.dtwin--light .dtwin__speed:focus { border-color: #0A0A0A; }
.dtwin--light .dtwin__speed option { background: #FFFFFF; color: #0A0A0A; }

/* ─────────────────────────────────────────────────
   Scheduling section — project-based week gantt
   ───────────────────────────────────────────────── */

.sched {
  background: #fff;
  border: 1px solid #E5E3DD;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10,10,10,.03), 0 14px 36px -18px rgba(10,10,10,.15);
}

.sched__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #F2F0EB;
  background: #FAFAF7;
  flex-wrap: wrap;
}
.sched__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sched__tab {
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: #6F6C66;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sched__tab:hover { color: #0A0A0A; border-color: #E5E3DD; }
.sched__tab.is-active { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }

.sched__actions { display: flex; gap: 8px; }
.sched__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid #E5E3DD;
  background: #fff; color: #0A0A0A;
}
.sched__btn:hover { border-color: #0A0A0A; }
.sched__btn--primary { background: #E2F895; border-color: #0A0A0A; }
.sched__btn--primary:hover { background: #C7E055; }

/* Single-lane timeline — workcell runs one protocol at a time
   regardless of project. Hour-based axis instead of day columns. */
.sched__tl {
  position: relative;
  padding: 18px;
}

.sched__axis {
  position: relative;
  display: flex;
  padding-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6F6C66;
  letter-spacing: .08em;
}
.sched__axis-tick {
  flex: 1;
  position: relative;
  padding-left: 8px;
}
.sched__axis-tick::before {
  content: "";
  position: absolute;
  left: 0; top: 100%;
  width: 1px; height: 6px;
  background: #6F6C66;
  opacity: .35;
}
.sched__axis-tick:first-child::before { background: #0A0A0A; opacity: .65; }

.sched__lane {
  position: relative;
  height: 64px;
  border-top: 1px solid #F2F0EB;
  border-bottom: 1px solid #F2F0EB;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc((100% / 8) - 1px),
    #F2F0EB calc((100% / 8) - 1px),
    #F2F0EB calc(100% / 8)
  );
  overflow: visible;
}
.sched__lane-label {
  position: absolute;
  left: -1px; top: -18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: #0A0A0A;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  background: #fff;
  padding: 2px 8px;
  border: 1px solid #0A0A0A;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sched__lane-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #E2F895;
  border: 1px solid #0A0A0A;
}

.sched__bar {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: 8px;
  padding: 8px 10px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  overflow: hidden;
  color: #0A0A0A;
  background: #F2F0EB;
  border: 1px solid #E5E3DD;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .2s, filter .2s;
  white-space: nowrap;
  box-sizing: border-box;
}
.sched__bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(10,10,10,.35);
  z-index: 3;
}
.sched__bar-proj {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched__bar-name {
  font-weight: 500;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched__bar .chip {
  position: absolute;
  top: 5px; right: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(10,10,10,.1);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Bar states (background + border) */
.sched__bar--complete  { background: #F2F0EB; color: #6F6C66; border-color: #E5E3DD; }
.sched__bar--complete .sched__bar-name { text-decoration: line-through; text-decoration-color: rgba(111,108,102,0.45); }
.sched__bar--running   { background: #DCE9FB; border-color: #9CC1F4; }
.sched__bar--running::before {
  /* animated stripe */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #9CC1F4 0%, #6F9BD8 50%, #9CC1F4 100%);
  background-size: 200% 100%;
  animation: schedRunStripe 2.4s linear infinite;
}
@keyframes schedRunStripe {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.sched__bar--scheduled { background: #fff; border-color: #E5E3DD; }
.sched__bar--new       { background: #E2F895; border-color: #0A0A0A; }
.sched__bar--new .chip { background: #0A0A0A; color: #E2F895; }
.sched__bar--iterate   { background: #FFF3DC; border-color: #FFB547; }
.sched__bar--iterate .chip { background: #FFB547; color: #0A0A0A; }

/* Left border indicates project */
.sched__bar[data-project="aav"]  { border-left: 4px solid #9CC1F4; }
.sched__bar[data-project="ipsc"] { border-left: 4px solid #FFB547; }
.sched__bar[data-project="cho"]  { border-left: 4px solid #E2F895; }

/* Dimmed state when filter is active */
.sched__bar.is-dim {
  opacity: .22;
  filter: grayscale(.6);
  pointer-events: none;
}

/* NOW line — hour-based */
.sched__now {
  position: absolute;
  top: -12px; bottom: -12px;
  width: 2px;
  background: #0A0A0A;
  pointer-events: none;
  z-index: 4;
  transition: left .4s linear;
}
.sched__now::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #E2F895;
  border: 2px solid #0A0A0A;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.sched__now::after {
  content: "NOW";
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #0A0A0A;
}

/* Queue list — "Up next" */
.sched__queue {
  margin-top: 24px;
  padding: 16px 0 0;
  border-top: 1px solid #F2F0EB;
}
.sched__queue-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0A0A0A;
  font-weight: 600;
  margin-bottom: 12px;
}
.sched__queue-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sched__queue-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: background .15s;
}
.sched__queue-row:hover { background: #FAFAF7; }
.sched__queue-row .time {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #0A0A0A;
}
.sched__queue-row .proj {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6F6C66;
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
}
.sched__queue-row[data-project="aav"]  .proj { background: #DCE9FB; color: #0A0A0A; }
.sched__queue-row[data-project="ipsc"] .proj { background: #FFF3DC; color: #0A0A0A; }
.sched__queue-row[data-project="cho"]  .proj { background: #E2F895; color: #0A0A0A; }
.sched__queue-row .name { font-weight: 500; color: #0A0A0A; }
.sched__queue-row .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sched__queue-row .tag--new      { background: #E2F895; color: #0A0A0A; border: 1px solid #0A0A0A; }
.sched__queue-row .tag--iterate  { background: #FFF3DC; color: #0A0A0A; border: 1px solid #FFB547; }
.sched__queue-row .tag--scheduled { background: transparent; color: #6F6C66; border: 1px solid #E5E3DD; }

.sched__legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid #F2F0EB;
  background: #FAFAF7;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #6F6C66;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sched__legend span { display: inline-flex; align-items: center; gap: 5px; }
.sched__legend .swatch {
  width: 12px; height: 12px; border-radius: 3px;
  border: 1px solid #E5E3DD;
}
.sched__legend .sw-new      { background: #E2F895; border-color: #0A0A0A; }
.sched__legend .sw-iterate  { background: #FFF3DC; border-color: #FFB547; }
.sched__legend .sw-running  { background: #DCE9FB; border-color: #9CC1F4; }
.sched__legend .sw-complete { background: #F2F0EB; }
.sched__legend .sw-proj { width: 4px; height: 14px; border-radius: 1px; border: 0; margin-right: 2px; }
.sched__legend .sw-aav  { background: #9CC1F4; }
.sched__legend .sw-ipsc { background: #FFB547; }
.sched__legend .sw-cho  { background: #E2F895; }

@media (max-width: 700px) {
  .sched__bar-proj { font-size: 8.5px; }
  .sched__bar-name { font-size: 10.5px; }
  .sched__axis-tick { font-size: 9px; padding-left: 4px; }
  .sched__queue-row { grid-template-columns: 55px 70px 1fr; gap: 10px; }
  .sched__queue-row .tag { grid-column: 3; justify-self: end; }
}

/* ─────────────────────────────────────────────────
   Control Levels section — Auto / Guided / Manual
   ───────────────────────────────────────────────── */

.control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .control { grid-template-columns: 360px 1fr; gap: 20px; }
}

.control__modes {
  display: flex; flex-direction: column; gap: 10px;
}
.control-mode {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #E5E3DD;
  background: #fff;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.control-mode:hover { border-color: #0A0A0A; }
.control-mode.is-active {
  background: #0A0A0A; color: #fff; border-color: #0A0A0A;
  box-shadow: 0 8px 24px -12px rgba(10,10,10,.4);
}
.control-mode .marker {
  width: 28px; height: 28px; border-radius: 999px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F2F0EB; color: #0A0A0A;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  transition: background .2s;
}
.control-mode.is-active .marker { background: #E2F895; color: #0A0A0A; }
.control-mode .info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.control-mode .title {
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.control-mode .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(10,10,10,.08);
}
.control-mode.is-active .tag { background: rgba(226,248,149,.3); color: #E2F895; }
.control-mode .blurb {
  font-size: 12.5px;
  opacity: .78;
  line-height: 1.45;
}

/* Panel: protocol step list */
.control__panel {
  border: 1px solid #E5E3DD;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.control__panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #F2F0EB;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  background: #FAFAF7;
  flex-wrap: wrap;
}
.control__panel-title {
  display: flex; flex-direction: column; gap: 2px;
}
.control__panel-title .t { font-weight: 600; font-size: 13px; }
.control__panel-title .s {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #6F6C66;
  letter-spacing: .06em; text-transform: uppercase;
}
.control__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
}
.control__badge--auto    { background: #E2F895; color: #0A0A0A; }
.control__badge--guided  { background: #FFF3DC; color: #0A0A0A; border-color: #FFB547; }
.control__badge--manual  { background: #DCE9FB; color: #0A0A0A; border-color: #9CC1F4; }
.control__badge .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  opacity: .8;
  animation: pulseDot 1.8s ease-in-out infinite;
}

.control__steps {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 6px 0;
  overflow-y: auto;
}
.control__step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  transition: background .15s;
  position: relative;
}
.control__step + .control__step { border-top: 1px solid #F2F0EB; }
.control__step-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #6F6C66;
}
.control__step-t {
  font-size: 13px;
}
.control__step-actor {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Step states */
.control__step[data-state=done]     .control__step-n { color: #10B981; }
.control__step[data-state=done]     .control__step-n::before { content: "✓ "; color: #10B981; }
.control__step[data-state=done]     .control__step-t { color: #0A0A0A; }
.control__step[data-state=running]  { background: rgba(226,248,149,.18); }
.control__step[data-state=running]  .control__step-n::before { content: "● "; color: #0A0A0A; }
.control__step[data-state=running]  .control__step-actor { background: #E2F895; color: #0A0A0A; }
.control__step[data-state=awaiting] { background: rgba(255,181,71,.14); }
.control__step[data-state=awaiting] .control__step-n::before { content: "◉ "; color: #FFB547; }
.control__step[data-state=awaiting] .control__step-actor { background: #FFB547; color: #0A0A0A; }
.control__step[data-state=user]     { background: rgba(156,193,244,.14); }
.control__step[data-state=user]     .control__step-n::before { content: "👤"; font-size: 10px; }
.control__step[data-state=user]     .control__step-actor { background: #9CC1F4; color: #0A0A0A; }
.control__step[data-state=queued]   .control__step-n::before { content: "○ "; color: #B5B0A5; }
.control__step[data-state=queued]   .control__step-t { color: #6F6C66; }
.control__step[data-state=queued]   .control__step-actor { background: #F2F0EB; color: #6F6C66; }

.control__step-actions {
  grid-column: 1 / -1;
  padding: 6px 0 2px 44px;
  display: flex; gap: 6px;
}
.control__step-btn {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #0A0A0A;
  border: 1px solid #E5E3DD;
  cursor: pointer;
  transition: all .15s;
}
.control__step-btn:hover { border-color: #0A0A0A; }
.control__step-btn--primary {
  background: #0A0A0A; color: #fff; border-color: #0A0A0A;
}
.control__step-btn--primary:hover { background: #2E2E2E; }
.control__step-btn--lime {
  background: #E2F895; border-color: #0A0A0A;
}
.control__step-btn--lime:hover { background: #C7E055; }

.control__footer {
  padding: 10px 16px;
  border-top: 1px solid #F2F0EB;
  background: #FAFAF7;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #6F6C66;
  letter-spacing: .04em;
}

@media (prefers-reduced-motion: reduce) {
  .sched__now::before,
  .control__badge .dot { animation: none; }
  .sched__bar--running .progress { animation: none; width: 65%; }
}

/* ─────────────────────────────────────────────────
   Auto-mode pipeline (Scientist in the loop)
   horizontal stepper + single active panel
   draft → validate → simulate → schedule
   ───────────────────────────────────────────────── */

.pipe { display: flex; flex-direction: column; height: 100%; }

/* Top: horizontal 4-step stepper */
.pipe__stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #F2F0EB;
}
.pipe__step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6F6C66;
  white-space: nowrap;
  transition: color .2s;
}
.pipe__step.is-done   { color: #0A0A0A; }
.pipe__step.is-active { color: #0A0A0A; font-weight: 600; }
.pipe__step-num {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #F2F0EB;
  border: 1.5px solid #E5E3DD;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #6F6C66;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, color .25s;
}
.pipe__step.is-done .pipe__step-num {
  background: #E2F895;
  border-color: #0A0A0A;
  color: #0A0A0A;
}
.pipe__step.is-active .pipe__step-num {
  background: #FFFFFF;
  border-color: #0A0A0A;
  color: #0A0A0A;
  animation: pipePulse 2.4s ease-in-out infinite;
}
@keyframes pipePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,248,149,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(226,248,149,0); }
}
.pipe__connect {
  flex: 1;
  height: 2px;
  min-width: 18px;
  background: #E5E3DD;
  border-radius: 2px;
  margin: 0 10px;
  transition: background .25s;
}
.pipe__connect.is-on { background: #C7E055; }

@media (max-width: 600px) {
  .pipe__step-label { display: none; }
  .pipe__connect { margin: 0 6px; }
  .pipe__stepper { padding: 14px 14px 12px; }
}

/* Active panel — content swaps per stage */
.pipe__panel {
  flex: 1;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  animation: pipeIn .7s cubic-bezier(.16,1,.3,1);
}
@media (max-width: 600px) {
  .pipe__panel { min-height: 360px; }
}
@keyframes pipeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pipe__head {
  display: flex; align-items: flex-start; gap: 14px;
}
.pipe__icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #E2F895;
  border: 1px solid #C7E055;
  border-radius: 12px;
  flex-shrink: 0;
  color: #0A0A0A;
}
.pipe__icon svg { width: 22px; height: 22px; }
.pipe__head-text { flex: 1; min-width: 0; }
.pipe__h {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  line-height: 1.25;
}
.pipe__sub {
  margin-top: 4px;
  font-size: 13px;
  color: #6F6C66;
  line-height: 1.5;
}

.pipe__content {
  background: #FAFAF7;
  border: 1px solid #E5E3DD;
  border-radius: 12px;
  padding: 16px 18px;
}

/* Action row — sits below content for Guided mode */
.pipe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pipe__btn {
  padding: 9px 16px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #0A0A0A;
  background: #FFFFFF;
  border: 1px solid #E5E3DD;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pipe__btn:hover:not(:disabled) { border-color: #0A0A0A; }
.pipe__btn:disabled { opacity: .55; cursor: default; }
.pipe__btn--primary {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}
.pipe__btn--primary:hover:not(:disabled) {
  background: #2E2E2E;
  border-color: #0A0A0A;
}
.pipe__btn--ghost {
  background: transparent;
  color: #6F6C66;
}
.pipe__btn--ghost:hover:not(:disabled) {
  color: #0A0A0A;
  background: #FAFAF7;
}

/* — Stage 1 · drafted — metadata grid — */
.pipe__draft {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  margin: 0;
}
.pipe__draft dt {
  color: #6F6C66;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10.5px;
  align-self: center;
}
.pipe__draft dd { color: #0A0A0A; margin: 0; }

/* — Stage 2 · validating — staggered checks — */
.pipe__checks { display: flex; flex-direction: column; gap: 8px; }
.pipe__check {
  display: flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: #2E2E2E;
  opacity: 0;
  animation: pipeCheckIn .5s ease-out forwards;
}
.pipe__check:nth-child(1) { animation-delay: .55s; }
.pipe__check:nth-child(2) { animation-delay: 1.50s; }
.pipe__check:nth-child(3) { animation-delay: 2.50s; }
.pipe__check:nth-child(4) { animation-delay: 3.50s; }
@keyframes pipeCheckIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.pipe__check-mark {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #C7E055;
  color: #0A0A0A;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

/* — Stage 3 · simulating — twin thumb + bar — */
.pipe__sim {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}
@media (max-width: 540px) {
  .pipe__sim { grid-template-columns: 1fr; }
  .pipe__sim-thumb { height: 96px; }
}
.pipe__sim-thumb {
  height: 92px;
  border-radius: 10px;
  border: 1px solid #E5E3DD;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(226,248,149,.4), transparent 70%),
    linear-gradient(135deg, #FFFFFF 0%, #F2F0EB 100%);
  position: relative;
  overflow: hidden;
}
.pipe__sim-thumb::before {
  content: "";
  position: absolute;
  inset: 22% 18%;
  border: 1.5px dashed rgba(10,10,10,.22);
  border-radius: 6px;
}
.pipe__sim-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: #0A0A0A;
  border: 2px solid #E2F895;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(199,224,85,.7);
  left: 18%;
  top: 70%;
  transform: translate(-50%, -50%);
  animation: pipeSimTrace 5s ease-in-out infinite;
}
@keyframes pipeSimTrace {
  0%   { left: 22%; top: 75%; }
  25%  { left: 35%; top: 30%; }
  50%  { left: 60%; top: 65%; }
  75%  { left: 78%; top: 30%; }
  100% { left: 22%; top: 75%; }
}
.pipe__sim-meta { font-size: 13px; color: #2E2E2E; line-height: 1.5; }
.pipe__sim-bar {
  height: 6px;
  background: rgba(10,10,10,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.pipe__sim-fill {
  height: 100%;
  background: linear-gradient(90deg, #E2F895, #C7E055);
  border-radius: 999px;
  width: 0%;
  animation: pipeSimFill 5s linear infinite;
}
@keyframes pipeSimFill {
  0%        { width: 0%; }
  85%, 100% { width: 100%; }
}
.pipe__mono-meta {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #6F6C66;
  text-transform: uppercase;
}

/* — Stage 4 · ready to schedule — user picks the slot — */
.pipe__sched {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.pipe__sched-prompt {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #0A0A0A;
}
.pipe__sched-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pipe__sched-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #0A0A0A;
  background: #FFFFFF;
  border: 1px solid #E5E3DD;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.pipe__sched-opt:hover { border-color: #0A0A0A; }
.pipe__sched-opt.is-picked {
  background: #E2F895;
  border-color: #C7E055;
  animation: pipeSchedHighlight 2.4s ease-in-out infinite;
}
@keyframes pipeSchedHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,248,149,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(226,248,149,0); }
}
.pipe__sched-opt--now {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}
.pipe__sched-opt--now:hover {
  background: #2E2E2E;
  border-color: #0A0A0A;
}
.pipe__sched-play {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #E2F895;
  color: #0A0A0A;
  font-size: 8px;
  line-height: 1;
}
.pipe__sched-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #1F8A4C;
  box-shadow: 0 0 8px rgba(31,138,76,.5);
}

@media (prefers-reduced-motion: reduce) {
  .pipe__step.is-active .pipe__step-num,
  .pipe__sched-dot { animation: none; }
  .pipe__sim-dot   { animation: none; left: 60%; top: 40%; }
  .pipe__sim-fill  { animation: none; width: 70%; }
  .pipe__check     { animation: none; opacity: 1; }
  .pipe__panel     { animation: none; }
}

/* ─────────────────────────────────────────────────
   Before / After — side-by-side transformation
   ───────────────────────────────────────────────── */

.ba {
  border: 1px solid #0A0A0A;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 30px 60px -28px rgba(10,10,10,.18);
}

.ba__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #0A0A0A;
}
.ba__col {
  padding: 14px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.ba__col--before {
  background: #F2F0EB;
  color: #6F6C66;
}
.ba__col--before::before {
  content: "";
  width: 9px; height: 9px; border-radius: 999px;
  background: #E56B4E;
  opacity: .75;
  flex-shrink: 0;
}
.ba__col--after {
  background: #0A0A0A;
  color: #E2F895;
}
.ba__col--after::before {
  content: "";
  width: 9px; height: 9px; border-radius: 999px;
  background: #E2F895;
  box-shadow: 0 0 10px rgba(226,248,149,.7);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

.ba__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.ba__row + .ba__row { border-top: 1px solid #E5E3DD; }

.ba__cell {
  padding: 26px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ba__cell--before {
  background: #FAFAF7;
  border-right: 1px solid #E5E3DD;
  color: #6F6C66;
}
.ba__cell--after {
  background: #fff;
  color: #0A0A0A;
}

.ba__n {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1;
  padding-top: 4px;
}
.ba__cell--before .ba__n {
  background: #E5E3DD;
  color: #6F6C66;
}
.ba__cell--after .ba__n {
  background: #E2F895;
  color: #0A0A0A;
}

.ba__text {
  font-size: 15.5px;
  line-height: 1.55;
  flex: 1;
}
.ba__cell--before .ba__text {
  color: #6F6C66;
}
.ba__cell--before .ba__text strong {
  color: #0A0A0A;
  text-decoration: line-through;
  text-decoration-color: rgba(229,107,78,0.5);
  text-decoration-thickness: 1.5px;
}
.ba__cell--after .ba__text {
  color: #0A0A0A;
  font-weight: 500;
}
.ba__cell--after .ba__text strong {
  background: linear-gradient(180deg, transparent 62%, #E2F895 62%, #E2F895 92%, transparent 92%);
  padding: 0 .1em;
  font-weight: 600;
}

/* Arrow divider — small circle on the column seam */
.ba__row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 999px;
  background: #0A0A0A url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2F895' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") no-repeat center;
  background-size: 15px;
  border: 3px solid #fff;
  z-index: 2;
  pointer-events: none;
}

/* Stagger-reveal on viewport entry */
.ba__row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.ba.is-in .ba__row { opacity: 1; transform: translateY(0); }
.ba.is-in .ba__row:nth-child(1) { transition-delay: 0s; }
.ba.is-in .ba__row:nth-child(2) { transition-delay: .08s; }
.ba.is-in .ba__row:nth-child(3) { transition-delay: .16s; }
.ba.is-in .ba__row:nth-child(4) { transition-delay: .24s; }

/* Hover: the "after" cell of a row lifts slightly */
.ba__row .ba__cell--after { transition: background .2s; }
.ba__row:hover .ba__cell--after { background: #FBFFE8; }

/* Mobile — stack rows */
@media (max-width: 720px) {
  .ba__head { grid-template-columns: 1fr; }
  .ba__head .ba__col + .ba__col { border-top: 1px solid #0A0A0A; }
  .ba__row { grid-template-columns: 1fr; }
  .ba__row::before { display: none; }
  .ba__cell--before {
    border-right: none;
    border-bottom: 1px solid #E5E3DD;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba__col--after::before { animation: none; }
  .ba__row { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────
   For-your-role — stakeholder cards
   ───────────────────────────────────────────────── */

.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
}

.role {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 22px;
  background: #fff;
  border: 1px solid #E5E3DD;
  border-radius: 18px;
  transition: transform .25s cubic-bezier(.16,1,.3,1),
              box-shadow .25s cubic-bezier(.16,1,.3,1),
              border-color .25s;
  overflow: hidden;
}
.role:hover {
  transform: translateY(-3px);
  border-color: #0A0A0A;
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 24px 48px -24px rgba(10,10,10,.22);
}
.role::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E2F895 0%, #9CC1F4 100%);
  opacity: 0;
  transition: opacity .2s;
}
.role:hover::before { opacity: 1; }

.role__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #6F6C66;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: #F2F0EB;
  border-radius: 999px;
  align-self: flex-start;
}
.role__label svg { width: 12px; height: 12px; }

.role__title {
  margin-top: 16px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0A0A0A;
}

.role__body {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #2E2E2E;
  flex: 1;
}

.role__proof {
  margin-top: 22px;
  padding: 14px 14px 14px 18px;
  background: #FAFAF7;
  border: 1px solid #E5E3DD;
  border-left: 3px solid #E2F895;
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-left-color .2s, background .2s;
}
.role:hover .role__proof {
  border-left-color: #0A0A0A;
  background: #FBFFE8;
}
.role__proof-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #6F6C66;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.role__proof-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: #E2F895;
  border: 1.5px solid #0A0A0A;
  flex-shrink: 0;
}
.role__proof-value {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #0A0A0A;
  letter-spacing: -0.01em;
}

/* Stagger-reveal on viewport entry */
.roles .role {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1),
              transform .5s cubic-bezier(.16,1,.3,1),
              box-shadow .25s,
              border-color .25s;
}
.roles.is-in .role { opacity: 1; transform: translateY(0); }
.roles.is-in .role:nth-child(1) { transition-delay: 0s; }
.roles.is-in .role:nth-child(2) { transition-delay: .1s; }
.roles.is-in .role:nth-child(3) { transition-delay: .2s; }
.roles.is-in .role:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .roles .role { opacity: 1; transform: none; transition: none; }
}

/* Engineering-drawing tick mark + monospaced annotation */
.anno {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #6F6C66;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.anno::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .9;
  margin-top: 0.55em;
  flex-shrink: 0;
}
.anno-on-dark { color: #B5B2AA; }

/* Subtle dotted grid background */
.dotgrid {
  background-image: radial-gradient(rgba(10,10,10,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}
.dotgrid-dark {
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Lined hero grid */
.linegrid {
  background-image:
    linear-gradient(rgba(10,10,10,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Highlight pen-stroke under inline word (uses lime accent) */
.hi {
  background: linear-gradient(180deg, transparent 62%, #E2F895 62%, #E2F895 92%, transparent 92%);
  padding: 0 .08em;
}

/* Card hover lift */
.card-hover {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: #0A0A0A;
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 18px 40px -20px rgba(10,10,10,.18);
}

/* Robot arm + pipette + scan line animations */
@keyframes armSweep   { 0%{transform:rotate(-6deg)} 50%{transform:rotate(8deg)} 100%{transform:rotate(-6deg)} }
@keyframes pipetteDrop{ 0%,80%,100%{transform:translateY(0);opacity:0} 85%{transform:translateY(0);opacity:1} 95%{transform:translateY(28px);opacity:0} }
@keyframes scanLine   { 0%{transform:translateY(0);opacity:0} 15%{opacity:.85} 85%{opacity:.85} 100%{transform:translateY(100%);opacity:0} }
@keyframes pulseDot   { 0%,100%{opacity:.35} 50%{opacity:1} }
.arm-pivot   { transform-origin: 80px 60px; animation: armSweep 6s ease-in-out infinite; }
.pipette-drop{ animation: pipetteDrop 2.4s ease-in infinite; }
.scan-line   { animation: scanLine 4s linear infinite; }
.pulse-dot   { animation: pulseDot 2.2s ease-in-out infinite; }

/* Marquee */
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.marquee-track { animation: marquee 38s linear infinite; }

/* Tabular numerals for spec values */
.tabular { font-variant-numeric: tabular-nums; }

/* Focus styles */
:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; border-radius: 6px; }

/* ─────────────────────────────────────────────────
   WebGL hero scene (Associan workcell — Three.js)
   ───────────────────────────────────────────────── */

.hero-scene {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E5E3DD;
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(226,248,149,.45) 0%, transparent 55%),
    radial-gradient(110% 80% at 100% 0%, rgba(156,193,244,.35) 0%, transparent 55%),
    #FAFAF7;
  box-shadow:
    0 1px 0 rgba(10,10,10,.04),
    0 30px 60px -30px rgba(10,10,10,.28);
  aspect-ratio: 5 / 4;
  isolation: isolate;
  user-select: none;
}

.hero-scene__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.hero-scene.is-dragging .hero-scene__canvas { cursor: grabbing; }

/* Fallback image shown while WebGL is loading, or when unavailable / reduced-motion */
.hero-scene__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
  transition: opacity .5s ease .2s;
}
.hero-scene.is-ready .hero-scene__fallback { opacity: 0; pointer-events: none; }

/* Floating UI overlay */
.hero-scene__ui {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 10;
}
.hero-scene__ui > * { pointer-events: auto; }

/* Top status bar */
.hero-scene__status {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #0A0A0A; color: #fff;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.hero-scene__status .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #E2F895;
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* "Teknician inside" tag */
.hero-scene__tag {
  position: absolute; right: 14px; top: 14px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid #E5E3DD; border-radius: 999px;
  padding: 5px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

/* Live feed mini-panel bottom-left */
.hero-scene__feed {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(10,10,10,.82); backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 200px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
}
.hero-scene__feed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-scene__feed-row + .hero-scene__feed-row { margin-top: 4px; }
.hero-scene__feed-row .k { color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; }
.hero-scene__feed-row .v { font-weight: 600; }
.hero-scene__feed-row .v.lime { color: #E2F895; }
.hero-scene__feed-phase {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 6px;
}
.hero-scene__feed-phase::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 999px;
  background: #E2F895;
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* Capacity card bottom-right */
.hero-scene__cap {
  position: absolute; right: 14px; bottom: 14px;
  background: #0A0A0A; color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  display: flex; gap: 10px; align-items: center;
}
.hero-scene__cap .k { color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; display: block; }
.hero-scene__cap .v { font-size: 13px; }
.hero-scene__cap .v.lime { color: #E2F895; }
.hero-scene__cap .divider { width: 1px; height: 22px; background: rgba(255,255,255,.15); }

/* Equipment hover label (reprojected each frame by JS) */
.hero-scene__label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: #0A0A0A; color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  z-index: 20;
}
.hero-scene__label::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 4px solid transparent;
  border-top-color: #0A0A0A;
}
.hero-scene__label.is-shown { opacity: 1; }

/* Scene info card — appears after a click */
.hero-scene__info {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: 280px;
  background: #fff;
  border: 1px solid #0A0A0A;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 48px -24px rgba(10,10,10,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  z-index: 30;
}
.hero-scene__info.is-shown { opacity: 1; pointer-events: auto; }
.hero-scene__info h4 {
  font-family: "Figtree", sans-serif;
  font-weight: 700; font-size: 15px;
  margin-bottom: 4px;
}
.hero-scene__info p { font-size: 13px; color: #2E2E2E; line-height: 1.5; }
.hero-scene__info-close {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: #F2F0EB; border: 0; border-radius: 999px;
  font-size: 14px; line-height: 1;
  cursor: pointer;
}

/* Hint microcopy */
.hero-scene__hint {
  position: absolute;
  left: 50%; bottom: -26px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #6F6C66;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border: 1px solid #E5E3DD;
  border-radius: 999px;
  white-space: nowrap;
}

/* Reduced-motion / no-WebGL: hide canvas overlays, keep fallback visible */
.hero-scene.is-static .hero-scene__canvas,
.hero-scene.is-static .hero-scene__hint { display: none; }
.hero-scene.is-static .hero-scene__fallback { opacity: 1 !important; }
