/* ------------------------------------------------------------------
   Work page: one timeline. Years and rail on the left; each role on the
   right with its company mark in the photo box. No rules between rows.
------------------------------------------------------------------ */
.work-intro { padding-top: 40px; }
.work-intro__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.05em;
}
.work-intro__lede { margin-top: 28px; }

.tl { margin-top: 112px; }
.tl-item {
  display: grid;
  grid-template-columns: 128px 24px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 88px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-years { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); padding-top: 10px; white-space: nowrap; }

/* Rail: one continuous line through every entry (drawn on the row so it
   spans the gaps), with a dot per entry on top of it */
.tl-item, .tl-label { position: relative; }
.tl-item::before, .tl-label::before {
  content: ""; position: absolute; left: calc(128px + 24px + 11px); top: 18px; bottom: -18px;
  width: 2px; background: var(--line-soft);
}
.tl-label::before { top: 0; }
.tl-item:last-child::before { display: none; }
.tl-rail { position: relative; }
.tl-rail::after {
  content: ""; position: absolute; left: 6px; top: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--paper);
}
.tl-item--edu .tl-rail::after { background: var(--paper); border: 2px solid var(--ink); width: 10px; height: 10px; left: 7px; top: 13px; }

.tl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  column-gap: 48px;
  align-items: start;
}
.tl-title {
  display: block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -0.045em;
  max-width: 15em;
}
.tl-meta { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.tl-note { display: block; margin-top: 14px; max-width: 520px; font-size: 15px; line-height: 1.55; }
.tl-media { width: 100%; }
a.tl-card .tl-title { transition: opacity 0.3s var(--ease); }
a.tl-card:hover .tl-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
a.tl-card:active .tl-title { opacity: 0.6; }

/* Education: a quiet label, then smaller text-only entries */
.tl-label { padding: 0 0 40px calc(128px + 24px + 48px); }
.tl-item--edu { padding-bottom: 40px; }
.tl-item--edu .tl-card { grid-template-columns: minmax(0, 1fr); }
.tl-item--edu .tl-title { font-size: clamp(22px, 2vw, 28px); }
.tl-item--edu .tl-meta { margin-top: 8px; }

/* Responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .tl-card { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .tl-media { order: -1; max-width: 420px; }
}
@media (max-width: 760px) {
  .work-intro { padding-top: 48px; }
  .tl { margin-top: 72px; }
  .tl-item { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "rail years" "rail card"; column-gap: 16px; padding-bottom: 64px; }
  .tl-years { grid-area: years; padding-top: 0; }
  .tl-rail { grid-area: rail; }
  .tl-item::before, .tl-label::before { left: 11px; top: 10px; bottom: -10px; }
  .tl-label::before { top: 0; }
  .tl-rail::after { top: 4px; }
  .tl-item--edu .tl-rail::after { top: 5px; }
  .tl-card { grid-area: card; margin-top: 12px; }
  .tl-label { padding: 0 0 32px 40px; }
}
