/* ============================================================
   EXPERIENCE — Chapter 03
   Timeline with stitched spine, stamps & fabric tags.
   ============================================================ */

/* ---------- TIMELINE (sticky-pinned chapters) ---------- */
.timeline {
  padding: clamp(4rem, 8vw, 6rem) 0 4rem;
  position: relative;
}
.timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
/* Vertical stitched line running down the rail column */
.timeline__list::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 240px;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 6px,
    var(--red-accent) 6px,
    var(--red-accent) 12px
  );
  opacity: 0.45;
}

/* Single timeline record: aside (pinned) · rail · card */
.tl {
  display: grid;
  grid-template-columns: 220px 40px 1fr;
  align-items: start;
  position: relative;
}
/* Pinned aside — company name stays put while the card scrolls */
.tl__aside {
  position: sticky;
  top: 130px;
  align-self: start;
  text-align: right;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tl__date {
  font-size: 0.95rem;
  color: var(--green-deep);
  letter-spacing: 0.1em;
}
.tl__city {
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
}
.tl__company-mini {
  font-family: var(--font-serif-cn);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--red-accent);
  letter-spacing: 0.04em;
  margin-top: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--paper-beige);
  line-height: 1.3;
}
.tl__node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}
.tl__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-bg);
  border: 2px solid var(--green-vintage);
  position: relative;
  z-index: 1;
}
.tl__dot--red {
  border-color: var(--red-accent);
  background: var(--red-accent);
  box-shadow: 0 0 0 4px var(--cream-bg), 0 0 0 5px var(--red-accent);
}
.tl__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--green-vintage);
  opacity: 0.4;
}

.tl__card {
  background: var(--cream-bg);
  border: 1px solid var(--paper-beige);
  padding: 1.8rem 1.8rem 1.4rem;
  position: relative;
  transition: all var(--motion);
}
.tl__card:hover {
  background: var(--cream-warm);
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--green-vintage);
}
.tl__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.tl__no {
  font-size: 0.7rem;
  color: var(--red-accent);
  letter-spacing: 0.2em;
}
.tl__company {
  font-family: var(--font-serif-cn);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.tl__role {
  font-family: var(--font-sans-cn);
  font-size: 0.88rem;
  color: var(--red-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.tl__desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.tl__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.tl__bullets li {
  padding-left: 1.2rem;
  position: relative;
}
.tl__bullets li::before {
  content: "·";
  position: absolute;
  left: 0; top: -0.2rem;
  color: var(--red-accent);
  font-size: 1.6rem;
  line-height: 1;
}
.tl__meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--cream-deep);
  padding-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
}

/* Card tick mark pointing to the spine */
.tl__card::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: -16px;
  width: 16px;
  height: 1px;
  background: var(--paper-beige);
}

@media (max-width: 768px) {
  .timeline__list::before { left: 20px; }
  .tl { grid-template-columns: 40px 1fr; }
  .tl__aside { display: none; }
  .tl__card::before { left: -16px; }
  .tl__bullets li { font-size: 0.85rem; }
}

/* ---------- EXP-BACK (freelance / self-media) ---------- */
.exp-back { padding: 4rem 0 6rem; }
.exp-back__panel {
  background: var(--green-deep);
  color: var(--cream-bg);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.exp-back__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red-accent) 0,
    var(--red-accent) 4px,
    transparent 4px,
    transparent 10px
  );
}
.exp-back__num {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  display: inline-block;
  margin-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
}
.exp-back__title {
  font-family: var(--font-serif-cn);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--cream-bg);
  margin-bottom: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.exp-back__sub {
  font-style: italic;
  color: var(--paper-beige);
  margin-bottom: 1.5rem;
}
.exp-back__desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(244, 239, 228, 0.8);
  max-width: 56rem;
  margin-bottom: 2rem;
}
.exp-back__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  border-top: 1px dashed rgba(244, 239, 228, 0.2);
  padding-top: 1.4rem;
}
.exp-back__metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.exp-back__metrics .mono {
  font-size: 1.8rem;
  color: var(--cream-bg);
  line-height: 1;
  letter-spacing: 0.04em;
}
.exp-back__metrics span:last-child {
  font-size: 0.78rem;
  color: rgba(244, 239, 228, 0.7);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .exp-back__metrics { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
