/* ============================================================
   diagrams.css — Animated phase diagrams for The Easton Way
   8 unique diagrams, each scoped under .v-hwb-{nn}
   Trigger: .v-active class toggled by diagrams.js (IntersectionObserver)
   Pattern: production v-* convention from .tmp/websites/easton/dist
   ============================================================ */

:root {
  --vh-navy: #0A1628;
  --vh-navy-mid: #11203A;
  --vh-ink: #18181B;
  --vh-body: #3F3F46;
  --vh-muted: #71717A;
  --vh-line: #E4E4E7;
  --vh-line-soft: #F4F4F5;
  --vh-bg: #FAFAFA;
  --vh-green: #10B981;
  --vh-green-deep: #047857;
  --vh-red: #DC2626;
  --vh-amber: #E0B74A;
  --vh-blue: #3B82F6;
}

/* All diagrams share the parent .hwb-phase-art-frame slot.
   Override the placeholder defaults so the diagram fills cleanly. */
.hwb-phase-art-frame.has-diagram {
  padding: 0;
  background: var(--vh-bg);
  border-color: var(--vh-line);
  overflow: hidden;
}

/* Generic diagram root — only the 9 named roots, NOT their children */
.v-hwb-hero,
.v-hwb-01,
.v-hwb-02,
.v-hwb-03,
.v-hwb-04,
.v-hwb-05,
.v-hwb-06,
.v-hwb-07,
.v-hwb-08 {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--vh-ink);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   KEYFRAMES (mirror production v-* names)
   ============================================================ */

@keyframes vhFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vhFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes vhSlideX {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes vhStamp {
  0%   { opacity: 0; transform: scale(1.5) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(0.92) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes vhBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes vhProgress {
  0%   { width: 0%; }
  18%  { width: 28%; }
  42%  { width: 57%; }
  66%  { width: 74%; }
  84%  { width: 88%; }
  100% { width: 100%; }
}
@keyframes vhShim {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes vhPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
@keyframes vhSpark {
  to { stroke-dashoffset: 0; }
}
@keyframes vhCounter {
  /* JS-driven counter; CSS just fades the number */
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   HERO — "Live methodology dashboard"
   4 agents × 6 phases, ClickUp-board style.
   Cells fill green left-to-right in waves; hard gates light up red;
   bottom status strip counts agents/phases active.
   ============================================================ */
.v-hwb-hero {
  background: linear-gradient(140deg, #0F172A 0%, #1E293B 60%, #0B1224 100%);
  border-radius: 18px;
  padding: 20px 22px;
  color: #E2E8F0;
  overflow: hidden;
  gap: 0;
}
.v-hwb-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle, rgba(224, 183, 74, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.v-hwb-hero__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.v-hwb-hero__name {
  font-family: 'Geist', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}
.v-hwb-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.14);
  color: #86EFAC;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.v-hwb-hero__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vh-green);
  animation: vhPulse 1.8s ease-in-out infinite;
}
.v-hwb-hero__head {
  position: relative;
  display: grid;
  grid-template-columns: 72px repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.v-hwb-hero__head-cell {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 0 2px;
  line-height: 1.2;
}
.v-hwb-hero__head-cell:first-child {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.v-hwb-hero__head-cell--gate { color: #F87171; }
.v-hwb-hero__row {
  position: relative;
  display: grid;
  grid-template-columns: 72px repeat(6, 1fr);
  gap: 4px;
  padding: 4px 0;
}
.v-hwb-hero__client {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 6px;
}
.v-hwb-hero__client-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}
.v-hwb-hero__cell {
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.v-hwb-hero__cell::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #6366F1, #10B981);
  border-radius: 4px;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.v-hwb-hero__cell--gate {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.28);
}
.v-hwb-hero__cell--inprog::after {
  width: 60% !important;
  background: linear-gradient(90deg, #6366F1, #93C5FD);
  animation: vhProgress 2.4s 1.2s ease-in-out infinite alternate;
}

.v-hwb-hero__foot {
  position: relative;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.v-hwb-hero__foot-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.v-hwb-hero__foot-num {
  color: #ffffff;
  font-weight: 600;
}
.v-hwb-hero__foot-stat--ok .v-hwb-hero__foot-num { color: #86EFAC; }

/* Animations — staggered row reveals + cell fills */
.v-hwb-hero.v-active .v-hwb-hero__row { opacity: 0; animation: vhFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) { animation-delay: 0.05s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) { animation-delay: 0.18s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(3) { animation-delay: 0.31s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(4) { animation-delay: 0.44s; }

.v-hwb-hero.v-active .v-hwb-hero__cell[data-fill]::after {
  width: var(--fill, 100%);
}
.v-hwb-hero.v-active .v-hwb-hero__cell[data-fill="1"] { --fill: 100%; }
.v-hwb-hero.v-active .v-hwb-hero__cell[data-fill="0"] { --fill: 0%; }

/* Stagger fill timing — left-to-right, bottom-up wave */
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell::after { transition-delay: 0.40s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell:nth-child(3)::after { transition-delay: 0.50s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell:nth-child(4)::after { transition-delay: 0.60s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell:nth-child(5)::after { transition-delay: 0.70s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell:nth-child(6)::after { transition-delay: 0.80s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(1) .v-hwb-hero__cell:nth-child(7)::after { transition-delay: 0.90s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) .v-hwb-hero__cell::after { transition-delay: 0.55s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) .v-hwb-hero__cell:nth-child(3)::after { transition-delay: 0.65s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) .v-hwb-hero__cell:nth-child(4)::after { transition-delay: 0.75s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) .v-hwb-hero__cell:nth-child(5)::after { transition-delay: 0.85s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(2) .v-hwb-hero__cell:nth-child(6)::after { transition-delay: 0.95s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(3) .v-hwb-hero__cell::after { transition-delay: 0.70s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(3) .v-hwb-hero__cell:nth-child(3)::after { transition-delay: 0.80s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(3) .v-hwb-hero__cell:nth-child(4)::after { transition-delay: 0.90s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(3) .v-hwb-hero__cell:nth-child(5)::after { transition-delay: 1.00s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(4) .v-hwb-hero__cell::after { transition-delay: 0.85s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(4) .v-hwb-hero__cell:nth-child(3)::after { transition-delay: 0.95s; }
.v-hwb-hero.v-active .v-hwb-hero__row:nth-of-type(4) .v-hwb-hero__cell:nth-child(4)::after { transition-delay: 1.05s; }

/* ============================================================
   PHASE 01 — DISCOVERY & SPEC
   PRD card filling section by section + Signed stamp
   ============================================================ */
.v-hwb-01 {
  background: linear-gradient(140deg, #ffffff 0%, #FAFAFA 100%);
  padding: 16px 18px;
  gap: 6px;
  border-radius: 16px;
}
.v-hwb-01__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--vh-line);
  margin-bottom: 4px;
}
.v-hwb-01__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vh-navy);
}
.v-hwb-01__ref {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: var(--vh-muted);
}
.v-hwb-01__row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
  opacity: 0;
}
.v-hwb-01__label {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--vh-muted);
  text-transform: uppercase;
}
.v-hwb-01__bar {
  height: 6px;
  background: var(--vh-line-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.v-hwb-01__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 100%);
  background: linear-gradient(90deg, #1E293B, var(--vh-navy));
  border-radius: 3px;
}
.v-hwb-01__stamp {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: max-content;
  height: max-content;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid var(--vh-green);
  color: var(--vh-green-deep);
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-8deg);
  transform-origin: right bottom;
}

.v-hwb-01.v-active .v-hwb-01__row {
  animation: vhFadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.v-hwb-01.v-active .v-hwb-01__row:nth-child(2) { animation-delay: 0.15s; }
.v-hwb-01.v-active .v-hwb-01__row:nth-child(3) { animation-delay: 0.30s; }
.v-hwb-01.v-active .v-hwb-01__row:nth-child(4) { animation-delay: 0.45s; }
.v-hwb-01.v-active .v-hwb-01__row:nth-child(5) { animation-delay: 0.60s; }
.v-hwb-01.v-active .v-hwb-01__row:nth-child(6) { animation-delay: 0.75s; }
.v-hwb-01.v-active .v-hwb-01__row:nth-child(7) { animation-delay: 0.90s; }
.v-hwb-01.v-active .v-hwb-01__stamp {
  animation: vhStamp 0.50s cubic-bezier(0.34, 1.56, 0.64, 1) 1.20s forwards;
}

/* ============================================================
   PHASE 02 — ARCHITECTURE & CREDENTIALS
   3-node flow + credential chips
   ============================================================ */
.v-hwb-02 {
  background: linear-gradient(140deg, #ffffff 0%, #F4F4F5 100%);
  padding: 18px;
  gap: 14px;
  border-radius: 16px;
}
.v-hwb-02__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.v-hwb-02__node {
  background: #ffffff;
  border: 1px solid var(--vh-line);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  opacity: 0;
}
.v-hwb-02__node-icon {
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  border-radius: 4px;
  background: var(--vh-line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--vh-muted);
}
.v-hwb-02__node--agent .v-hwb-02__node-icon {
  background: var(--vh-navy);
  color: #ffffff;
}
.v-hwb-02__node-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vh-ink);
}
.v-hwb-02__arrow {
  width: 22px;
  height: 14px;
  opacity: 0;
}
.v-hwb-02__arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.v-hwb-02__arrow path {
  stroke: var(--vh-muted);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.v-hwb-02__chips {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--vh-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v-hwb-02__chips-label {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--vh-muted);
  text-transform: uppercase;
}
.v-hwb-02__chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background: #ffffff;
  border: 1px solid var(--vh-line);
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: var(--vh-body);
  opacity: 0;
}
.v-hwb-02__chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vh-line);
  transition: background 0.4s ease;
}
.v-hwb-02__chip-row.is-on .v-hwb-02__chip-dot {
  background: var(--vh-green);
}

.v-hwb-02.v-active .v-hwb-02__node { animation: vhFadeIn 0.30s ease forwards; }
.v-hwb-02.v-active .v-hwb-02__node:nth-child(3) { animation-delay: 0.10s; }
.v-hwb-02.v-active .v-hwb-02__node:nth-child(5) { animation-delay: 0.20s; }
.v-hwb-02.v-active .v-hwb-02__arrow { animation: vhFadeIn 0.20s ease forwards; }
.v-hwb-02.v-active .v-hwb-02__arrow:nth-of-type(1) { animation-delay: 0.30s; }
.v-hwb-02.v-active .v-hwb-02__arrow:nth-of-type(2) { animation-delay: 0.40s; }
.v-hwb-02.v-active .v-hwb-02__arrow path {
  animation: vhSpark 0.45s ease forwards;
}
.v-hwb-02.v-active .v-hwb-02__arrow:nth-of-type(1) path { animation-delay: 0.30s; }
.v-hwb-02.v-active .v-hwb-02__arrow:nth-of-type(2) path { animation-delay: 0.40s; }
.v-hwb-02.v-active .v-hwb-02__chip-row { animation: vhFadeUp 0.30s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.v-hwb-02.v-active .v-hwb-02__chip-row:nth-of-type(1) { animation-delay: 0.65s; }
.v-hwb-02.v-active .v-hwb-02__chip-row:nth-of-type(2) { animation-delay: 0.85s; }
.v-hwb-02.v-active .v-hwb-02__chip-row:nth-of-type(3) { animation-delay: 1.05s; }

/* ============================================================
   PHASE 03 — BUILD
   Code editor terminal + test indicator
   ============================================================ */
.v-hwb-03 {
  background: var(--vh-navy);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  color: #E2E8F0;
}
.v-hwb-03__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.v-hwb-03__bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.v-hwb-03__bar-name {
  margin-left: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}
.v-hwb-03__body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.v-hwb-03__line {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  line-height: 1.5;
  opacity: 0;
}
.v-hwb-03__lnum {
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
}
.v-hwb-03__code .k { color: #F472B6; }
.v-hwb-03__code .s { color: #86EFAC; }
.v-hwb-03__code .fn { color: #93C5FD; }
.v-hwb-03__code .c { color: rgba(255, 255, 255, 0.4); }
.v-hwb-03__cursor {
  display: inline-block;
  width: 5px;
  height: 11px;
  background: var(--vh-green);
  vertical-align: text-bottom;
  margin-left: 2px;
  opacity: 0;
}
.v-hwb-03__test {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.10);
  border-top: 1px solid rgba(16, 185, 129, 0.18);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #86EFAC;
  opacity: 0;
}
.v-hwb-03__test-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vh-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

.v-hwb-03.v-active .v-hwb-03__line { animation: vhFadeUp 0.20s ease forwards; }
.v-hwb-03.v-active .v-hwb-03__line:nth-of-type(1) { animation-delay: 0.10s; }
.v-hwb-03.v-active .v-hwb-03__line:nth-of-type(2) { animation-delay: 0.28s; }
.v-hwb-03.v-active .v-hwb-03__line:nth-of-type(3) { animation-delay: 0.46s; }
.v-hwb-03.v-active .v-hwb-03__line:nth-of-type(4) { animation-delay: 0.64s; }
.v-hwb-03.v-active .v-hwb-03__line:nth-of-type(5) { animation-delay: 0.82s; }
.v-hwb-03.v-active .v-hwb-03__cursor {
  animation: vhFadeIn 0.1s 1.00s forwards, vhBlink 1s 1.0s 4 forwards;
}
.v-hwb-03.v-active .v-hwb-03__test {
  animation: vhFadeUp 0.30s 1.30s ease forwards;
}
.v-hwb-03.v-active .v-hwb-03__test-dot {
  animation: vhPulse 1.6s 1.50s ease-in-out 2;
}

/* ============================================================
   PHASE 04 — INTERNAL QA
   Edge case checklist + load test gauge
   ============================================================ */
.v-hwb-04 {
  background: linear-gradient(140deg, #ffffff 0%, #FAFAFA 100%);
  padding: 14px 16px;
  gap: 6px;
  border-radius: 16px;
}
.v-hwb-04__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vh-muted);
  margin-bottom: 6px;
}
.v-hwb-04__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background: #ffffff;
  border: 1px solid var(--vh-line);
  border-radius: 6px;
  font-size: 10px;
  color: var(--vh-body);
  opacity: 0;
}
.v-hwb-04__row-name {
  font-family: 'Geist Mono', monospace;
}
.v-hwb-04__pass {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--vh-green-deep);
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.v-hwb-04__pass::before {
  content: '✓';
  font-size: 10px;
}
.v-hwb-04__gauge {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--vh-line);
}
.v-hwb-04__gauge-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--vh-muted);
}
.v-hwb-04__gauge-row strong {
  color: var(--vh-navy);
  font-weight: 600;
}
.v-hwb-04__bar {
  height: 5px;
  background: var(--vh-line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.v-hwb-04__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--vh-navy), var(--vh-green));
  border-radius: 3px;
}

.v-hwb-04.v-active .v-hwb-04__row { animation: vhFadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.v-hwb-04.v-active .v-hwb-04__row:nth-of-type(1) { animation-delay: 0.05s; }
.v-hwb-04.v-active .v-hwb-04__row:nth-of-type(2) { animation-delay: 0.20s; }
.v-hwb-04.v-active .v-hwb-04__row:nth-of-type(3) { animation-delay: 0.35s; }
.v-hwb-04.v-active .v-hwb-04__row:nth-of-type(4) { animation-delay: 0.50s; }
.v-hwb-04.v-active .v-hwb-04__row:nth-of-type(5) { animation-delay: 0.65s; }
.v-hwb-04.v-active .v-hwb-04__bar-fill {
  animation: vhProgress 1.4s 1.00s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* ============================================================
   PHASE 05 — CLIENT UAT
   Success criteria pass/fail + signed badge
   ============================================================ */
.v-hwb-05 {
  background: linear-gradient(140deg, #ffffff 0%, #FAFAFA 100%);
  padding: 14px 16px;
  gap: 6px;
  border-radius: 16px;
}
.v-hwb-05__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--vh-line);
}
.v-hwb-05__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vh-muted);
}
.v-hwb-05__ref {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--vh-muted);
}
.v-hwb-05__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 10.5px;
  color: var(--vh-ink);
  opacity: 0;
  border-bottom: 1px solid var(--vh-line-soft);
}
.v-hwb-05__row:last-of-type { border-bottom: none; }
.v-hwb-05__pass {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--vh-green-deep);
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v-hwb-05__pass::before { content: '✓'; font-size: 10px; }
.v-hwb-05__signed {
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--vh-navy);
  color: #ffffff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
}
.v-hwb-05__signed-sig {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

.v-hwb-05.v-active .v-hwb-05__row { animation: vhFadeUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.v-hwb-05.v-active .v-hwb-05__row:nth-of-type(1) { animation-delay: 0.05s; }
.v-hwb-05.v-active .v-hwb-05__row:nth-of-type(2) { animation-delay: 0.22s; }
.v-hwb-05.v-active .v-hwb-05__row:nth-of-type(3) { animation-delay: 0.39s; }
.v-hwb-05.v-active .v-hwb-05__row:nth-of-type(4) { animation-delay: 0.56s; }
.v-hwb-05.v-active .v-hwb-05__row:nth-of-type(5) { animation-delay: 0.73s; }
.v-hwb-05.v-active .v-hwb-05__signed {
  animation: vhFadeUp 0.4s 1.10s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================================
   PHASE 06 — DEPLOY & HANDOFF
   Stepped deploy bar + handoff package cards
   ============================================================ */
.v-hwb-06 {
  background: var(--vh-navy);
  color: #E2E8F0;
  padding: 14px 16px;
  gap: 10px;
  border-radius: 16px;
}
.v-hwb-06__step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.7);
}
.v-hwb-06__step-label { letter-spacing: 0.05em; text-transform: uppercase; }
.v-hwb-06__step-pct {
  opacity: 0;
  color: var(--vh-green);
  font-weight: 600;
}
.v-hwb-06__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.v-hwb-06__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366F1, var(--vh-green));
  border-radius: 3px;
}
.v-hwb-06__live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #86EFAC;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
}
.v-hwb-06__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vh-green);
  animation: vhPulse 1.4s ease-in-out infinite;
}
.v-hwb-06__handoff {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.v-hwb-06__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
}
.v-hwb-06__card-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vh-amber);
}

.v-hwb-06.v-active .v-hwb-06__bar-fill {
  animation: vhProgress 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.v-hwb-06.v-active .v-hwb-06__step-pct {
  animation: vhFadeIn 0.3s 1.60s ease forwards;
}
.v-hwb-06.v-active .v-hwb-06__live {
  animation: vhFadeUp 0.4s 1.70s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.v-hwb-06.v-active .v-hwb-06__card { animation: vhSlideX 0.30s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.v-hwb-06.v-active .v-hwb-06__card:nth-of-type(1) { animation-delay: 1.95s; }
.v-hwb-06.v-active .v-hwb-06__card:nth-of-type(2) { animation-delay: 2.10s; }
.v-hwb-06.v-active .v-hwb-06__card:nth-of-type(3) { animation-delay: 2.25s; }

/* ============================================================
   PHASE 07 — STABILIZATION
   Streaming log + days counter
   ============================================================ */
.v-hwb-07 {
  background: var(--vh-navy);
  color: #E2E8F0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}
.v-hwb-07__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}
.v-hwb-07__days {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #86EFAC;
}
.v-hwb-07__days-num {
  font-weight: 600;
}
.v-hwb-07__body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v-hwb-07__log {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px;
  align-items: baseline;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
}
.v-hwb-07__time { color: rgba(255, 255, 255, 0.35); }
.v-hwb-07__level {
  padding: 0 4px;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.v-hwb-07__level--ok   { color: #86EFAC; background: rgba(16, 185, 129, 0.12); }
.v-hwb-07__level--info { color: #93C5FD; background: rgba(59, 130, 246, 0.12); }
.v-hwb-07__clear {
  margin-top: auto;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.12);
  border-top: 1px solid rgba(16, 185, 129, 0.18);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: #86EFAC;
  opacity: 0;
}
.v-hwb-07__clear-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vh-green);
  animation: vhPulse 1.6s ease-in-out infinite;
}

.v-hwb-07.v-active .v-hwb-07__log { animation: vhFadeUp 0.20s ease forwards; }
.v-hwb-07.v-active .v-hwb-07__log:nth-of-type(1) { animation-delay: 0.15s; }
.v-hwb-07.v-active .v-hwb-07__log:nth-of-type(2) { animation-delay: 0.40s; }
.v-hwb-07.v-active .v-hwb-07__log:nth-of-type(3) { animation-delay: 0.65s; }
.v-hwb-07.v-active .v-hwb-07__log:nth-of-type(4) { animation-delay: 0.90s; }
.v-hwb-07.v-active .v-hwb-07__clear {
  animation: vhFadeUp 0.35s 1.40s ease forwards;
}

/* ============================================================
   PHASE 08 — CLOSEOUT & RETRO
   4-metric retro grid with skeleton → live + sparklines
   ============================================================ */
.v-hwb-08 {
  background: linear-gradient(140deg, #ffffff 0%, #F4F4F5 100%);
  padding: 14px 16px;
  border-radius: 16px;
}
.v-hwb-08__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vh-muted);
  margin-bottom: 8px;
}
.v-hwb-08__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.v-hwb-08__tile {
  position: relative;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--vh-line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 56px;
}
.v-hwb-08__shim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04) 50%, transparent);
  background-size: 200% 100%;
  animation: vhShim 1.2s ease infinite;
  transition: opacity 0.3s ease;
}
.v-hwb-08__live {
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.v-hwb-08__label {
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vh-muted);
  margin-bottom: 2px;
}
.v-hwb-08__value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vh-ink);
  line-height: 1.05;
}
.v-hwb-08__spark {
  margin-top: auto;
  width: 100%;
  height: 14px;
}
.v-hwb-08__spark path {
  fill: none;
  stroke: var(--vh-green);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.v-hwb-08.v-active .v-hwb-08__shim { opacity: 0; }
.v-hwb-08.v-active .v-hwb-08__live { opacity: 1; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(1) .v-hwb-08__live { transition-delay: 0.10s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(2) .v-hwb-08__live { transition-delay: 0.25s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(3) .v-hwb-08__live { transition-delay: 0.40s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(4) .v-hwb-08__live { transition-delay: 0.55s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(1) .v-hwb-08__shim { transition-delay: 0.10s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(2) .v-hwb-08__shim { transition-delay: 0.25s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(3) .v-hwb-08__shim { transition-delay: 0.40s; }
.v-hwb-08.v-active .v-hwb-08__tile:nth-of-type(4) .v-hwb-08__shim { transition-delay: 0.55s; }
.v-hwb-08.v-active .v-hwb-08__spark path { animation: vhSpark 1.0s 0.80s ease forwards; }

/* ============================================================
   REDUCED MOTION FALLBACK
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .v-hwb-hero *, .v-hwb-01 *, .v-hwb-02 *, .v-hwb-03 *, .v-hwb-04 *,
  .v-hwb-05 *, .v-hwb-06 *, .v-hwb-07 *, .v-hwb-08 * {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .v-hwb-01__row,
  .v-hwb-01__stamp,
  .v-hwb-02__node,
  .v-hwb-02__arrow,
  .v-hwb-02__chip-row,
  .v-hwb-03__line,
  .v-hwb-03__test,
  .v-hwb-04__row,
  .v-hwb-05__row,
  .v-hwb-05__signed,
  .v-hwb-06__card,
  .v-hwb-06__live,
  .v-hwb-06__step-pct,
  .v-hwb-07__log,
  .v-hwb-07__clear,
  .v-hwb-08__live { opacity: 1 !important; transform: none !important; }
  .v-hwb-04__bar-fill,
  .v-hwb-06__bar-fill { width: 100% !important; }
  .v-hwb-08__shim { opacity: 0 !important; }
  .v-hwb-02__arrow path,
  .v-hwb-08__spark path { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   MOBILE TIGHTEN
   ============================================================ */
@media (max-width: 640px) {
  .v-hwb-01__row { grid-template-columns: 60px 1fr; gap: 6px; }
  .v-hwb-01__label { font-size: 8px; }
  .v-hwb-08__value { font-size: 15px; }
  .v-hwb-08__grid { gap: 6px; }
  .v-hwb-08__tile { padding: 8px 10px; min-height: 50px; }
}
