.intelligence-panels {
  position: absolute;
  z-index: 4;
  top: 12%;
  right: 6.5%;
  bottom: 18%;
  left: 6.5%;
  pointer-events: none;
}

.intelligence-panel {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(18px, 2.2vh, 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  color: #f4f3ee;
  background: none;
  box-shadow: none;
  opacity: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.62);
  transform: translateY(24px);
  visibility: hidden;
  transition:
    opacity 320ms ease,
    transform 680ms var(--ease),
    visibility 0s linear 680ms;
}

.clock-layout[data-clock="before"]
  .intelligence-panel[data-intelligence-panel="before"],
.clock-layout[data-clock="live"]
  .intelligence-panel[data-intelligence-panel="live"],
.clock-layout[data-clock="after"]
  .intelligence-panel[data-intelligence-panel="after"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.intelligence-panel__header,
.intelligence-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intelligence-panel__header {
  position: relative;
  padding-bottom: 14px;
  background: linear-gradient(
      90deg,
      var(--live) 0 44px,
      rgba(255, 255, 255, 0.3) 44px 100%
    )
    bottom / 100% 1px no-repeat;
}

.intelligence-panel__header > div > span,
.intelligence-panel__footer,
.question-heatmap > header,
.executive-routing > header,
.velocity-chart figcaption,
.live-decisions > header,
.resonance-bars > header,
.evidence-composition > header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intelligence-panel__header > div > strong {
  display: block;
  max-width: 560px;
  margin-top: 6px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.intelligence-metrics {
  display: flex;
  margin: 0;
}

.intelligence-metrics > div {
  min-width: 94px;
  padding: 2px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.intelligence-metrics dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelligence-metrics dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 25px);
  font-weight: 420;
  line-height: 1;
}

.intelligence-panel__footer {
  display: none;
}

.intelligence-panel__footer strong {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 730;
}

.preparation-model {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, 0.55fr);
  gap: clamp(28px, 3.2vw, 52px);
  align-items: start;
  padding: 4px 0;
}

.preparation-model::before,
.live-analysis::before,
.resonance-analysis::before {
  position: absolute;
  z-index: -1;
  inset: -34px -5vw -30px;
  background: radial-gradient(
    ellipse at 48% 52%,
    rgba(5, 8, 9, 0.7) 0%,
    rgba(5, 8, 9, 0.48) 48%,
    rgba(5, 8, 9, 0.14) 72%,
    transparent 88%
  );
  content: "";
}

.question-heatmap,
.executive-routing,
.velocity-chart,
.live-decisions,
.resonance-bars,
.evidence-composition {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.question-heatmap > header,
.heatmap-row {
  display: grid;
  grid-template-columns: minmax(92px, 1.3fr) repeat(5, minmax(30px, 0.7fr));
  gap: 6px;
}

.question-heatmap > header {
  align-items: end;
  padding-bottom: 8px;
  text-align: center;
}

.question-heatmap > header span:first-child {
  text-align: left;
}

.heatmap-row {
  align-items: stretch;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap-row > strong {
  align-self: center;
  font-size: 9px;
  font-weight: 650;
}

.heatmap-row > strong small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 7px;
  font-weight: 500;
}

.heatmap-row > span {
  position: relative;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.heatmap-row > span::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 56%),
    var(--live);
  content: "";
  opacity: var(--heat);
  transform: scaleX(0);
  transform-origin: left;
}

.clock-layout[data-clock="before"] .heatmap-row > span::before {
  animation: heatmap-resolve 720ms var(--ease) forwards;
}

.heatmap-row:nth-child(3) > span::before {
  animation-delay: 70ms;
}

.heatmap-row:nth-child(4) > span::before {
  animation-delay: 140ms;
}

.heatmap-row:nth-child(5) > span::before {
  animation-delay: 210ms;
}

.heatmap-row:nth-child(6) > span::before {
  animation-delay: 280ms;
}

.question-heatmap > footer {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 7px;
}

.question-heatmap > footer i {
  height: 4px;
  background: linear-gradient(90deg, rgba(216, 74, 63, 0.08), var(--live));
}

.executive-routing > header,
.live-decisions > header,
.evidence-composition > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.executive-routing,
.live-decisions,
.evidence-composition {
  padding-left: clamp(20px, 2.2vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.executive-routing > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: end;
  padding: 12px 0 4px;
}

.executive-routing p,
.executive-routing strong,
.executive-routing span {
  display: block;
  margin: 0;
}

.executive-routing p {
  grid-column: 1 / -1;
}

.executive-routing p strong {
  font-size: 9px;
  font-weight: 650;
}

.executive-routing p span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
}

.executive-routing > div > i {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.executive-routing > div > i b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), #f2f1ec);
}

.clock-layout[data-clock="before"] .executive-routing > div > i b {
  animation: fit-resolve 900ms var(--ease) 260ms forwards;
}

.executive-routing em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-style: normal;
}

.executive-routing .routing-note {
  margin-top: 14px;
  padding: 10px 0 0 12px;
  border-left: 2px solid var(--live);
  color: rgba(255, 255, 255, 0.62);
  background: none;
  font-size: 8px;
  line-height: 1.48;
}

.live-analysis,
.resonance-analysis {
  position: relative;
  display: grid;
  min-height: 0;
  gap: clamp(30px, 3.6vw, 58px);
  align-items: center;
  padding: 2px 0;
}

.live-analysis {
  grid-template-columns: minmax(0, 1.52fr) minmax(220px, 0.48fr);
}

.velocity-chart {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto;
  margin: 0;
}

.velocity-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.velocity-chart figcaption strong,
.live-decisions > header strong,
.evidence-composition > header strong {
  color: rgba(255, 255, 255, 0.74);
}

.velocity-chart svg {
  width: 100%;
  min-height: 0;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.chart-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.chart-labels text,
.chart-marker text {
  fill: rgba(255, 255, 255, 0.4);
  font: 700 8px/1 var(--sans);
  letter-spacing: 0.04em;
}

.velocity-area {
  fill: url(#message-area);
  opacity: 0;
}

.velocity-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.velocity-line--message {
  stroke: #f2f1ec;
}

.velocity-line--risk {
  stroke: var(--live);
  stroke-width: 2;
}

.clock-layout[data-clock="live"] .velocity-area {
  animation: area-resolve 700ms ease 500ms forwards;
}

.clock-layout[data-clock="live"] .velocity-line {
  animation: line-resolve 1.45s var(--ease) forwards;
}

.clock-layout[data-clock="live"] .velocity-line--risk {
  animation-delay: 180ms;
}

.chart-marker {
  opacity: 0;
}

.chart-marker path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-dasharray: 3 5;
}

.chart-marker circle {
  fill: #f2f1ec;
  stroke: rgba(7, 10, 11, 0.8);
  stroke-width: 4;
}

.chart-marker--two circle {
  fill: var(--live);
}

.clock-layout[data-clock="live"] .chart-marker {
  animation: marker-resolve 420ms ease 980ms forwards;
}

.clock-layout[data-clock="live"] .chart-marker--two {
  animation-delay: 1.22s;
}

.chart-legend {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 7px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 15px;
  height: 2px;
  background: #f2f1ec;
}

.chart-legend span:last-child i {
  background: var(--live);
}

.live-decisions {
  display: grid;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
}

.live-decisions ol {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-decisions li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(10px);
}

.clock-layout[data-clock="live"] .live-decisions li {
  animation: decision-resolve 420ms var(--ease) 620ms forwards;
}

.clock-layout[data-clock="live"] .live-decisions li:nth-child(2) {
  animation-delay: 760ms;
}

.clock-layout[data-clock="live"] .live-decisions li:nth-child(3) {
  animation-delay: 900ms;
}

.live-decisions li.is-priority {
  margin-left: -14px;
  padding-left: 12px;
  border-left: 2px solid var(--live);
  background: linear-gradient(90deg, rgba(216, 74, 63, 0.11), transparent);
}

.live-decisions time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 7px;
}

.live-decisions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  line-height: 1.4;
}

.live-decisions p strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
}

.decision-recommendation,
.evidence-gap {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: none;
}

.decision-recommendation span,
.evidence-gap span {
  color: var(--live);
  font-size: 7px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-recommendation strong,
.evidence-gap strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 8px;
  font-weight: 520;
  line-height: 1.45;
}

.resonance-analysis {
  grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.58fr);
}

.resonance-bars > header {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr 1fr 30px;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.resonance-bars > header span:nth-child(n + 2) {
  text-align: center;
}

.resonance-bars > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr 1fr 30px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.resonance-bars > div > strong {
  font-size: 9px;
  font-weight: 650;
}

.resonance-bars > div > strong small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 7px;
  font-weight: 500;
}

.resonance-bars > div > i {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.resonance-bars > div > i b {
  display: block;
  width: 0;
  height: 100%;
}

.resonance-bars i.planned b {
  background: rgba(255, 255, 255, 0.34);
}

.resonance-bars i.observed b {
  background: #f2f1ec;
}

.clock-layout[data-clock="after"] .resonance-bars i.planned b {
  animation: planned-resolve 860ms var(--ease) forwards;
}

.clock-layout[data-clock="after"] .resonance-bars i.observed b {
  animation: observed-resolve 980ms var(--ease) 140ms forwards;
}

.resonance-bars em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.resonance-bars > div:nth-child(4) em {
  color: var(--live);
}

.resonance-bars > footer {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
}

.resonance-bars > footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.resonance-bars > footer i {
  width: 15px;
  height: 5px;
  background: rgba(255, 255, 255, 0.34);
}

.resonance-bars > footer span:last-child i {
  background: #f2f1ec;
}

.evidence-composition {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.evidence-stack {
  display: flex;
  height: 34px;
  margin-top: 18px;
  overflow: hidden;
}

.evidence-stack i {
  display: grid;
  width: var(--share);
  place-items: center;
  border-right: 1px solid rgba(7, 10, 11, 0.62);
  background: #f2f1ec;
  color: #101314;
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
  transform: scaleX(0);
  transform-origin: left;
}

.evidence-stack i:nth-child(2) {
  background: #909795;
}

.evidence-stack i:nth-child(3) {
  background: var(--live);
  color: #fff;
}

.clock-layout[data-clock="after"] .evidence-stack i {
  animation: evidence-stack-resolve 780ms var(--ease) 280ms forwards;
}

.clock-layout[data-clock="after"] .evidence-stack i:nth-child(2) {
  animation-delay: 380ms;
}

.clock-layout[data-clock="after"] .evidence-stack i:nth-child(3) {
  animation-delay: 480ms;
}

.evidence-composition dl {
  margin: 12px 0 0;
}

.evidence-composition dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 7px;
}

.evidence-composition dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.evidence-gap {
  margin-top: 12px;
}

@keyframes heatmap-resolve {
  to {
    transform: scaleX(1);
  }
}

@keyframes fit-resolve {
  to {
    width: var(--fit);
  }
}

@keyframes line-resolve {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes area-resolve {
  to {
    opacity: 1;
  }
}

@keyframes marker-resolve {
  to {
    opacity: 1;
  }
}

@keyframes decision-resolve {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes planned-resolve {
  to {
    width: var(--planned);
  }
}

@keyframes observed-resolve {
  to {
    width: var(--observed);
  }
}

@keyframes evidence-stack-resolve {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1120px) {
  .intelligence-panels {
    top: 14%;
    right: 5%;
    bottom: 19%;
    left: 5%;
  }

  .intelligence-metrics > div {
    min-width: 70px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .executive-routing,
  .live-decisions,
  .evidence-composition {
    display: none;
  }

  .preparation-model,
  .live-analysis,
  .resonance-analysis {
    grid-template-columns: 1fr;
  }

  .preparation-model::before,
  .live-analysis::before,
  .resonance-analysis::before {
    right: -8vw;
    left: -8vw;
  }
}

@media (max-width: 820px) {
  .intelligence-panels {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intelligence-panel,
  .heatmap-row > span::before,
  .executive-routing > div > i b,
  .velocity-area,
  .velocity-line,
  .chart-marker,
  .live-decisions li,
  .resonance-bars i b,
  .evidence-stack i {
    animation: none !important;
    transition: none !important;
  }

  .heatmap-row > span::before,
  .evidence-stack i {
    transform: none;
  }

  .executive-routing > div > i b {
    width: var(--fit);
  }

  .velocity-area,
  .chart-marker,
  .live-decisions li {
    opacity: 1;
    transform: none;
  }

  .velocity-line {
    stroke-dashoffset: 0;
  }

  .resonance-bars i.planned b {
    width: var(--planned);
  }

  .resonance-bars i.observed b {
    width: var(--observed);
  }
}
