/* Homepage-only evidence-engine animation pass.
   Every selector is rooted at .page-home; this asset is linked only by /. */

.page-home {
  --cv-engine-bg: #0c1719;
  --cv-engine-panel: #122224;
  --cv-engine-panel-2: #172b2d;
  --cv-engine-rule: #365356;
  --cv-engine-text: #f5f2ea;
  --cv-engine-muted: #b8c8c6;
  --cv-engine-teal: #8fc2c5;
  --cv-engine-copper: #f0aa84;
  --cv-engine-brass: #e4bd72;
  --cv-engine-danger: #ff947c;
}

.page-home .mad-card {
  background: #101a1c !important;
  border-color: #40595b !important;
  border-radius: 4px !important;
  box-shadow: 0 30px 72px rgb(24 36 38 / 24%) !important;
  color: var(--cv-engine-text) !important;
  max-width: 680px !important;
  padding: clamp(18px, 2.3vw, 28px) !important;
}

.page-home .mad-head {
  border-color: #304749 !important;
  margin-bottom: 14px !important;
  padding-bottom: 13px !important;
}

.page-home .mad-brand {
  color: var(--cv-engine-copper) !important;
}

.page-home .mad-title,
.page-home .mad-label,
.page-home .mad-headline-label {
  color: var(--cv-engine-muted) !important;
}

.page-home .mad-headline {
  margin: 18px 0 10px !important;
}

.page-home .mad-headline-value {
  color: #8dc4a5 !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
}

.page-home .mad-row {
  border-color: #293d3f !important;
  padding: 9px 0 !important;
}

.page-home .mad-value {
  color: var(--cv-engine-text) !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

.page-home .mad-neg {
  color: var(--cv-engine-danger) !important;
}

.page-home .mad-ready {
  color: #9bcea9 !important;
}

/* Shared technical panel grammar. */
.page-home .cv-engine-panel,
.page-home .processing-trace {
  background:
    linear-gradient(rgb(143 194 197 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(143 194 197 / 2.5%) 1px, transparent 1px),
    var(--cv-engine-bg);
  background-size: 38px 38px;
  border: 1px solid var(--cv-engine-rule);
  border-radius: 3px;
  color: var(--cv-engine-text);
  contain: layout paint;
  font-family: var(--font-body);
  position: relative;
  text-align: left;
}

.page-home .cv-engine-panel::after,
.page-home .processing-trace::after {
  border: 1px solid rgb(228 189 114 / 12%);
  content: "";
  inset: 5px;
  pointer-events: none;
  position: absolute;
}

.page-home .cv-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.page-home .cv-panel-kicker {
  color: var(--cv-engine-copper);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.page-home .cv-panel-title {
  color: var(--cv-engine-text) !important;
  display: block;
  font-family: var(--font-display) !important;
  font-size: clamp(1rem, 1.9vw, 1.28rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-home .cv-panel-state {
  align-items: center;
  color: var(--cv-engine-muted);
  display: flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  gap: 7px;
  letter-spacing: 0.08em;
  padding-top: 3px;
  text-transform: uppercase;
}

.page-home .cv-panel-state::before {
  background: var(--cv-engine-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(143 194 197 / 13%);
  content: "";
  height: 6px;
  width: 6px;
}

.page-home .is-running .cv-panel-state::before {
  animation: cv-engine-breathe 1.8s ease-in-out infinite;
}

.page-home .cv-panel-note {
  color: var(--cv-engine-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.045em;
  margin: 12px 0 0;
  max-width: none;
  text-align: center;
  text-transform: uppercase;
}

/* Sequence 1: complete ESI intake dashboard. */
.page-home .processing-trace.cv-intake {
  --intake-progress: 100%;
  margin: 14px 0 16px;
  padding: clamp(14px, 2vw, 20px);
}

.page-home .cv-intake__ledger {
  align-items: end;
  border-bottom: 1px solid #2c4547;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.8fr));
  margin-top: 16px;
  padding-bottom: 13px;
  position: relative;
  z-index: 1;
}

.page-home .cv-intake__metric {
  min-width: 0;
}

.page-home .cv-intake__metric span,
.page-home .cv-intake__metric strong {
  display: block;
}

.page-home .cv-intake__metric span {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-home .cv-intake__metric strong {
  color: var(--cv-engine-text);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.25vw, 1.125rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .cv-intake__metric--volume strong {
  color: var(--cv-engine-brass);
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
}

.page-home .cv-intake__progress {
  background: #203537;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  position: relative;
}

.page-home .cv-intake__progress i {
  background: linear-gradient(90deg, var(--cv-engine-teal), var(--cv-engine-brass), var(--cv-engine-copper));
  display: block;
  height: 100%;
  width: var(--intake-progress);
}

.page-home .cv-intake__phase-wrap {
  margin-top: 13px;
  position: relative;
  z-index: 1;
}

.page-home .cv-intake__phase-status {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.page-home .cv-intake__phase-status span {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .cv-intake__phase-status strong {
  color: var(--cv-engine-brass);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: right;
}

.page-home .cv-intake__phases {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  list-style: none;
  margin: 9px 0 0;
  max-width: none;
  padding: 0;
}

.page-home .cv-intake__phase {
  color: #8fa2a0;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.025em;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 8px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.page-home .cv-intake__phase::before {
  background: #2c4648;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.page-home .cv-intake__phase.is-complete::before {
  background: var(--cv-engine-teal);
}

.page-home .cv-intake__phase.is-active {
  color: var(--cv-engine-text);
}

.page-home .cv-intake__phase.is-active::before {
  background: var(--cv-engine-brass);
  box-shadow: 0 0 8px rgb(228 189 114 / 55%);
}

.page-home .cv-intake__workbench {
  display: grid;
  gap: 11px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  margin-top: 13px;
  position: relative;
  z-index: 1;
}

.page-home .cv-intake__chart,
.page-home .cv-intake__filemix,
.page-home .cv-intake__operations {
  background: rgb(19 35 37 / 92%);
  border: 1px solid #2c4749;
  min-width: 0;
}

.page-home .cv-intake__chart {
  padding: 10px 10px 7px;
}

.page-home .cv-mini-head {
  align-items: center;
  color: var(--cv-engine-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.51rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.page-home .cv-mini-head strong {
  color: var(--cv-engine-teal);
  font-size: 0.54rem;
  font-weight: 600;
}

.page-home .cv-intake__chart svg {
  display: block;
  height: 96px;
  overflow: visible;
  width: 100%;
}

.page-home .cv-intake__gridline {
  stroke: #2b4648;
  stroke-width: 1;
}

.page-home .cv-intake__area {
  fill: rgb(143 194 197 / 09%);
}

.page-home .cv-intake__line {
  fill: none;
  stroke: var(--cv-engine-teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-home .is-running .cv-intake__line {
  animation: cv-engine-dash 2.4s linear infinite;
  stroke-dasharray: 5 5;
}

.page-home .cv-intake__chart-dot {
  fill: var(--cv-engine-brass);
  filter: drop-shadow(0 0 4px rgb(228 189 114 / 65%));
}

.page-home .cv-intake__filemix {
  padding: 10px;
}

.page-home .cv-file-row {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(58px, 0.9fr) minmax(24px, 1fr) max-content;
  margin-top: 7px;
}

.page-home .cv-file-row__label,
.page-home .cv-file-row__value {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  line-height: 1.2;
}

.page-home .cv-file-row__value {
  color: var(--cv-engine-text);
  font-variant-numeric: tabular-nums;
  justify-self: end;
  white-space: nowrap;
  text-align: right;
}

.page-home .cv-file-row__track {
  align-self: center;
  background: #263d3f;
  height: 3px;
  overflow: hidden;
}

.page-home .cv-file-row__track i {
  background: var(--cv-engine-teal);
  display: block;
  height: 100%;
  min-width: 2px;
  width: 100%;
}

.page-home .cv-file-row:nth-child(3n) .cv-file-row__track i {
  background: var(--cv-engine-brass);
}

.page-home .cv-file-row:nth-child(3n + 1) .cv-file-row__track i {
  background: var(--cv-engine-copper);
}

.page-home .cv-intake__operations {
  display: grid;
  gap: 1px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-home .cv-operation {
  background: #132325;
  min-width: 0;
  padding: 9px 10px;
}

.page-home .cv-operation span,
.page-home .cv-operation strong {
  display: block;
}

.page-home .cv-operation span {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.47rem;
  line-height: 1.25;
}

.page-home .cv-operation strong {
  color: var(--cv-engine-text);
  font-family: var(--font-mono);
  font-size: clamp(0.73rem, 1.5vw, 0.92rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .cv-operation--exception strong {
  color: var(--cv-engine-danger);
}

.page-home .cv-operation--proof strong {
  color: var(--cv-engine-brass);
}

/* Sequence 2: QLCA transformation from source records to signals. */
.page-home .cv-qlca-system {
  margin: 54px 0 4px;
  padding: clamp(18px, 3vw, 30px);
}

.page-home .cv-qlca-system__body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 0.72fr) minmax(300px, 1.55fr) minmax(170px, 0.8fr);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.page-home .cv-source-feed,
.page-home .cv-qlca-chart-card,
.page-home .cv-network-card,
.page-home .cv-qlca-signals,
.page-home .cv-evidence-pointer {
  background: rgb(18 34 36 / 94%);
  border: 1px solid #315053;
  min-width: 0;
}

.page-home .cv-source-feed,
.page-home .cv-network-card {
  padding: 12px;
}

.page-home .cv-source-record {
  border-left: 2px solid var(--cv-engine-teal);
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 9px;
  padding: 4px 0 4px 9px;
}

.page-home .cv-source-record:nth-child(3n) {
  border-color: var(--cv-engine-copper);
}

.page-home .cv-source-record:nth-child(3n + 1) {
  border-color: var(--cv-engine-brass);
}

.page-home .cv-source-record strong,
.page-home .cv-source-record span,
.page-home .cv-source-record small {
  font-family: var(--font-mono);
  min-width: 0;
}

.page-home .cv-source-record strong {
  color: var(--cv-engine-text);
  font-size: 0.54rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .cv-source-record span {
  color: var(--cv-engine-brass);
  font-size: 0.49rem;
  font-variant-numeric: tabular-nums;
}

.page-home .cv-source-record small {
  color: var(--cv-engine-muted);
  font-size: 0.46rem;
  grid-column: 1 / -1;
}

.page-home .cv-source-feed__flow {
  background: #263f41;
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.page-home .cv-source-feed__flow i {
  background: linear-gradient(90deg, transparent, var(--cv-engine-brass), transparent);
  display: block;
  height: 100%;
  transform: translateX(-100%);
  width: 42%;
}

.page-home .is-running .cv-source-feed__flow i {
  animation: cv-source-transfer 1.7s linear infinite;
}

.page-home .cv-qlca-chart-card {
  padding: 12px 12px 8px;
}

.page-home .cv-qlca-chart {
  display: block;
  height: 190px;
  overflow: visible;
  width: 100%;
}

.page-home .cv-qlca-chart__grid line {
  stroke: #294446;
  stroke-width: 1;
}

.page-home .cv-qlca-chart__baseline {
  fill: none;
  opacity: 0.9;
  stroke: #789597;
  stroke-dasharray: 4 5;
  stroke-width: 1.4;
}

.page-home .cv-qlca-chart__observed {
  fill: none;
  filter: drop-shadow(0 0 4px rgb(228 189 114 / 28%));
  stroke: var(--cv-engine-brass);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.page-home .cv-qlca-chart__event {
  stroke: var(--cv-engine-copper);
  stroke-dasharray: 5 4;
  stroke-width: 1.5;
}

.page-home .cv-qlca-chart__regime {
  fill: rgb(240 170 132 / 09%);
  stroke: rgb(240 170 132 / 45%);
  stroke-width: 1;
}

.page-home .cv-qlca-chart__dot {
  fill: var(--cv-engine-bg);
  stroke: var(--cv-engine-brass);
  stroke-width: 1.4;
}

.page-home .cv-qlca-chart__event-dot {
  fill: var(--cv-engine-copper);
  filter: drop-shadow(0 0 5px rgb(240 170 132 / 65%));
}

.page-home .cv-qlca-chart__label {
  fill: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.page-home .cv-channel-strip {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 7px;
}

.page-home .cv-channel-strip span {
  border-top: 2px solid var(--cv-engine-teal);
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  padding-top: 5px;
  text-align: center;
}

.page-home .cv-channel-strip span:nth-child(2) {
  border-color: var(--cv-engine-brass);
}

.page-home .cv-channel-strip span:nth-child(3) {
  border-color: var(--cv-engine-copper);
}

.page-home .cv-channel-strip span:nth-child(4) {
  border-color: #9bcea9;
}

.page-home .cv-network-card svg {
  display: block;
  height: 140px;
  margin: 3px auto 4px;
  overflow: visible;
  width: 100%;
}

.page-home .cv-network-edge {
  stroke: #476568;
  stroke-width: 1.2;
  transition: stroke 220ms ease, stroke-width 220ms ease, opacity 220ms ease;
}

.page-home .cv-network-edge.is-active {
  opacity: 1;
  stroke: var(--cv-engine-brass);
  stroke-dasharray: 4 4;
  stroke-width: 2;
}

.page-home .is-running .cv-network-edge.is-active {
  animation: cv-engine-dash 0.9s linear infinite;
}

.page-home .cv-network-node {
  fill: #142729;
  stroke: var(--cv-engine-teal);
  stroke-width: 2;
  transition: fill 220ms ease, r 220ms ease;
}

.page-home .cv-network-node.is-active {
  fill: var(--cv-engine-copper);
  stroke: var(--cv-engine-text);
}

.page-home .cv-network-label {
  fill: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.page-home .cv-network-state {
  color: var(--cv-engine-brass);
  font-family: var(--font-mono);
  font-size: 0.51rem;
  min-height: 2.4em;
  text-align: center;
}

.page-home .cv-qlca-signals {
  display: grid;
  gap: 1px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-home .cv-qlca-signal {
  background: #132426;
  min-width: 0;
  padding: 10px 11px;
}

.page-home .cv-qlca-signal span,
.page-home .cv-qlca-signal strong {
  display: block;
}

.page-home .cv-qlca-signal span {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.47rem;
  line-height: 1.25;
}

.page-home .cv-qlca-signal strong {
  color: var(--cv-engine-text);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.page-home .cv-evidence-pointer {
  align-items: center;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 9px 11px;
}

.page-home .cv-evidence-pointer span,
.page-home .cv-evidence-pointer code {
  font-family: var(--font-mono) !important;
  font-size: 0.5rem;
}

.page-home .cv-evidence-pointer span {
  color: var(--cv-engine-muted);
  text-transform: uppercase;
}

.page-home .cv-evidence-pointer code {
  color: var(--cv-engine-brass);
  overflow-wrap: anywhere;
  text-align: right;
}

/* Sequence 3: branching decision and evidence pathways. */
.page-home .cv-decision-system {
  margin-top: 52px;
  padding: clamp(18px, 3vw, 30px);
}

.page-home .cv-decision-flow {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.page-home .cv-decision-stage {
  align-content: start;
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
}

.page-home .cv-decision-stage:not(:last-child)::after {
  background: #3a5658;
  content: "";
  height: 1px;
  left: calc(100% + 2px);
  position: absolute;
  top: 24px;
  width: 14px;
}

.page-home .cv-decision-stage:not(:last-child)::before {
  border-bottom: 3px solid transparent;
  border-left: 5px solid #3a5658;
  border-top: 3px solid transparent;
  content: "";
  left: calc(100% + 14px);
  position: absolute;
  top: 21px;
}

.page-home .cv-decision-stage.is-active:not(:last-child)::after,
.page-home .cv-decision-stage.is-resolved:not(:last-child)::after {
  background: linear-gradient(90deg, var(--cv-engine-teal), var(--cv-engine-brass));
}

.page-home .cv-decision-stage.is-active:not(:last-child)::before,
.page-home .cv-decision-stage.is-resolved:not(:last-child)::before {
  border-left-color: var(--cv-engine-brass);
}

.page-home .cv-decision-stage__label {
  color: var(--cv-engine-copper);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.page-home .cv-decision-node {
  background: #132426;
  border: 1px solid #385356;
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  line-height: 1.25;
  min-height: 48px;
  overflow-wrap: anywhere;
  padding: 9px;
  position: relative;
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease, transform 260ms ease;
}

.page-home .cv-decision-node::before {
  background: #506a6c;
  border-radius: 50%;
  content: "";
  height: 5px;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 5px;
}

.page-home .cv-decision-node.is-active {
  background: #1b3032;
  border-color: var(--cv-engine-brass);
  box-shadow: 0 0 18px rgb(228 189 114 / 08%);
  color: var(--cv-engine-text);
  transform: translateY(-2px);
}

.page-home .cv-decision-node.is-active::before {
  background: var(--cv-engine-brass);
  box-shadow: 0 0 7px rgb(228 189 114 / 75%);
}

.page-home .cv-decision-node.is-resolved {
  border-color: #5a888b;
  color: #dce7e5;
}

.page-home .cv-decision-node.is-resolved::before {
  background: var(--cv-engine-teal);
}

.page-home .cv-decision-pulses {
  height: 2px;
  left: 2%;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 2%;
  top: 24px;
  z-index: -1;
}

.page-home .cv-decision-pulses i {
  background: linear-gradient(90deg, transparent, var(--cv-engine-brass), transparent);
  box-shadow: 0 0 9px rgb(228 189 114 / 55%);
  height: 100%;
  left: 0;
  position: absolute;
  transform: translateX(-120%);
  width: 12%;
}

.page-home .is-running .cv-decision-pulses i {
  animation: cv-decision-pulse 3.4s linear infinite;
}

.page-home .is-running .cv-decision-pulses i:nth-child(2) {
  animation-delay: 1.1s;
}

.page-home .is-running .cv-decision-pulses i:nth-child(3) {
  animation-delay: 2.2s;
}

.page-home .cv-decision-outcomes {
  background: #122224;
  border: 1px solid #315053;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.page-home .cv-decision-outcome {
  background: #142628;
  min-width: 0;
  padding: 10px;
}

.page-home .cv-decision-outcome span,
.page-home .cv-decision-outcome strong {
  display: block;
}

.page-home .cv-decision-outcome span {
  color: var(--cv-engine-muted);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  line-height: 1.25;
}

.page-home .cv-decision-outcome strong {
  color: var(--cv-engine-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.page-home .cv-decision-outcome--adverse strong,
.page-home .cv-decision-outcome--exception strong {
  color: var(--cv-engine-danger);
}

.page-home .cv-decision-outcome--proof strong {
  color: var(--cv-engine-brass);
}

/* Homepage-only, non-tiled evidence watermarks. The motifs sit behind content
   and use no filled fields, keeping text contrast unchanged. */
.page-home main > .hero,
.page-home main > .section--light,
.page-home .stage1-architecture-section {
  isolation: isolate;
  overflow: clip;
  position: relative;
}

.page-home main > .hero > *,
.page-home main > .section--light > *,
.page-home .stage1-architecture-section > * {
  position: relative;
  z-index: 1;
}

.page-home main > .hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 760'%3E%3Cg fill='none' stroke='%23356C70' stroke-width='1.4'%3E%3Cpath d='M-30 596 C146 596 170 210 354 210 S604 520 790 520 1000 140 1310 140'/%3E%3Cpath d='M92 646 L92 505 L224 505 L224 354 L408 354' stroke-dasharray='5 9'/%3E%3C/g%3E%3Cg fill='%23A55F3F'%3E%3Ccircle cx='92' cy='596' r='4'/%3E%3Ccircle cx='354' cy='210' r='4'/%3E%3Ccircle cx='790' cy='520' r='4'/%3E%3Ccircle cx='1128' cy='140' r='4'/%3E%3C/g%3E%3Cg fill='none' stroke='%23B28A4A' stroke-width='1'%3E%3Crect x='1030' y='390' width='154' height='196'/%3E%3Cpath d='M1058 430h98M1058 464h98M1058 498h68M1058 532h88'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center 24%;
  background-repeat: no-repeat;
  background-size: min(1380px, 112vw) auto;
  content: "";
  inset: 0;
  opacity: 0.075;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.page-home main > .section--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1180 620'%3E%3Cg fill='none' stroke='%23356C70' stroke-width='1.2'%3E%3Cpath d='M38 470 C194 470 166 168 342 168 S518 406 706 406 872 226 1138 226'/%3E%3Cpath d='M836 84h196v248H836zM866 126h136M866 164h108M866 202h124M866 240h82'/%3E%3C/g%3E%3Cg fill='%23A55F3F'%3E%3Ccircle cx='38' cy='470' r='3.8'/%3E%3Ccircle cx='342' cy='168' r='3.8'/%3E%3Ccircle cx='706' cy='406' r='3.8'/%3E%3Ccircle cx='1138' cy='226' r='3.8'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(1180px, 108vw) auto;
  content: "";
  inset: 0;
  opacity: 0.065;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.page-home .stage1-architecture-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1180 800'%3E%3Cg fill='none' stroke='%23356C70' stroke-width='1.25'%3E%3Cpath d='M96 132L326 256 544 122 772 310 1048 150M326 256L350 586M544 122L602 512M772 310L900 620M350 586L602 512 900 620'/%3E%3C/g%3E%3Cg fill='%23A55F3F' stroke='%23F4F0E7' stroke-width='2'%3E%3Ccircle cx='96' cy='132' r='6'/%3E%3Ccircle cx='326' cy='256' r='6'/%3E%3Ccircle cx='544' cy='122' r='6'/%3E%3Ccircle cx='772' cy='310' r='6'/%3E%3Ccircle cx='1048' cy='150' r='6'/%3E%3Ccircle cx='350' cy='586' r='6'/%3E%3Ccircle cx='602' cy='512' r='6'/%3E%3Ccircle cx='900' cy='620' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: min(1180px, 108vw) auto;
  content: "";
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

@keyframes cv-engine-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes cv-engine-dash {
  to { stroke-dashoffset: -18; }
}

@keyframes cv-source-transfer {
  0% { opacity: 0; transform: translateX(-110%); }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(245%); }
}

@keyframes cv-decision-pulse {
  0% { opacity: 0; transform: translateX(-120%); }
  8%, 90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(850%); }
}

@media (max-width: 1080px) {
  .page-home .cv-qlca-system__body {
    grid-template-columns: minmax(150px, 0.75fr) minmax(300px, 1.5fr);
  }

  .page-home .cv-network-card {
    grid-column: 1 / -1;
  }

  .page-home .cv-network-card svg {
    height: 160px;
    max-width: 480px;
  }

  .page-home .cv-decision-flow {
    gap: 13px;
  }

  .page-home .cv-decision-stage:not(:last-child)::after {
    width: 9px;
  }

  .page-home .cv-decision-stage:not(:last-child)::before {
    left: calc(100% + 9px);
  }
}

@media (max-width: 820px) {
  .page-home .cv-intake__operations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .cv-qlca-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .cv-decision-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .page-home .cv-decision-stage:nth-child(3)::after,
  .page-home .cv-decision-stage:nth-child(3)::before {
    display: none;
  }

  .page-home .cv-decision-outcomes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-home .mad-card {
    padding: 14px !important;
  }

  .page-home .cv-panel-head,
  .page-home .cv-intake__phase-status,
  .page-home .cv-evidence-pointer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-home .cv-panel-state {
    padding-top: 0;
  }

  .page-home .cv-intake__ledger {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .cv-intake__metric--volume {
    grid-column: 1 / -1;
  }

  .page-home .cv-intake__phases {
    gap: 2px;
  }

  .page-home .cv-intake__phase {
    font-size: 0;
    min-height: 8px;
    padding-top: 5px;
  }

  .page-home .cv-intake__phase.is-active {
    font-size: 0.43rem;
    grid-column: span 2;
  }

  .page-home .cv-intake__workbench,
  .page-home .cv-qlca-system__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .cv-intake__chart .cv-mini-head,
  .page-home .cv-qlca-chart-card .cv-mini-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .page-home .cv-intake__chart svg {
    height: 86px;
  }

  .page-home .cv-intake__operations,
  .page-home .cv-qlca-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .cv-network-card,
  .page-home .cv-qlca-signals,
  .page-home .cv-evidence-pointer {
    grid-column: auto;
  }

  .page-home .cv-qlca-chart {
    height: 160px;
  }

  .page-home .cv-decision-flow {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .cv-decision-stage {
    padding-left: 18px;
  }

  .page-home .cv-decision-stage:not(:last-child)::after {
    height: 12px;
    left: 7px;
    top: calc(100% - 1px);
    width: 1px;
  }

  .page-home .cv-decision-stage:not(:last-child)::before {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 5px solid #3a5658;
    left: 4px;
    top: calc(100% + 8px);
  }

  .page-home .cv-decision-stage.is-active:not(:last-child)::before,
  .page-home .cv-decision-stage.is-resolved:not(:last-child)::before {
    border-left-color: transparent;
    border-top-color: var(--cv-engine-brass);
  }

  .page-home .cv-decision-stage:nth-child(3)::after,
  .page-home .cv-decision-stage:nth-child(3)::before {
    display: block;
  }

  .page-home .cv-decision-pulses {
    bottom: 2%;
    height: auto;
    left: 7px;
    right: auto;
    top: 24px;
    width: 2px;
  }

  .page-home .cv-decision-pulses i {
    background: linear-gradient(transparent, var(--cv-engine-brass), transparent);
    height: 12%;
    transform: translateY(-120%);
    width: 100%;
  }

  .page-home .is-running .cv-decision-pulses i {
    animation-name: cv-decision-pulse-mobile;
  }

  .page-home .cv-decision-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .cv-evidence-pointer code {
    text-align: left;
  }

  .page-home main > .hero::before,
  .page-home main > .section--light::before,
  .page-home .stage1-architecture-section::before {
    background-size: auto 86%;
    opacity: 0.06;
  }
}

@keyframes cv-decision-pulse-mobile {
  0% { opacity: 0; transform: translateY(-120%); }
  8%, 90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(850%); }
}

/* Keep the homepage hero console wide and shallow without changing its data,
   animation hooks, or the dashboard's visual language. */
.page-home main > .hero > .wrap {
  max-width: 1280px !important;
}

.page-home main > .hero .mad-card {
  max-width: none !important;
  width: 100%;
}

@media (min-width: 1100px) {
  .page-home main > .hero .hero__grid {
    gap: 32px;
    grid-template-columns: minmax(350px, 400px) minmax(620px, 1fr);
  }

  .page-home main > .hero .hero__content {
    max-width: 100%;
  }

  .page-home main > .hero .hero__image {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .page-home main > .hero > .wrap {
    max-width: 1380px !important;
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-home main > .hero .hero__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (max-width: 1099px) {
  .page-home main > .hero .hero__grid {
    gap: 48px;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home main > .hero .hero__content {
    max-width: 680px;
  }

  .page-home main > .hero .hero__image {
    justify-self: center;
    max-width: 780px;
    width: 100%;
  }
}

@media (min-width: 700px) {
  .page-home main > .hero .mad-card {
    display: grid;
    grid-template-columns: minmax(180px, 1.15fr) repeat(3, minmax(0, 1fr));
    padding: 22px !important;
  }

  .page-home main > .hero .mad-head,
  .page-home main > .hero .processing-trace {
    grid-column: 1 / -1;
  }

  .page-home main > .hero .mad-head {
    margin-bottom: 0 !important;
  }

  .page-home main > .hero .processing-trace.cv-intake {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    margin: 10px 0 12px;
    padding: 16px;
  }

  .page-home main > .hero .processing-trace > .cv-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    grid-column: 1;
  }

  .page-home main > .hero .processing-trace > .cv-panel-head .cv-panel-state {
    padding-top: 0;
  }

  .page-home main > .hero .processing-trace > .cv-intake__ledger {
    grid-column: 2;
    margin-top: 0;
  }

  .page-home main > .hero .processing-trace > .cv-intake__phase-wrap,
  .page-home main > .hero .processing-trace > .cv-intake__workbench,
  .page-home main > .hero .processing-trace > .cv-panel-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .page-home main > .hero .cv-intake__chart svg {
    height: 82px;
  }

  .page-home main > .hero .cv-file-row {
    margin-top: 5px;
  }

  .page-home main > .hero .cv-intake__operations {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .page-home main > .hero .cv-operation {
    padding: 8px 6px;
  }

  .page-home main > .hero .mad-headline {
    border-bottom: 1px solid #293d3f;
    gap: 4px;
    margin: 0 !important;
    min-width: 0;
    padding: 7px 8px !important;
  }

  .page-home main > .hero .mad-rows {
    display: contents;
  }

  .page-home main > .hero .mad-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    justify-content: space-between;
    margin-top: 0 !important;
    min-width: 0;
    padding: 7px 8px !important;
  }

  .page-home main > .hero .mad-row--status {
    border-top: 0 !important;
  }

  .page-home main > .hero .mad-value {
    align-self: flex-start;
  }
}

@media (min-width: 700px) and (max-width: 749px),
       (min-width: 1100px) and (max-width: 1199px) {
  .page-home main > .hero .cv-intake__operations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .page-home main > .hero .processing-trace.cv-intake {
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cv-engine-panel *,
  .page-home .processing-trace * {
    animation: none !important;
    transition: none !important;
  }

  .page-home .cv-source-feed__flow i,
  .page-home .cv-decision-pulses i {
    display: none;
  }

  .page-home .cv-decision-node.is-active {
    transform: none;
  }
}
