/* ========================================
   Timeline — Dual-Track
   Serpentine (leadership prior experience)
   + Straight (L&S operations)
   ======================================== */

/* === Section wrapper === */
.timeline-section {
  background: #050d1a;
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

/* Chart grid background */
.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* === Compass rose === */
.tl-compass {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  opacity: 0.35;
  display: block;
}

/* === Hero header === */
.tl-hero {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  position: relative;
}
.tl-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
}

.tl-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #60a5fa;
  border: 1px solid rgba(37,99,235,0.25);
  padding: 0.35rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.tl-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
}
.tl-hero h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.tl-hero .tl-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === Legend === */
.tl-legend {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 2rem 2.5rem;
}
.tl-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}
.tl-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}
.tl-legend-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.3;
}
.tl-legend-dot--blue {
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
  color: #2563eb;
}
.tl-legend-dot--orange {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(232,114,42,0.5);
  color: var(--color-accent);
}

/* === Section tags === */
.tl-section-tag {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.tl-section-tag span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 4px;
}
.tl-section-tag--blue span {
  color: #60a5fa;
  border: 1px solid rgba(37,99,235,0.15);
  background: rgba(37,99,235,0.04);
}
.tl-section-tag--orange span {
  color: #f4945e;
  border: 1px solid rgba(232,114,42,0.15);
  background: rgba(232,114,42,0.04);
}

/* Disambiguation callout */
.tl-callout {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* ========================================
   SERPENTINE — Leadership Prior Experience
   ======================================== */
.serpentine {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* SVG path layer */
.serpentine__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.serpentine__line {
  fill: none;
  stroke: rgba(37,99,235,0.2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
}
.serpentine__glow {
  fill: none;
  stroke: rgba(37,99,235,0.06);
  stroke-width: 20;
  stroke-linecap: round;
  filter: blur(6px);
}

/* Rows container */
.serpentine__rows {
  position: relative;
  z-index: 1;
}

/* Each row */
.s-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0 2rem;
}
.s-row--ltr { flex-direction: row; }
.s-row--rtl { flex-direction: row-reverse; }

.s-row-gap { height: 48px; }

/* Waypoint */
.s-waypoint {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.6rem;
  gap: 0.4rem;
}
.s-waypoint__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 12px rgba(37,99,235,0.5);
  position: relative;
}
.s-waypoint__dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.25);
}
.s-waypoint__year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
}

/* Card container */
.s-cards {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  z-index: 2;
}

/* Individual card */
.s-card {
  flex: 1;
  min-width: 190px;
  max-width: 360px;
  padding: 1.1rem 1.25rem 1rem;
  background: rgba(13,22,40,0.85);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.s-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.s-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
}
.s-card:hover::before { opacity: 1; }

.s-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #60a5fa;
  margin-bottom: 0.4rem;
}
.s-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: var(--line-height-snug);
}
.s-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* Metric pills */
.tl-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}
.tl-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.tl-metric--blue {
  background: rgba(37,99,235,0.1);
  color: #7db4ff;
  border: 1px solid rgba(37,99,235,0.08);
}
.tl-metric--orange {
  background: rgba(232,114,42,0.1);
  color: #f4b87e;
  border: 1px solid rgba(232,114,42,0.08);
}
.tl-metric__val {
  font-size: 0.82rem;
  font-weight: 800;
}
.tl-metric--blue .tl-metric__val { color: #93c5fd; }
.tl-metric--orange .tl-metric__val { color: #f4945e; }

/* Acquisition connector badge */
.s-card__connector {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f4945e;
  opacity: 0.85;
}
.s-card__connector::before {
  content: '→';
}

/* ========================================
   PIVOT — 2024 Founded
   ======================================== */
.tl-pivot {
  position: relative;
  text-align: center;
  padding: 3.5rem 2rem;
}
.tl-pivot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(232,114,42,0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tl-pivot__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.tl-pivot__line--left {
  height: 1px; width: 120px;
  background: linear-gradient(to right, transparent, rgba(37,99,235,0.3));
}
.tl-pivot__line--right {
  height: 1px; width: 120px;
  background: linear-gradient(to left, transparent, rgba(232,114,42,0.3));
}
.tl-pivot__diamond {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, #2563eb, var(--color-accent));
  transform: rotate(45deg);
  border-radius: 2px;
}

.tl-pivot__card {
  display: inline-block;
  padding: 2.5rem 4rem;
  border: 1px solid rgba(232,114,42,0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,114,42,0.06), rgba(212,160,74,0.02));
  position: relative;
}
.tl-pivot__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, var(--color-accent), #d4a04a);
}

.tl-pivot__year {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 40px rgba(232,114,42,0.2);
}
.tl-pivot__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.tl-pivot__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
}

/* ========================================
   STRAIGHT — L&S Operations
   ======================================== */
.straight {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
.straight__spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    rgba(232,114,42,0.45) 0%,
    rgba(232,114,42,0.25) 70%,
    rgba(232,114,42,0.1) 100%);
}
.straight__spine::before {
  content: '';
  position: absolute;
  left: -6px; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(to bottom, rgba(232,114,42,0.05), transparent 80%);
  filter: blur(4px);
}

/* Year marker */
.st-year {
  position: relative; z-index: 2;
  text-align: center;
  margin-bottom: 0.75rem;
}
.st-year span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.st-year span::before,
.st-year span::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(232,114,42,0.2);
}

/* Entry */
.st-entry {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 0.75rem;
}
.st-entry__dot {
  position: absolute;
  left: 50%; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(232,114,42,0.4);
}
.st-entry__dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(232,114,42,0.2);
}
.st-entry--major .st-entry__dot {
  width: 14px; height: 14px; top: 12px;
  box-shadow: 0 0 14px rgba(232,114,42,0.5);
}

/* Connector line from dot to card */
.st-entry::after {
  content: '';
  position: absolute;
  top: 18px;
  height: 1px;
  z-index: 1;
}
.st-entry--left::after {
  left: calc(43% + 6px); right: 50%;
  background: linear-gradient(to right, rgba(232,114,42,0.12), transparent);
}
.st-entry--right::after {
  left: 50%; right: calc(43% + 6px);
  background: linear-gradient(to left, rgba(232,114,42,0.12), transparent);
}

/* Card */
.st-card {
  width: 43%;
  padding: 1.1rem 1.3rem;
  border-radius: 10px;
  background: rgba(20,14,8,0.6);
  border: 1px solid rgba(232,114,42,0.08);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.st-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.st-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(232,114,42,0.1);
  border-color: rgba(232,114,42,0.2);
}
.st-card:hover::before { opacity: 1; }

.st-entry--left .st-card { margin-right: auto; }
.st-entry--right .st-card { margin-left: auto; }

.st-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f4945e;
  margin-bottom: 0.35rem;
}
.st-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: var(--line-height-snug);
}
.st-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* === NOW marker === */
.tl-now {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
  z-index: 3;
}
.tl-now__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.8rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-accent), #d4a04a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(232,114,42,0.2);
}
.tl-now__pulse {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: tl-pulse 2s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* === Footer === */
.tl-footer {
  text-align: center;
  padding: 1.5rem 2rem 1rem;
}
.tl-footer p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.15);
}

/* === Scroll reveal === */
/* Only hide elements when JS is active — content stays visible without JS */
.js-ready .tl-reveal {
  opacity: 0;
  -webkit-transform: translateY(16px);
  transform: translateY(16px);
  -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .tl-reveal--visible,
.tl-reveal--visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 768px) {
  .timeline-section::before {
    background-size: 40px 40px;
  }

  /* Serpentine collapses to single column */
  .s-row {
    flex-direction: column !important;
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .s-waypoint {
    flex-direction: row;
    width: auto;
    padding-top: 0;
  }
  .s-cards { flex-direction: column; }
  .s-card { max-width: 100%; }
  .serpentine__svg { display: none; }
  .s-row-gap { height: 16px; }

  /* Straight collapses to left-spine */
  .straight__spine { left: 18px; }
  .st-year { text-align: left; padding-left: 42px; }
  .st-year span::before { display: none; }
  .st-entry__dot { left: 18px; }
  .st-entry::after { display: none; }
  .st-card {
    width: calc(100% - 48px);
    margin-left: 48px !important;
    margin-right: 0 !important;
  }

  /* Legend wrap */
  .tl-legend { gap: 1.5rem; flex-wrap: wrap; }

  /* Pivot shrink */
  .tl-pivot__card { padding: 1.5rem 1.5rem; max-width: 90vw; }
  .tl-pivot__year { font-size: 2.5rem; }

  /* Prevent horizontal overflow */
  .serpentine { max-width: 100vw; }
  .straight { max-width: 100vw; }
  .tl-hero { padding: 2rem 1rem 1.5rem; }
  .tl-legend { padding: 1.5rem 1rem 2rem; }
  .tl-pivot { padding: 2.5rem 1rem; }
}
