:root{
  --gold: #ffd400;
  --muted: #c9c6b0;
}

/* put content above shards canvas */
header, main, footer { position: relative; z-index: 2; }

/* ===== Gold shards background ===== */
#gold-shards{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(255,212,0,.06), transparent 55%),
    #060606;
}

/* ========= Left-rail Timeline ========= */
.timeline-left{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 56px; /* room for rail + connectors */
  display: flex;
  flex-direction: column;
  gap: 28px;           /* spacing between cards */
}

/* vertical rail */
.timeline-left::before{
  content:"";
  position:absolute;
  left: 28px; top:0; bottom:0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,212,0,.55), rgba(255,212,0,.08));
  filter: drop-shadow(0 0 6px rgba(255,212,0,.25));
}

/* bullet on rail */
.tl-bullet{
  position:absolute;
  left: 22px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,212,0,.45);
  background: radial-gradient(circle, #ffd400 0 55%, #caa014 75%, #7a5d00 100%);
  box-shadow: 0 0 12px rgba(255,212,0,.55);
}

/* each item positions relative so bullet lines up */
.tl-item{ position: relative; }

/* card */
.tl-card{
  position: relative;
  width: min(100%, 740px); /* slimmer card width */
  padding: 16px 16px 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

/* connector from rail to card */
.tl-card::before{
  content:"";
  position:absolute;
  top: 30px;
  left: -26px;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, rgba(255,212,0,.45), rgba(255,212,0,0));
  filter: drop-shadow(0 0 6px rgba(255,212,0,.25));
}

.tl-item.in .tl-card{ opacity:1; transform: translateY(0); }

/* bits */
.tl-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.tl-tag{
  display:inline-block; font-size:.75rem; font-weight:800; letter-spacing:.25px;
  border:1px solid rgba(255,212,0,.28); border-radius:999px; padding:4px 10px;
  background: rgba(255,212,0,.08); color:#f3e58a;
}
.tl-tag.tag-edu{ background: rgba(243,229,138,.10); border-color: rgba(243,229,138,.35); }
.tl-date{ color:#cfcfd4; font-size:.92rem; }
.tl-title{ margin:2px 0 4px; font-size:1.08rem; letter-spacing:.2px; }
.tl-sub{ margin:0 6px 8px 0; color:var(--muted); font-size:.95rem; }
.tl-bullets{ margin:0 0 8px 18px; padding:0; color:#e8e8ee; }
.tl-bullets li{ margin:4px 0; line-height:1.55; }
.tl-links{ margin-top:6px; }
.inline-link{ color:var(--gold); text-decoration:none; font-weight:600; }
.inline-link:hover{ text-decoration:underline; filter: drop-shadow(0 0 6px rgba(255,212,0,.35)); }

/* filter row */
.timeline-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.timeline-filters .btn-lux{ padding:8px 14px; font-size:.95rem; border-radius:14px; }
.timeline-filters .btn-lux.is-active{
  border-color: rgba(255,212,0,.65);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,212,0,.35);
}

/* Responsive */
@media (max-width: 720px){
  .timeline-left{ padding-left: 46px; gap: 22px; }
  .timeline-left::before{ left: 22px; }
  .tl-bullet{ left: 16px; }
  .tl-card{ width: 100%; }
  .tl-card::before{ left: -20px; width: 20px; }
}
