/* ══════════════════════════════════════════════════════
   JOURNEY TIMELINE  ·  timeline.css
   Section: #about — full-screen overlay, scroll-driven
══════════════════════════════════════════════════════ */

/* ── Section overlay ──────────────────────────────── */
#about {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
#about.open { transform: translateY(0); }

/* ── Sticky header ────────────────────────────────── */
.tl-hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 6, 16, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bdr);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tl-hdr-eye {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-hdr-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  flex: 1;
  margin: 0;
  line-height: 1;
}
.tl-hdr-close {
  background: none;
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 12px;
  transition: color 0.18s, border-color 0.18s;
  font-family: inherit;
}
.tl-hdr-close:hover { color: var(--ink); border-color: var(--ink-dim); }

/* ── Container ────────────────────────────────────── */
.tl-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ── Vertical dashed line ─────────────────────────── */
.tl-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}
.tl-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(232,226,214,0.10) 0,
    rgba(232,226,214,0.10) 5px,
    transparent 5px,
    transparent 12px
  );
}
.tl-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
  background: linear-gradient(
    to bottom,
    #F59E0B 0%,
    #C2714F 22%,
    #0D9488 48%,
    #64748B 72%,
    #F59E0B 100%
  );
}

/* ── Stop row ─────────────────────────────────────── */
.tl-stop {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: 52px;
}

/* ── Dot ──────────────────────────────────────────── */
.tl-dot-col {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}
.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.tl-dot.active { transform: scale(1); }
.tl-dot.warm {
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.12), 0 0 16px rgba(245,158,11,0.35);
}
.tl-dot.cool {
  background: #0D9488;
  box-shadow: 0 0 0 4px rgba(13,148,136,0.12), 0 0 16px rgba(13,148,136,0.30);
}

/* ── Card column placement ────────────────────────── */
.tl-card-col {
  padding: 0 16px;
}
.tl-stop[data-side="right"] .tl-card-col { grid-column: 3; }
.tl-stop[data-side="left"]  .tl-card-col { grid-column: 1; }

/* ── Card box ─────────────────────────────────────── */
.tl-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-stop[data-side="right"] .tl-card        { transform: translateX(18px);  }
.tl-stop[data-side="left"]  .tl-card        { transform: translateX(-18px); }
.tl-stop[data-side="right"] .tl-card.active { transform: translateX(0); opacity: 1; }
.tl-stop[data-side="left"]  .tl-card.active { transform: translateX(0); opacity: 1; }

/* Special card accents */
.tl-stop.midpoint    .tl-card { border-color: rgba(13,148,136,0.32);  background: rgba(13,148,136,0.04);  }
.tl-stop.full-circle .tl-card { border-color: rgba(245,158,11,0.28);  background: rgba(245,158,11,0.03);  }

/* ── Card content ─────────────────────────────────── */
.tl-city {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-city.warm { color: #F59E0B; }
.tl-city.cool { color: #0D9488; }

.tl-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.tl-tag.midpoint {
  background: rgba(13,148,136,0.11);
  color: #0D9488;
  border: 1px solid rgba(13,148,136,0.26);
}
.tl-tag.circle {
  background: rgba(245,158,11,0.10);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.26);
}

.tl-text {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.75;
  font-weight: 300;
}

.tl-photo {
  margin-top: 12px;
  background: rgba(232,226,214,0.03);
  border: 1px dashed rgba(232,226,214,0.13);
  border-radius: 8px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s;
}
.tl-photo:hover { border-color: rgba(232,226,214,0.25); }

.tl-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid var(--bdr);
}
.tl-card img.tl-img-contain {
  height: auto;
  object-fit: unset;
  background: rgba(232,226,214,0.03);
}
.tl-photo span {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232,226,214,0.18);
  pointer-events: none;
}

.tl-caption {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-top: 8px;
  font-weight: 300;
}

.tl-link {
  display: inline-block;
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D9488;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.tl-link:hover { color: var(--teal); }

.tl-cta {
  display: inline-block;
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.48);
  border-radius: 5px;
  padding: 9px 20px;
  background: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.tl-cta:hover {
  background: #F59E0B;
  color: var(--bg);
  border-color: #F59E0B;
}

/* ── Plane transition ─────────────────────────────── */
.tl-plane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
  margin-bottom: 52px;
  z-index: 3;
}
.tl-plane-glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 100%;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(13,148,136,0.22) 0%,
    rgba(245,158,11,0.14) 45%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease 0.4s;
}
.tl-plane-icon {
  font-size: 22px;
  line-height: 1;
  transform: rotate(-30deg) translateX(-36px);
  opacity: 0;
  transition:
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
  position: relative;
  z-index: 1;
}
.tl-plane-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(232,226,214,0.20);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}
.tl-plane.fly .tl-plane-glow { opacity: 1; }
.tl-plane.fly .tl-plane-icon {
  transform: rotate(-30deg) translateX(0);
  opacity: 1;
}
.tl-plane.fly .tl-plane-lbl  { opacity: 1; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 640px) {
  .tl-hdr { padding: 12px 16px; }

  .tl-container { padding: 48px 0 80px; }

  .tl-track {
    left: 20px;
    transform: none;
  }

  .tl-stop {
    grid-template-columns: 40px 1fr;
    margin-bottom: 36px;
  }

  .tl-dot-col { grid-column: 1; }

  .tl-stop[data-side="right"] .tl-card-col,
  .tl-stop[data-side="left"]  .tl-card-col {
    grid-column: 2;
    grid-row: 1;
    padding: 0 14px 0 8px;
  }

  /* All cards slide from right on mobile */
  .tl-stop[data-side="left"]  .tl-card        { transform: translateX(14px); }
  .tl-stop[data-side="left"]  .tl-card.active { transform: translateX(0); opacity: 1; }

  .tl-plane { padding-left: 48px; align-items: flex-start; }
  .tl-plane-glow { left: 20px; transform: none; }
}