/* cv08.css — Cornerstone Insurance Youthful Operators (A3 Milestone Timeline Ribbon)
   Inland Piedmont architectural blueprint styling, strictly scoped to .cv08-* */

.cv08-blueprint {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cv08-stage-shell {
  background: #0A1A33;
  border: 2px solid var(--cv-navy, #0A1A33);
  border-radius: 10px;
  box-shadow: var(--cv-shadow, 0 16px 36px -18px rgba(10, 26, 51, 0.24));
  overflow: hidden;
}

.cv08-stage-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.65rem 1rem;
  background: #081529;
  border-bottom: 1px solid rgba(87, 156, 205, 0.3);
}

.cv08-sheet-id {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

/* Stacked 3-slab keystone mark */
.cv08-keystone-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 18px;
}

.cv08-keystone-mark span {
  display: block;
  height: 3px;
  background: #579CCD;
  border-radius: 1px;
}

.cv08-keystone-mark span:first-child {
  width: 18px;
  background: #F26822;
}

.cv08-keystone-mark span:nth-child(2) {
  width: 14px;
}

.cv08-keystone-mark span:last-child {
  width: 10px;
}

.cv08-sheet-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DCECF8;
}

.cv08-phase-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  border-radius: 4px;
  background: #F26822;
  color: #0A1A33;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Locked aspect ratio guarantees 0.000 CLS */
.cv08-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  background: #0A1A33;
  overflow: hidden;
}

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

/* Phase visibility transitions inside SVG */
.cv08-scene {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv08-blueprint[data-phase="1"] .cv08-scene-1,
.cv08-blueprint[data-phase="2"] .cv08-scene-2,
.cv08-blueprint[data-phase="3"] .cv08-scene-3,
.cv08-blueprint[data-phase="4"] .cv08-scene-4 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* GPU-composited blueprint motion */
.cv08-dash-flow {
  animation: cv08-flow 3.2s linear infinite;
}

.cv08-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv08-ring-pulse 2.4s ease-out infinite;
}

.cv08-pulse-2 {
  animation-delay: 0.65s;
}

.cv08-rain {
  animation: cv08-rain-fall 1.4s linear infinite;
}

.cv08-arch-draw {
  animation: cv08-arch-glow 3.4s ease-in-out infinite;
}

.cv08-wave-line {
  stroke-dasharray: 420;
  animation: cv08-trace 4.2s ease-in-out infinite alternate;
}

.cv08-blueprint.cv08-offscreen * {
  animation-play-state: paused !important;
}

@keyframes cv08-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -38; }
}

@keyframes cv08-ring-pulse {
  0% { opacity: 0.95; transform: scale(0.92); }
  70% { opacity: 0.3; transform: scale(1.14); }
  100% { opacity: 0.95; transform: scale(0.92); }
}

@keyframes cv08-rain-fall {
  from { transform: translate(0, 0); }
  to { transform: translate(-10px, 28px); }
}

@keyframes cv08-arch-glow {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes cv08-trace {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

/* Horizontal 4-Milestone Connected Progress Rail */
.cv08-rail-wrap {
  position: relative;
  padding-top: 0.35rem;
}

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

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

.cv08-rail-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.cv08-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 54px;
  padding: 0.65rem 0.8rem;
  border: 2px solid rgba(10, 26, 51, 0.18);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--cv-navy, #0A1A33);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cv08-step:hover {
  border-color: var(--cv-blue, #2E72AC);
  background: #F4F8FC;
}

.cv08-step[aria-selected="true"] {
  border-color: var(--cv-navy, #0A1A33);
  border-left: 5px solid var(--cv-orange, #F26822);
  background: #0A1A33;
  color: #FFFFFF;
  box-shadow: 0 10px 20px -14px rgba(10, 26, 51, 0.55);
}

.cv08-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #EFF2F5;
  color: var(--cv-navy, #0A1A33);
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cv08-step[aria-selected="true"] .cv08-step-num {
  background: #F26822;
  color: #0A1A33;
}

.cv08-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cv08-step-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #B5420B;
  line-height: 1.2;
}

.cv08-step[aria-selected="true"] .cv08-step-kicker {
  color: #FDBA8C;
}

.cv08-step-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Concise Narrative Strip */
.cv08-narrative {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1.5px solid var(--cv-line-strong, rgba(10, 26, 51, 0.28));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px -20px rgba(10, 26, 51, 0.35);
}

.cv08-narrative-accent {
  width: 6px;
  flex: 0 0 6px;
  background: linear-gradient(180deg, #F26822 0%, #1C4A75 100%);
}

.cv08-narrative-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 1.25rem;
}

.cv08-narrative-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.cv08-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  background: #FEF1EA;
  color: #B5420B;
  border: 1px solid rgba(181, 66, 11, 0.25);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.cv08-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--cv-navy, #0A1A33);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--cv-navy, #0A1A33);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cv08-nav-btn:hover {
  background: var(--cv-navy, #0A1A33);
  color: #FFFFFF;
}

.cv08-narrative-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--cv-navy, #0A1A33);
}

.cv08-narrative-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--cv-body, #334155);
}

/* Mobile 390px clean wrap — zero horizontal overflow */
@media (max-width: 760px) {
  .cv08-rail-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .cv08-step {
    padding: 0.55rem 0.6rem;
    gap: 0.5rem;
  }
  .cv08-step-label {
    font-size: 0.82rem;
  }
  .cv08-narrative-body {
    padding: 0.9rem 1rem;
  }
}
