/* v3 launch finale: countdown + rocket lift-off. transform/opacity only. */
.launch { padding: var(--s-7) 0 var(--s-5); }
.launch-pad {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: 70svh; display: grid; align-items: center;
  grid-template-columns: 1fr; grid-template-rows: auto 340px; gap: var(--s-5);
  padding: var(--s-6) var(--s-5) 0;
}
.launch-copy { position: relative; z-index: 2; }
.launch-copy h2 { margin: 0 0 var(--s-3); }
.launch-line { margin: 0 0 var(--s-4); color: var(--text-dim); display: grid; }
.launch-line > span { grid-area: 1 / 1; }
.launch-line-done { opacity: 0; }
.launch.is-launched .launch-line-idle { opacity: 0; }
.launch.is-launched .launch-line-done { opacity: 1; }
.launch-again { transition: opacity var(--t-med); }
.launch-again[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.launch-stage { position: relative; height: 340px; pointer-events: none; }
.launch-count {
  position: absolute; left: 50%; top: 0; width: 12rem; margin-left: -6rem; text-align: center;
  font: 700 clamp(2.4rem, 8vw, 4rem)/1 var(--font-mono); color: var(--cyan);
  text-shadow: 0 0 24px rgba(62, 230, 224, 0.6); opacity: 0; z-index: 3;
}
.launch-count.is-tick { animation: launch-tick 650ms var(--ease-out) both; }
.launch-count.is-tick::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem;
  border-radius: 50%; border: 2px solid var(--cyan); animation: launch-ring 650ms ease-out both;
}
.launch-count.is-go { font-size: clamp(1.4rem, 5vw, 2rem); color: var(--orange); text-shadow: 0 0 24px rgba(255, 154, 77, 0.6); opacity: 1; }
@keyframes launch-tick { from { transform: scale(1.6); opacity: 0; } 25% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes launch-ring { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
.launch-rocket {
  position: absolute; left: 50%; bottom: 36px; width: 100px; height: 200px; margin-left: -50px;
  will-change: transform, opacity;
}
.launch-body { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(62, 230, 224, 0.35)); }
.launch-window {
  position: absolute; left: 25px; top: 71px; width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 0 3px var(--bg-1), 0 0 14px rgba(62, 230, 224, 0.6);
}
.launch-flame { position: absolute; left: 50%; top: 150px; width: 44px; height: 90px; margin-left: -22px; opacity: 0; transform-origin: 50% 0; }
.launch-flame i { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 50% 50% 60% 60%; transform-origin: 50% 0; }
.launch-flame i:nth-child(1) { background: radial-gradient(ellipse at 50% 15%, rgba(255, 154, 77, 0.9), rgba(255, 154, 77, 0) 70%); }
.launch-flame i:nth-child(2) { inset: 0 8px 18px; background: radial-gradient(ellipse at 50% 10%, #fff1df, rgba(255, 241, 223, 0) 70%); }
.launch-flame i:nth-child(3) { inset: 0 -14px -10px; background: radial-gradient(ellipse at 50% 10%, rgba(62, 230, 224, 0.45), rgba(62, 230, 224, 0) 70%); }
.launch.is-liftoff .launch-flame, .launch.is-gone .launch-flame { opacity: 1; }
.launch.is-liftoff .launch-flame i { animation: launch-flicker 120ms ease-in-out infinite alternate; }
.launch.is-liftoff .launch-flame { animation: launch-grow 1.4s ease-in both; }
@keyframes launch-flicker { from { transform: scaleY(0.82); opacity: 0.8; } to { transform: scaleY(1.1); opacity: 1; } }
@keyframes launch-grow { from { transform: scaleY(0.4); } to { transform: scaleY(1.5); } }
.launch.is-shake .launch-rocket { animation: launch-shake 90ms linear infinite; }
@keyframes launch-shake { 0% { transform: translate(-1px, 0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(0, 1px); } }
.launch.is-liftoff .launch-rocket { animation: launch-rise 1.4s cubic-bezier(0.55, 0, 1, 0.45) both; }
@keyframes launch-rise { from { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } to { transform: translateY(-420px); opacity: 0; } }
.launch.is-gone .launch-rocket, .launch.is-launched .launch-rocket { opacity: 0; transform: translateY(-420px); }
.launch-smoke {
  position: absolute; left: 50%; bottom: 8px; width: 220px; height: 60px; margin-left: -110px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 241, 223, 0.28), rgba(255, 241, 223, 0) 70%);
}
.launch.is-liftoff .launch-smoke { animation: launch-puff 1.4s ease-out both; }
@keyframes launch-puff { from { transform: scale(0.8); opacity: 0.6; } to { transform: scale(1.8, 1.3); opacity: 1; } }
.launch-bursts { position: absolute; left: 50%; bottom: 40px; width: 0; height: 0; }
.launch-bursts b {
  position: absolute; left: -3px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 8px var(--orange);
  animation: launch-particle 900ms ease-out both;
}
.launch-bursts b:nth-child(3n) { background: var(--cream); box-shadow: 0 0 8px var(--cream); }
.launch-bursts b:nth-child(3n+1) { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
@keyframes launch-particle { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }
/* static (fx off / reduced motion): rocket sits on the pad */
.launch.is-static .launch-count, .launch.is-static .launch-flame, .launch.is-static .launch-bursts { display: none; }
.launch.is-static .launch-again { display: none; }
.launch.is-static .launch-rocket { opacity: 1; transform: none; animation: none; }
.launch.is-static .launch-line-idle { opacity: 1; }
.launch.is-static .launch-line-done { opacity: 0; }
/* one-time makeover reveal flourish: starts and ends visible */
.makeover.v3-revealed .makeover-card { animation: launch-glow 2.2s ease-out 1; }
.makeover.v3-revealed .makeover-form .field { animation: launch-field 700ms var(--ease-out) both; }
.makeover.v3-revealed .makeover-form .field:nth-child(2) { animation-delay: 90ms; }
.makeover.v3-revealed .makeover-form .field:nth-child(3) { animation-delay: 180ms; }
.makeover.v3-revealed .makeover-form .field:nth-child(4) { animation-delay: 270ms; }
@keyframes launch-glow { 0% { box-shadow: var(--glow-cyan); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 224, 0); } }
@keyframes launch-field { from { transform: translateY(8px); opacity: 0.85; } to { transform: none; opacity: 1; } }
html.fx-off .makeover.v3-revealed .makeover-card, html.fx-off .makeover.v3-revealed .field { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .launch *, .makeover.v3-revealed * { animation: none !important; }
  .makeover.v3-revealed .makeover-card { animation: none; }
}
@media (min-width: 900px) {
  .launch-pad { grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 360px; min-height: 62vh; padding: var(--s-7); padding-bottom: var(--s-6); }
  .launch-stage { height: 360px; }
}
