/* cv05.css — Cornerstone Insurance Inland Flash-Flood Elevation Timeline (A3)
   Inland Piedmont Architectural Blueprint aesthetic, WCAG 2.2 AA, zero CLS, strictly scoped to .cv05-* */

.cv05-frame {
  background: var(--cv-paper, #FFFFFF);
  border: 2px solid #0A1A33;
  border-radius: 8px;
  box-shadow: var(--cv-shadow, 0 2px 4px rgba(10, 26, 51, 0.05), 0 16px 36px -18px rgba(10, 26, 51, 0.2));
  overflow: hidden;
}

.cv05-specbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: #EFF2F5;
  border-bottom: 2px solid #0A1A33;
}

.cv05-datum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

/* Stacked 3-slab keystone architectural accent */
.cv05-keystone {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
  flex: 0 0 auto;
}

.cv05-slab {
  display: block;
  height: 3px;
  background: #0A1A33;
  border-radius: 1px;
}

.cv05-slab:nth-child(1) { width: 18px; background: #F26822; }
.cv05-slab:nth-child(2) { width: 14px; }
.cv05-slab:nth-child(3) { width: 10px; background: #1C4A75; }

.cv05-phase-code {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A1A33;
}

.cv05-elev-pill {
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 51, 0.28);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1C4A75;
}

.cv05-frame[data-cv05-stage="1"] .cv05-elev-pill {
  background: #FEF1EA;
  border-color: #B5420B;
  color: #B5420B;
}

.cv05-step-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cv05-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 56px;
  padding: 0 0.85rem;
  border-radius: 6px;
  border: 1.5px solid #0A1A33;
  background: #FFFFFF;
  color: #0A1A33;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cv05-nav-btn:hover {
  background: #0A1A33;
  color: #FFFFFF;
}

/* Aspect-ratio locked Blueprint SVG stage -> CLS 0.000 */
.cv05-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  background: #0B203F;
  overflow: hidden;
}

.cv05-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* GPU-composited stage visibility transitions */
.cv05-s0,
.cv05-s1,
.cv05-s2,
.cv05-s3 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(6px);
}

.cv05-frame[data-cv05-stage="0"] .cv05-s0,
.cv05-frame[data-cv05-stage="1"] .cv05-s1,
.cv05-frame[data-cv05-stage="2"] .cv05-s2,
.cv05-frame[data-cv05-stage="3"] .cv05-s3 {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cv05-dash-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}

@keyframes cv05-rain-drop {
  0% { transform: translate(0, 0); opacity: 0.25; }
  50% { opacity: 0.85; }
  100% { transform: translate(-8px, 16px); opacity: 0.2; }
}

@keyframes cv05-surge-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cv05-trace {
  animation: cv05-dash-flow 2.4s linear infinite;
}

.cv05-rain {
  animation: cv05-rain-drop 1.5s linear infinite;
  will-change: transform, opacity;
}

.cv05-flood-wave {
  animation: cv05-surge-pulse 3.2s ease-in-out infinite;
  will-change: transform;
}

/* Horizontal 4-Milestone Connected Progress Rail */
.cv05-rail-wrap {
  position: relative;
  padding: 1.05rem 1.15rem 1rem;
  background: #F4F7FA;
  border-top: 2px solid #0A1A33;
  border-bottom: 1px solid var(--cv-line, rgba(10, 26, 51, 0.14));
}

.cv05-rail-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(10, 26, 51, 0.14);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.cv05-rail-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1C4A75 0%, #2E72AC 65%, #F26822 100%);
  transform-origin: left center;
  transform: scaleX(0.25);
  transition: transform 0.35s ease;
}

.cv05-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.cv05-ms {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  min-width: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1.5px solid rgba(10, 26, 51, 0.24);
  background: #FFFFFF;
  color: #0A1A33;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cv05-ms:hover {
  background: #E8F2FA;
  border-color: #1C4A75;
}

.cv05-ms:active {
  transform: scale(0.99);
}

.cv05-ms.is-active,
.cv05-ms[aria-selected="true"] {
  background: #0A1A33;
  border-color: #0A1A33;
  color: #FFFFFF;
}

.cv05-ms-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #EFF2F5;
  color: #0A1A33;
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cv05-ms.is-active .cv05-ms-num,
.cv05-ms[aria-selected="true"] .cv05-ms-num {
  background: #F26822;
  color: #0A1A33;
}

.cv05-ms-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cv05-ms-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.cv05-ms-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
}

.cv05-ms.is-active .cv05-ms-meta,
.cv05-ms[aria-selected="true"] .cv05-ms-meta {
  color: #CFE6F7;
}

/* Concise Narrative Strip + 3 Blueprint Spec Readouts */
.cv05-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  background: #FFFFFF;
}

.cv05-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  background: #FEF1EA;
  border: 1px solid rgba(181, 66, 11, 0.28);
  color: #B5420B;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.cv05-panel-title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.28;
  color: #0A1A33;
}

.cv05-panel-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: #334155;
}

.cv05-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0;
}

.cv05-spec {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: #EFF2F5;
  border-left: 4px solid #1C4A75;
}

.cv05-frame[data-cv05-stage="1"] .cv05-spec:first-child {
  border-left-color: #F26822;
}

.cv05-spec-k {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.cv05-spec-v {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0A1A33;
  line-height: 1.3;
}

/* Responsive — zero overflow at 390px mobile */
@media (max-width: 900px) {
  .cv05-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv05-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .cv05-specbar {
    padding: 0.7rem 0.85rem;
  }
  .cv05-rail-wrap {
    padding: 0.85rem;
  }
  .cv05-panel {
    padding: 0.95rem 0.85rem;
  }
  .cv05-milestones {
    grid-template-columns: minmax(0, 1fr);
  }
}
