/* Program cards: compact layout plus artwork templates for new programs. Original animated designs live in components-extra.css. */
.flagship-card { padding: 30px; gap: 20px; min-height: 460px; border-radius: 22px; }
.flagship-card__text { gap: 12px; max-width: 460px; }
.flagship-card__text h3 { font-size: 32px; }
.flagship-card__text p { font-size: 15px; line-height: 1.6; }
.flagship-card__stats { padding-top: 18px; gap: 12px; }
.flagship-card--deep { background: #06202F; }
.flagship-card--t-genai:not(.flagship-card--wide) .genai-viz { position: static; width: 100%; height: auto; margin: 4px 0 8px; }
.flagship-card--t-genai:not(.flagship-card--wide) { min-height: 0; }
.flagship-card--t-neural, .flagship-card--t-cascade { min-height: 500px; }
.flagship-card--t-neural .flagship-decor { width: 250px; height: 183px; top: 48px; right: -6px; }
.flagship-card--t-cascade .flagship-cascade { top: 54px; gap: 7px; right: 30px; }
.flagship-card--t-cascade .flagship-cascade__row .chip { padding-block: 4px; }
.programs__grid--flag { gap: 22px; }

.pa-algo, .pa-grid, .pa-code, .pa-image { position: absolute; right: 30px; top: 78px; pointer-events: none; }
.pa-algo { width: min(44%, 280px); height: 140px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.pa-algo__bars { flex: 1; display: flex; align-items: flex-end; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.2); }
.pa-algo__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.2); transform-origin: bottom; transition: background-color .3s; }
.pa-algo__bars i:nth-child(4) { background: #FF0042; }
.flagship-card.is-visible .pa-algo__bars i { animation: paBar 2.2s cubic-bezier(.22,1,.36,1) calc(var(--i) * .16s) infinite alternate; }
.pa-algo__lab { align-self: flex-end; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.7); }
@keyframes paBar { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

.pa-grid { width: min(40%, 230px); display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.pa-grid i { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.12); }
.pa-grid i.on { background: #FF0042; }
.flagship-card.is-visible .pa-grid i { animation: paPulse 2.8s ease-in-out calc(var(--i) * .22s) infinite; }
@keyframes paPulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }

.pa-code { width: min(48%, 300px); display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.78); }
.pa-code span { display: block; white-space: pre; overflow: hidden; max-width: 100%; opacity: .0; }
.flagship-card.is-visible .pa-code span { animation: paType 1s steps(24, end) calc(.3s + var(--i) * .7s) forwards; }
.pa-code__caret { width: 8px; height: 15px; background: #FF0042; animation: gvBlink 1s steps(2) infinite; }
@keyframes paType { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.pa-image { max-width: 46%; max-height: 220px; object-fit: contain; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: opacity .7s ease .2s, transform .7s cubic-bezier(.22,1,.36,1) .2s; }
.flagship-card.is-visible .pa-image { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .flagship-card { padding: 24px; min-height: 440px; }
  .flagship-card__text h3 { font-size: 28px; }
  .pa-algo, .pa-grid, .pa-code, .pa-image { right: 20px; top: 70px; }
  .pa-algo { height: 130px; width: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .pa-algo__bars i, .pa-grid i, .pa-code span, .pa-code__caret, .pa-image { animation: none !important; transition: none; opacity: 1; transform: none; clip-path: none; }
}
