/* IntelCit public VC visuals (F1-15) — scoped, additive styles.
   Owns the operational-loop engine, operations dashboard, five-stage flow strip,
   science method cycle, and the image-led problem/team/service/storyboard cards.
   Never overrides the Home hero, service grammars, or F1-14 story motion. */

:root {
  --vc-navy: #0b1f38;
  --vc-navy-2: #0e2748;
  --vc-cyan: #7eeeff;
  --vc-cyan-deep: #12a8bd;
  --vc-blue: #176ab2;
  --vc-green: #30d47f;
  --vc-ink: #10233b;
  --vc-line: rgba(18, 71, 122, 0.16);
  --vc-clean: #2f9e6b;
  --vc-attention: #c8892a;
  --vc-urgent: #c0473a;
  /* Shared map zoom; matches MAP_ZOOM in public-vc-visuals.js. 1.00 = the exact
     owner screenshot is shown in full (no crop) via object-fit: contain. */
  --vc-map-zoom: 1.00;
}

.vc-motion-toggle {
  position: absolute; z-index: 8; inset-block-start: 0.75rem; inset-inline-end: 0.75rem;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(126, 238, 255, 0.28); border-radius: 999px;
  background: rgba(6, 21, 40, 0.7); color: #dff8ff; cursor: pointer;
  box-shadow: 0 8px 24px -16px rgba(6, 21, 40, 0.9);
}
.vc-motion-toggle:hover { background: rgba(18, 71, 122, 0.82); border-color: rgba(126, 238, 255, 0.6); }
.vc-motion-toggle:focus-visible { outline: 3px solid var(--vc-cyan); outline-offset: 3px; }
.vc-motion-toggle-icon { font-size: 0.8rem; line-height: 1; letter-spacing: -0.16em; transform: translateX(-0.04em); }
.vc-motion-toggle[aria-pressed="true"] .vc-motion-toggle-icon { font-size: 0.92rem; letter-spacing: 0; transform: translateX(0.06em); }

/* Shared pause: offscreen or tab hidden. Also stops any nested SVG animation. */
.is-motion-paused,
.is-motion-paused * { animation-play-state: paused !important; }
.is-motion-paused .vc-banner-signal,
.is-motion-paused .vc-banner-marker,
.is-motion-paused .vc-banner-rail-fill,
.is-motion-paused .vc-banner-label,
.is-motion-paused .vc-panel-trend { transition: none !important; }

/* ==================== Sequential operating banner (Home) ==================== */
.vc-engine-section .pub-wrap,
.vc-dashboard-section .pub-wrap { width: min(calc(100% - 2 * var(--ic-gutter)), 1480px); }
.vc-banner-wrap, .vc-loop-full { width: 100%; }
.vc-banner {
  position: relative; width: 100%; display: grid; gap: 0.75rem; overflow: hidden;
  padding: clamp(1.2rem, 2.8vw, 2.2rem); border-radius: 24px;
  color: #eaf4ff; border: 1px solid rgba(126, 238, 255, 0.2);
  background: radial-gradient(90% 140% at 50% -20%, #174477 0%, var(--vc-navy-2) 45%, var(--vc-navy) 100%);
  box-shadow: 0 30px 70px -40px rgba(6, 21, 40, 0.9);
}
.vc-banner-track-wrap { position: relative; width: 100%; }
.vc-banner-track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.vc-banner-stage { position: relative; min-width: 0; padding: 0 0.55rem; text-align: center; }

.vc-banner-rail {
  position: absolute; top: 1.3rem; inset-inline-start: 50%; width: 100%; height: 3px;
  transform: translateY(-50%); background: rgba(126, 238, 255, 0.16); border-radius: 3px; overflow: hidden; z-index: 1;
}
.vc-banner-rail-fill {
  display: block; width: 0; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--vc-cyan-deep), var(--vc-green)); transition: width 0.6s ease;
}
.vc-banner-stage:last-child .vc-banner-rail { display: none; }
.vc-banner-stage.is-done .vc-banner-rail-fill { width: 100%; }

.vc-banner-marker {
  position: relative; z-index: 2; width: 2.6rem; height: 2.6rem; margin: 0 auto 0.7rem;
  border-radius: 999px; display: grid; place-items: center;
  background: #102d4f; border: 2px solid rgba(126, 238, 255, 0.25); color: #eaf4ff; font-weight: 800;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.vc-banner-num { font-size: 1rem; line-height: 1; }
.vc-banner-stage.is-done .vc-banner-marker {
  border-color: var(--vc-green); background: rgba(48, 212, 127, 0.14);
}
.vc-banner-stage.is-active .vc-banner-marker {
  border-color: var(--vc-cyan-deep); color: #fff; transform: scale(1.12);
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-cyan-deep));
  box-shadow: 0 0 0 6px rgba(18, 168, 189, 0.16);
}

.vc-banner-copy { display: grid; gap: 0.25rem; }
.vc-banner-label { color: #f4f9ff; font-size: 1rem; transition: color 0.4s ease; }
.vc-banner-stage.is-active .vc-banner-label { color: var(--vc-cyan); }
.vc-banner-desc { color: #b7cee6; font-size: 0.82rem; line-height: 1.45; overflow-wrap: anywhere; }

/* JS-positioned signal packet gliding to the active marker; inner core pulses. */
.vc-banner-signal {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 3;
  pointer-events: none; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.vc-banner.is-resetting .vc-banner-signal { transition: none; }
.vc-banner-signal-core {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 999px;
  background: var(--vc-cyan); box-shadow: 0 0 12px 3px rgba(126, 238, 255, 0.7);
  animation: vc-signal-pulse 1.6s ease-in-out infinite;
}
@keyframes vc-signal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}
.vc-banner-return { position: relative; height: 1.35rem; margin: 0.55rem 3% 0; opacity: 0.42; }
.vc-banner-return-line { position: absolute; inset: 0.55rem 5% auto; height: 2px; background: rgba(126, 238, 255, 0.15); border-radius: 2px; overflow: hidden; }
.vc-banner-return-fill { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--vc-green), var(--vc-cyan)); transform: scaleX(0); transform-origin: right center; }
.vc-banner-return-packet { position: absolute; right: 5%; top: 0.2rem; width: 0.72rem; height: 0.72rem; border-radius: 999px; background: var(--vc-cyan); box-shadow: 0 0 14px 4px rgba(126, 238, 255, 0.55); opacity: 0; }
.vc-banner-return-arrow { position: absolute; left: 1%; top: -0.18rem; color: var(--vc-cyan); font-size: 1.25rem; }
.vc-banner.is-returning .vc-banner-return { opacity: 1; }
.vc-banner.is-returning .vc-banner-return-fill { animation: vc-return-fill 0.85s ease-out forwards; }
.vc-banner.is-returning .vc-banner-return-packet { animation: vc-return-packet-ltr 0.85s ease-in-out forwards; }
@keyframes vc-return-fill { to { transform: scaleX(1); } }
@keyframes vc-return-packet-ltr { from { right: 5%; opacity: 1; } to { right: 94%; opacity: 1; } }
[dir="rtl"] .vc-banner-return-fill { transform-origin: left center; }
[dir="rtl"] .vc-banner-return-packet { right: auto; left: 5%; }
[dir="rtl"] .vc-banner-return-arrow { left: auto; right: 1%; transform: scaleX(-1); }
[dir="rtl"] .vc-banner.is-returning .vc-banner-return-packet { animation-name: vc-return-packet-rtl; }
@keyframes vc-return-packet-rtl { from { left: 5%; opacity: 1; } to { left: 94%; opacity: 1; } }
.vc-banner.is-complete .vc-banner-signal { display: none; }

.vc-banner-readout { margin: 0; text-align: center; font-size: 0.9rem; color: #b7cee6; }
.vc-banner-readout-label {
  font-weight: 700; color: var(--vc-cyan-deep); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.72rem;
}
.vc-banner-now { font-weight: 700; color: #fff; }

/* ============================ Five-stage flow ============================ */
.vc-flow-wrap { width: 100%; }
.vc-flow-shell { position: relative; padding-block-start: 3.75rem; }
.vc-flow {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 0.5rem 0.75rem;
}
.vc-flow-step { display: inline-flex; align-items: center; gap: 0.6rem; }
.vc-flow-dot {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--vc-blue); color: var(--vc-ink); font-weight: 700;
  animation: vc-flow-pulse 6s ease-in-out infinite; animation-delay: calc(var(--vc-node) * -1.2s);
}
@keyframes vc-flow-pulse {
  0%, 100% { background: #fff; border-color: var(--vc-blue); color: var(--vc-ink); }
  8% { background: var(--vc-cyan); border-color: var(--vc-cyan-deep); }
  16% { background: #fff; border-color: var(--vc-blue); }
}
.vc-flow-label { font-weight: 600; color: var(--vc-ink); }
.vc-flow-link { width: 1.4rem; height: 2px; background: var(--vc-line); border-radius: 2px; }

/* ============================ Operations dashboard ============================ */
.vc-dash-wrap { width: 100%; }
.vc-dash {
  background: radial-gradient(120% 120% at 15% 0%, var(--vc-navy-2), var(--vc-navy));
  color: #eaf4ff; border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.9rem);
  border: 1px solid rgba(126, 238, 255, 0.18);
  box-shadow: 0 30px 60px -32px rgba(6, 21, 40, 0.85);
}
.vc-dash-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.vc-dash-dot { width: 0.65rem; height: 0.65rem; border-radius: 999px; background: var(--vc-green); box-shadow: 0 0 0 4px rgba(48, 212, 127, 0.2); }
.vc-dash-title { font-size: 1.05rem; }
.vc-dash-period { margin-inline-start: auto; color: #a9c6e4; font-size: 0.75rem; font-weight: 650; }
.vc-dash-head .vc-motion-toggle { position: static; flex: 0 0 44px; margin-inline-start: 0.2rem; }

.vc-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.vc-kpi {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(126, 238, 255, 0.14);
  border-radius: 14px; padding: 0.8rem 0.7rem; display: grid; gap: 0.25rem;
}
.vc-kpi-value { font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 800; color: #fff; }
.vc-kpi-label { font-size: 0.76rem; color: #a9c6e4; line-height: 1.25; }

.vc-dash-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr); gap: 0.7rem; align-items: stretch; }
.vc-panel {
  margin: 0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(126, 238, 255, 0.12);
  border-radius: 14px; padding: 0.85rem 0.9rem; min-width: 0;
}
.vc-panel-trend { transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease; }
.vc-panel-trend:hover,
.vc-panel-trend:focus-within {
  transform: translateY(-6px); border-color: rgba(126, 238, 255, 0.35);
  background: rgba(255, 255, 255, 0.065);
}
.vc-panel-map { grid-column: 1; grid-row: 1 / span 2; }
.vc-panel-trend { grid-column: 2; grid-row: 1; }
.vc-panel-queue { grid-column: 2; grid-row: 2; }
.vc-panel-eff { grid-column: 1 / -1; grid-row: 3; }
.vc-dash-compact .vc-panel-queue,
.vc-dash-compact .vc-panel-eff { display: none; }
.vc-dash-compact .vc-panel-map { grid-row: 1; }
.vc-dash-compact .vc-panel-trend { grid-row: 1; }
.vc-panel-title { font-size: 0.82rem; font-weight: 700; color: #cfe6ff; margin-bottom: 0.55rem; }
.vc-panel-summary { font-size: 0.76rem; color: #9fbfe0; margin: 0.55rem 0 0; line-height: 1.4; }

/* Route coverage: the exact owner street-map screenshot shown in FULL (F1-19)
   behind a code-native canvas overlay. A matching stage aspect-ratio plus
   object-fit: contain show 100% of the screenshot with no crop; a pale backing
   covers sub-pixel rounding. The image is never filtered, mirrored, or scaled,
   and the canvas shares the identical contain frame. */
.vc-map-shell { position: relative; width: 100%; }
.vc-map-stage {
  position: relative; width: 100%; aspect-ratio: 1074 / 808; min-height: 300px; border-radius: 12px;
  overflow: hidden; background: #eef1f5;
}
.vc-map-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; image-rendering: auto;
  filter: none; transform: none;
}
/* The owner screenshot is never mirrored in RTL. */
[dir="rtl"] .vc-map-bg { transform: none; }
.vc-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Desktop/tablet: compact dark stat pills overlay the top-left of the stage. */
.vc-map-stats { position: absolute; z-index: 2; inset-block-start: 0.6rem; inset-inline-start: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vc-map-stat {
  background: rgba(6, 21, 40, 0.72); border: 1px solid rgba(126, 238, 255, 0.22); border-radius: 999px;
  padding: 0.2rem 0.6rem; font-size: 0.72rem; color: #cfe6ff;
}
.vc-map-stat b { color: #fff; font-weight: 800; }
.vc-map-stat-clean { box-shadow: inset 0 -2px 0 rgba(48, 212, 127, 0.7); }
.vc-map-stat-attention { box-shadow: inset 0 -2px 0 rgba(242, 193, 78, 0.75); }
.vc-map-stat-priority { box-shadow: inset 0 -2px 0 rgba(255, 122, 107, 0.75); }
.vc-map-legend { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Clean-route-share chart: rising area/line with hover + keyboard tooltip. */
.vc-chart { position: relative; width: 100%; }
.vc-chart-svg { display: block; width: 100%; height: 120px; overflow: visible; }
.vc-chart-svg:focus-visible { outline: 2px solid var(--vc-cyan); outline-offset: 4px; border-radius: 8px; }
.vc-chart-grid line { stroke: rgba(126, 238, 255, 0.12); stroke-width: 1; }
/* The dashboard chart grows geometrically from a true zero baseline in JS
   (see paintChart in public-vc-visuals.js). There is deliberately no CSS
   path-draw or fill-fade reveal here, so nothing competes with the JS geometry. */
.vc-chart-area { fill: url(#vc-chart-fill); opacity: 1; }
.vc-chart-line {
  fill: none; stroke: var(--vc-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.vc-chart-hit { fill: transparent; }
.vc-chart-dot { fill: #eaf4ff; stroke: var(--vc-green); stroke-width: 2; transition: r 0.2s ease; }
.vc-chart.is-tip .vc-chart-dot { opacity: 0.7; }
.vc-chart.is-tip .vc-chart-tip-dot { filter: drop-shadow(0 0 5px rgba(126, 238, 255, 0.9)); }
.vc-chart-pt { pointer-events: none; }
.vc-chart-tip[hidden] { display: none; }
.vc-chart-tip-line { stroke: rgba(126, 238, 255, 0.55); stroke-width: 1; stroke-dasharray: 3 3; }
.vc-chart-tip-dot { fill: var(--vc-cyan); }
.vc-chart-tip-label {
  position: absolute; top: -0.4rem; left: 0;
  background: rgba(6, 21, 40, 0.92); border: 1px solid rgba(126, 238, 255, 0.3); border-radius: 8px;
  color: #eaf4ff; font-size: 0.72rem; padding: 0.15rem 0.5rem; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
}
.vc-chart.is-tip .vc-chart-tip-label { opacity: 1; }

.vc-tag {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.vc-tag::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: currentColor; }
.vc-tag.vc-clean { color: #7ce0ac; background: rgba(48, 212, 127, 0.16); }
.vc-tag.vc-attention { color: #f2c14e; background: rgba(242, 193, 78, 0.16); }
.vc-tag.vc-urgent { color: #ff9c8f; background: rgba(255, 122, 107, 0.16); }

.vc-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.vc-queue-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; color: #dcecff; }
.vc-queue-name { font-weight: 600; }

.vc-eff { display: grid; gap: 0.5rem; }
.vc-eff-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; }
.vc-eff-fill { height: 0.7rem; border-radius: 999px; transform-origin: left center; animation: vc-grow 1.6s ease forwards; }
.vc-eff-before { background: linear-gradient(90deg, #6b7f96, #90a6bd); width: 100%; }
.vc-eff-after { background: linear-gradient(90deg, var(--vc-cyan-deep), var(--vc-green)); width: 18%; min-width: 2rem; }
.vc-eff-cap { font-size: 0.74rem; color: #a9c6e4; white-space: nowrap; }
@keyframes vc-grow { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
.vc-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ============================ Science method cycle ============================ */
@keyframes vc-ring-travel { to { stroke-dashoffset: -1; } }
@keyframes vc-node-halo {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  10% { opacity: 0.7; transform: scale(1.12); }
  20% { opacity: 0.28; transform: scale(1); }
}
@keyframes vc-node-pulse {
  0%, 100% { fill: #fff; stroke: var(--vc-blue); }
  10% { fill: var(--vc-cyan); stroke: var(--vc-cyan-deep); }
  20% { fill: #fff; stroke: var(--vc-blue); }
}
.vc-cycle { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.vc-cycle-stage { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.vc-cycle-graphic { display: block; width: 100%; height: auto; overflow: visible; }
.vc-cycle-ring { fill: none; stroke: var(--vc-line); stroke-width: 5; }
.vc-cycle-ring-lit {
  fill: none; stroke: var(--vc-cyan-deep); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 0.18 0.82; animation: vc-ring-travel 12s linear infinite;
}
.vc-cycle-halo { fill: rgba(18, 168, 189, 0.14); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: vc-node-halo 12s ease-in-out infinite; animation-delay: calc(var(--vc-node) * -2s); }
.vc-cycle-dot { fill: #fff; stroke: var(--vc-cyan-deep); stroke-width: 3; animation: vc-node-pulse 12s ease-in-out infinite; animation-delay: calc(var(--vc-node) * -2s); }
.vc-cycle-num { fill: var(--vc-ink); font: 700 15px/1 system-ui, sans-serif; text-anchor: middle; }
.vc-cycle-center {
  position: absolute; inset: 0; margin: auto; width: 8.5rem; height: 8.5rem; border-radius: 18px;
  display: grid; place-items: center; text-align: center; padding: 0.6rem;
  background: #fff; border: 1px solid var(--vc-line); color: var(--vc-ink); font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 14px 30px -18px rgba(16, 35, 59, 0.5);
}
.vc-cycle-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.vc-cycle-legend-item { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: center; color: var(--vc-ink); }
.vc-cycle-legend-num { width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--vc-cyan-deep), var(--vc-green)); color: #fff; font-weight: 700; }

/* ============================ Image-led cards ============================ */
.vc-media { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: #dfeaf5; }
.vc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Content photos must never mirror in RTL. */
[dir="rtl"] .vc-media img,
[dir="rtl"] .vc-svc-media img,
[dir="rtl"] .vc-story-media img { transform: none; }

.vc-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.vc-problem-card { display: grid; gap: 0.75rem; }
.vc-problem-card h3 { margin: 0.2rem 0 0; }
.vc-problem-card p { margin: 0; color: #46617e; }

.vc-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.vc-team-card { display: grid; gap: 0.75rem; align-content: start; }
.vc-team-card h3 { margin: 0.2rem 0 0; }
.vc-team-card p { margin: 0; color: #46617e; }

/* Storyboard (Solutions) */
.vc-storyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vc-story-step { display: grid; gap: 0.7rem; align-content: start; }
.vc-story-step:last-child { grid-column: 1 / -1; }
.vc-story-step h3 { margin: 0; font-size: 1.02rem; }
.vc-story-step p { margin: 0; color: #46617e; font-size: 0.92rem; }
.vc-story-frame { position: relative; }
.vc-story-num {
  position: absolute; inset-inline-start: 0.6rem; inset-block-start: 0.6rem; z-index: 2;
  width: 1.9rem; height: 1.9rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(11, 31, 56, 0.82); color: #fff; font-weight: 700;
}

/* Science service gallery + detection overlay */
.vc-science-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.vc-svc-card { display: grid; gap: 0.7rem; align-content: start; background: #fff; border: 1px solid var(--vc-line); border-radius: 16px; padding: 0.9rem; }
.vc-svc-media { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; background: #dfeaf5; }
.vc-svc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-svc-card h3 { margin: 0; font-size: 1.02rem; }
.vc-svc-card p { margin: 0; color: #46617e; font-size: 0.9rem; }
.vc-svc-foundation { font-size: 0.85rem; word-break: break-word; }
.vc-svc-card-wide { grid-column: span 2; }
.vc-svc-card-wide .vc-seasonal { grid-template-columns: repeat(2, 1fr); }

/* Code-native detection overlay drawn over a content photo */
.vc-overlay { position: absolute; inset: 0; pointer-events: none; }
.vc-overlay-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vc-box { fill: none; stroke: var(--vc-cyan); stroke-width: 2.5; }
.vc-box-glow { fill: none; stroke: var(--vc-cyan); stroke-width: 2.5; opacity: 0.9; animation: vc-box-scan 3.2s ease-in-out infinite; }
@keyframes vc-box-scan { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.vc-chip {
  position: absolute; font-size: 0.66rem; font-weight: 700; color: var(--vc-navy);
  background: var(--vc-cyan); border-radius: 6px; padding: 0.1rem 0.4rem; direction: ltr;
}

/* Observation → Inference → Confirmation chain */
.vc-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0.75rem; align-items: center; }
.vc-chain-step { background: #fff; border: 1px solid var(--vc-line); border-radius: 16px; padding: 0.9rem; display: grid; gap: 0.6rem; align-content: start; }
.vc-chain-step h3 { margin: 0; font-size: 1rem; }
.vc-chain-step p { margin: 0; color: #46617e; font-size: 0.9rem; }
.vc-chain-arrow { color: var(--vc-cyan-deep); font-size: 1.5rem; font-weight: 700; text-align: center; }
[dir="rtl"] .vc-chain-arrow { transform: scaleX(-1); }
.vc-chain-record { display: grid; gap: 0.35rem; font-size: 0.82rem; }
.vc-chain-record .vc-tag { justify-self: start; }

/* Seasonal split (leaves / snow) */
.vc-seasonal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.vc-seasonal-card { display: grid; gap: 0.7rem; }

/* Grid children must be allowed to shrink (prevents horizontal overflow). */
.vc-problem-grid > *, .vc-team-grid > *, .vc-science-gallery > *,
.vc-storyboard > *, .vc-chain > *, .vc-seasonal > *,
.vc-dash-grid > *, .vc-kpi-row > * { min-width: 0; }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .vc-cycle { grid-template-columns: 1fr; }
  .vc-cycle-stage { max-width: 320px; }
  .vc-dash-grid { grid-template-columns: 1fr; }
  .vc-panel-map, .vc-panel-trend, .vc-panel-queue, .vc-panel-eff { grid-column: 1; grid-row: auto; }
  .vc-problem-grid, .vc-team-grid, .vc-science-gallery, .vc-storyboard { grid-template-columns: 1fr; }
  .vc-story-step:last-child, .vc-svc-card-wide { grid-column: auto; }
  .vc-chain { grid-template-columns: 1fr; }
  .vc-chain-arrow { transform: rotate(90deg); }
  [dir="rtl"] .vc-chain-arrow { transform: rotate(90deg); }
  .vc-seasonal, .vc-svc-card-wide .vc-seasonal { grid-template-columns: 1fr; }
  /* Keep the exact owner-screenshot aspect ratio so it is never cropped. */
  .vc-map-stage { aspect-ratio: 1074 / 808; min-height: 240px; }
}
@media (max-width: 620px) {
  .vc-kpi-row { grid-template-columns: repeat(2, 1fr); }
  /* Banner becomes a compact vertical sequence; no horizontal overflow. */
  .vc-banner-track-wrap { margin-block-start: 2.75rem; }
  .vc-banner-track { grid-template-columns: 1fr; }
  .vc-banner-stage {
    display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.7rem;
    align-items: start; text-align: start; padding: 0.4rem 0;
  }
  .vc-banner-marker { margin: 0; }
  .vc-banner-rail {
    top: 2.6rem; inset-inline-start: 1.3rem; width: 3px; height: 100%; transform: translateX(-50%);
  }
  .vc-banner-rail-fill {
    width: 100%; height: 0; background: linear-gradient(180deg, var(--vc-blue), var(--vc-green));
    transition: height 0.6s ease;
  }
  .vc-banner-stage.is-done .vc-banner-rail-fill { width: 100%; height: 100%; }
  /* The return path becomes a true bottom-to-top rail beside the vertical flow. */
  .vc-banner-return {
    position: absolute; inset-block: 0.8rem 0.8rem; inset-inline-start: -0.8rem;
    width: 0.9rem; height: auto; margin: 0; opacity: 0.5;
  }
  .vc-banner-return-line {
    inset: 0 50% 0 auto; width: 2px; height: 100%; transform: translateX(50%);
  }
  .vc-banner-return-fill {
    width: 100%; height: 100%; transform: scaleY(0); transform-origin: center bottom;
  }
  [dir="rtl"] .vc-banner-return-fill { transform-origin: center bottom; }
  .vc-banner-return-packet,
  [dir="rtl"] .vc-banner-return-packet {
    top: auto; right: auto; left: 50%; bottom: 0; transform: translateX(-50%);
  }
  .vc-banner-return-arrow,
  [dir="rtl"] .vc-banner-return-arrow {
    top: -0.85rem; right: auto; left: 50%; transform: translateX(-50%) rotate(-90deg);
  }
  .vc-banner.is-returning .vc-banner-return-fill { animation-name: vc-return-fill-mobile; }
  .vc-banner.is-returning .vc-banner-return-packet,
  [dir="rtl"] .vc-banner.is-returning .vc-banner-return-packet { animation-name: vc-return-packet-mobile; }
  @keyframes vc-return-fill-mobile { to { transform: scaleY(1); } }
  @keyframes vc-return-packet-mobile {
    from { bottom: 0; opacity: 1; }
    to { bottom: calc(100% - 0.72rem); opacity: 1; }
  }
  /* Full owner screenshot, still uncropped, just shorter. */
  .vc-map-stage { aspect-ratio: 1074 / 808; min-height: 200px; }
  /* Move the stat pills into normal flow ABOVE the image/canvas so they never
     overlay and hide streets on small screens. */
  .vc-map-stats {
    position: static; margin-block-end: 0.5rem; gap: 0.25rem;
    inset-block-start: auto; inset-inline-start: auto;
  }
  .vc-map-stat { font-size: 0.65rem; padding: 0.14rem 0.42rem; }
}

/* ============================ Reduced motion: complete stable state ============================ */
@media (prefers-reduced-motion: reduce) {
  .vc-motion-toggle { display: none; }
  /* The operational dashboard keeps auto-moving under reduced motion (owner
     requirement), so its pause/resume control must stay visible and usable. */
  .vc-dash .vc-motion-toggle { display: grid; }
  .vc-banner-signal { transition: none; }
  .vc-banner-signal-core { animation: none; opacity: 0.9; }
  .vc-banner-marker, .vc-banner-rail-fill, .vc-banner-label { transition: none; }
  .vc-panel-trend { transition: none; transform: none; }
  .vc-banner-return { opacity: 0.8; }
  .vc-banner-return-fill { animation: none; transform: scaleX(1); }
  .vc-banner-return-packet { display: none; }
  .vc-flow-dot { animation: none; background: var(--vc-cyan); border-color: var(--vc-cyan-deep); }
  .vc-eff-fill { animation: none; transform: none; }
  .vc-cycle-ring-lit { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.85; }
  .vc-cycle-halo { animation: none; opacity: 0.45; }
  .vc-cycle-dot { animation: none; fill: var(--vc-cyan); stroke: var(--vc-cyan-deep); }
  .vc-box-glow { animation: none; opacity: 0.85; }
}

@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  .vc-banner-return-fill { transform: scaleY(1); }
}
