/* === FEATURE 09 · TIMELINE === */
.tl {
  padding: var(--sp-xl) 0;
  background: var(--paper-alt);
}

.tl-header { text-align: center; max-width: 700px; margin: 0 auto var(--sp-lg); padding: 0 var(--container-gutter); }
.tl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--seal-brown);
  font-weight: 700;
  margin-bottom: 16px;
}
.tl-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--ink-brown);
  margin-bottom: 14px;
}
.tl-desc {
  font-size: clamp(14px, 1.4vw, 15px);
  line-height: 1.7;
  color: var(--seal-brown);
}

/* Timeline bar */
.tl-bar {
  position: relative;
  max-width: 960px;
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-sm) var(--container-gutter) var(--sp-lg);
}
.tl-track {
  position: relative;
}
.tl-line {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #B89D70 0 8px, transparent 8px 14px);
  z-index: 1;
}

.tl-items {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  /* Scroll on .tl-bar so .tl-line (inside .tl-track) scrolls with the items.
     Edge mask hints horizontal scrollability. */
  .tl-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .tl-bar::-webkit-scrollbar { display: none; }
  .tl-track {
    width: max-content;
    min-width: 100%;
    padding-right: var(--container-gutter);
  }
  .tl-items { justify-content: flex-start; padding-bottom: 8px; }
}

.tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.25s;
  min-width: 130px;
  background: transparent;
  padding: 0;
}
.tl-item:hover { transform: translateY(-3px); }
.tl-item:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; border-radius: 6px; }

.tl-thumb {
  width: 100px;
  height: 130px;
  border-radius: 6px;
  background: var(--paper-card);
  border: 3px solid transparent;
  padding: 6px;
  box-shadow: 0 6px 14px rgba(60, 46, 26, 0.15);
  transition: all 0.3s;
  overflow: hidden;
}
.tl-item.active .tl-thumb {
  border-color: var(--brand-green);
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(42, 92, 64, 0.35);
}
.tl-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #B89D70;
  border: 3px solid var(--paper-main);
  box-shadow: 0 0 0 1px #B89D70;
  transition: all 0.3s;
  z-index: 3;
}
.tl-item.active .tl-dot {
  background: var(--brand-green);
  box-shadow: 0 0 0 1px var(--brand-green), 0 0 0 6px rgba(42, 92, 64, 0.2);
  transform: scale(1.3);
}

.tl-date {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--seal-brown);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.tl-item.active .tl-date { color: var(--brand-green); }

.tl-place {
  font-size: 11px;
  color: var(--sub-gray);
  text-align: center;
  font-weight: 600;
}
.tl-item.active .tl-place { color: var(--ink-brown); }

/* Story card */
.tl-story {
  max-width: 960px;
  margin: 0 auto;
  background: var(--paper-card);
  border-radius: 16px;
  border: 1px solid #E8DCC0;
  box-shadow: 0 14px 32px rgba(60, 46, 26, 0.12);
  padding: var(--sp-md);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-md);
  align-items: stretch;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s;
}
.tl-story.fading { opacity: 0.2; }
@media (max-width: 700px) { .tl-story { grid-template-columns: 1fr; padding: var(--sp-sm); } }

.tl-cover {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 21 / 40;
  height: 100%;
  background: var(--paper-alt);
  box-shadow: 0 8px 18px rgba(60, 46, 26, 0.15);
}
.tl-cover img { width: 100%; height: 100%; object-fit: contain; }

.tl-h3 { font-size: 22px; font-weight: 800; color: var(--ink-brown); margin-bottom: 4px; }
.tl-meta {
  font-size: 13px;
  color: var(--seal-brown);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.tl-pill {
  background: var(--paper-alt);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.tl-text { font-size: 14px; line-height: 1.8; color: var(--ink-brown); margin-bottom: var(--sp-sm); }
.tl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tl-gi {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--paper-alt);
  border: 2px solid var(--paper-card);
  box-shadow: 0 3px 8px rgba(60, 46, 26, 0.15);
  margin: 0;
  overflow: hidden;
}
.tl-gi img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tl-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(107, 74, 35, 0.1);
  overflow: hidden;
}
.tl-progress-fill {
  height: 100%;
  background: var(--brand-green);
  width: 0%;
  transition: width 0.1s linear;
}

.tl-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: var(--sp-md);
  font-size: 12px;
  color: var(--seal-brown);
  flex-wrap: wrap;
}
.tl-play-btn {
  background: transparent;
  border: 1.5px solid var(--seal-brown);
  color: var(--seal-brown);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tl-play-btn:hover { background: var(--seal-brown); color: var(--paper-main); }
.tl-hint { opacity: 0.7; }
