@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
:root { --radius: 28px; --blaze: #ff6700; --bg: #030303; }

body { margin: 0; background: var(--bg); font-family: 'Inter', sans-serif; overflow: hidden; color: white; }
#scroll-wrapper { position: fixed; top: 0; left: 0; width: 100%; will-change: transform; }

.timeline-container { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 50px; }

/* THE COMET LINE */
.glass-conduit { position: absolute; left: 50%; transform: translateX(-50%); width: 2px; top: 0; bottom: 0; background: #111; }
.comet-fill { position: absolute; top: 0; width: 100%; height: 0%; background: linear-gradient(to bottom, transparent, var(--blaze) 85%, #fff); box-shadow: 0 0 20px var(--blaze); transition: height 0.1s ease-out; }
.comet-spark { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 45px; background: #fff; box-shadow: 0 0 20px #fff, 0 0 40px var(--blaze); filter: blur(1px); }

/* 3D BEZEL CARD */
.glass-card {
  position: relative; width: 44%; height: auto; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); padding: 1px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); isolation: isolate;
}

/* ELECTRIC RIM (Auto-Ignites via .active class) */
.electric-rim {
  position: absolute; inset: 0; z-index: 10; opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(180px circle at var(--x, 50%) var(--y, 50%), #fff 0%, var(--blaze) 40%, transparent 80%);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.timeline-item.active .electric-rim { opacity: 1; }
.glass-card:hover .electric-rim { opacity: 1; filter: brightness(1.4); }

.content {
  position: relative; z-index: 5; padding: 3rem;
  background: linear-gradient(135deg, rgba(15,15,15,0.9), rgba(5,5,5,0.95));
  backdrop-filter: blur(40px); border-radius: calc(var(--radius) - 1px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), inset 0 -1px 1px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

/* NODES */
.node-wrapper { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 100; }
.glass-sphere { width: 14px; height: 14px; background: #000; border: 2px solid #333; border-radius: 50%; transition: 0.5s; }
.timeline-item.active .glass-sphere { background: #fff; transform: scale(1.7); border-color: var(--blaze); box-shadow: 0 0 25px var(--blaze); }

.timeline-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 45vh; position: relative; opacity: 0.2; transition: opacity 1s ease; }
.timeline-item.active { opacity: 1; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.status-marker { height: 100vh; display: flex; align-items: center; justify-content: center; letter-spacing: 1.5rem; color: #111; font-weight: 900; }