/* ============================================
   TIMELINE.CSS — Film reel vertical timeline
   ============================================ */

/* === Fixed track (the vertical line) === */
.timeline {
  position: fixed;
  left: 24px;
  top: 0;
  height: 100vh;
  overflow: visible;
  z-index: 50;
  pointer-events: none;
}

.tl-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.08);
}

/* Scroll-progress fill */
.tl-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* === Scrolling marker dots — position set by JS === */
.tl-marker {
  position: absolute;
  left: -3px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: all;
  outline: none;
}

/* Expanded hit area */
.tl-marker::before {
  content: '';
  position: absolute;
  inset: -12px -10px;
}

.tl-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Dot dims after crossing the indicator */
.tl-marker.passed .tl-dot {
  opacity: 0.15;
  transform: scale(0.65);
}

/* Scrolling date label — opacity driven entirely by JS */
.tl-marker-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.575rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  margin-left: 10px;
  opacity: 0;
}

/* === Fixed indicator — active date, always at 50vh === */
.tl-indicator {
  position: fixed;
  left: 20px;
  top: 50vh;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 51;
  pointer-events: none;
}

.tl-indicator-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
}

/* Breathing ring */
.tl-indicator-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0);
  animation: tl-breathe 3.5s ease-out infinite;
}

@keyframes tl-breathe {
  0%   { transform: scale(1);   border-color: rgba(0, 0, 0, 0.2); opacity: 1; }
  100% { transform: scale(2.6); border-color: rgba(0, 0, 0, 0);   opacity: 0; }
}

.tl-indicator-tick {
  width: 14px;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin-left: 3px;
}

.tl-indicator-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.575rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* Mobile: hide entirely */
@media (max-width: 768px) {
  .timeline,
  .tl-indicator {
    display: none;
  }
}
