/* 4. timeline: dotted rail, nodes, logo pairs, company, role, desc, project rows */
.folio-track {
  position: relative;
  align-self: stretch;
  --rail-x: -22px;   /* rail left edge, relative to the column */
  --rail-top: 45px;  /* where the curve lands on the rail */
  --indent: 0px;     /* entry indent from the column */
}

/* ---------- the path ---------- */
.folio-path {
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-top);
  width: 1px;
  height: calc(100% - var(--rail-top) + 53px); /* JS sets the exact chevron end */
  pointer-events: none;
}
.path-rail, .path-lit { position: absolute; left: 0; top: 0; width: 1px; }
.path-rail {
  height: 100%;
  background: linear-gradient(to bottom, var(--dot) 2px, transparent 2px) 0 0 / 1px 5.5px repeat-y;
}
.path-lit {
  height: 0;
  background: var(--blue-light);
  box-shadow: 0 0 4px rgba(44, 111, 255, .2), 0 0 10px rgba(44, 111, 255, .2), 0 0 20px rgba(44, 111, 255, .14);
}
.path-head {
  position: absolute;
  left: -2px;
  top: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 6px 1px rgba(44, 111, 255, .55);
  opacity: 0;
  transition: opacity .2s;
}
.folio-path.is-live .path-head { opacity: 1; }

/* ---------- entries ---------- */
.folio-timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  /* the list's box carries the rail, nodes and year labels (84 to the left, as the
     reference frame does) and the curve's landing above the first entry. Each margin
     cancels its padding, so nothing moves. The bottom extension is the strip the fixed
     contact veil sits on in a full-height capture, so it never covers the last role. */
  --tl-out-t: 25px;
  --tl-out-l: 84px;
  --tl-out-r: 10px;
  --tl-out-b: 180px;
  margin: calc(-1 * var(--tl-out-t)) calc(-1 * var(--tl-out-r)) calc(-1 * var(--tl-out-b)) calc(-1 * var(--tl-out-l));
  padding: var(--tl-out-t) var(--tl-out-r) var(--tl-out-b) var(--tl-out-l);
  pointer-events: none;
}
.folio-timeline > * { pointer-events: auto; }
.tl-entry { position: relative; padding-left: var(--indent); }
/* the first entry's box is widened to the reference crop frame (rail, node and year
   label included). Margins cancel the padding, so the layout does not move. */
.folio-timeline > .tl-entry:first-child {
  margin: -25px -10px -17.4px -84px;
  padding: 25px 10px 17.4px calc(84px + var(--indent));
}

.tl-logos {
  display: flex;
  height: 28px;
  margin-bottom: 6px;
}
.tl-logo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: .5px solid var(--keyline);
  box-shadow: 0 0 0 1px var(--keyline);
  cursor: pointer;
  transition: transform .32s var(--ease-av);
}
.tl-logo + .tl-logo { margin-left: -6px; }
.tl-logo.is-leaving { transition-timing-function: cubic-bezier(.34, 3.85, .64, 1); }
/* HEAD.uz: the official /A mark from head.uz (slash #002AFB) on a white disc, with air all round.
   A hairline inside the white keyline keeps the white disc readable on the warm page. */
.logo-head { background: #fff; box-shadow: 0 0 0 1px var(--keyline), inset 0 0 0 .5px rgba(6, 6, 6, .09); }
.logo-head svg { width: 9.6px; height: 15.8px; display: block; transform: translateX(.3px); }
/* a real logo image covers the disc, as the reference's logos do */
.logo-img { background: #1c1b1a; }
.logo-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
/* Ahsan Labs: the LinkedIn wordmark is cropped tight so it spans the disc and reads at 28px */
.logo-img img[src*="ahsan"] { transform: none; image-rendering: auto; }
/* Pro Teach and Vali Teach have no logo anywhere: a designed initial disc,
   a soft tonal gradient with a tight two-letter monogram, never a font-faked logo */
.logo-init {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.55px;
  line-height: 1;
  padding: .5px .4px 0 0;
  font-feature-settings: "ss01", "cv11";
}
/* set like a real wordmark disc (the reference's cream "Studi" disc): flat brand-like
   fill, letters sized to the disc, a hairline inside the white keyline */
.logo-pt {
  background: #efe8de;
  color: #141312;
  box-shadow: 0 0 0 1px var(--keyline), inset 0 0 0 .5px rgba(6, 6, 6, .1);
}
.logo-vt {
  background: radial-gradient(120% 120% at 30% 20%, #2f2e38 0%, #18171d 70%);
  color: #fbfaf8;
  box-shadow: 0 0 0 1px var(--keyline), inset 0 0 0 .5px rgba(255, 255, 255, .08);
}

.tl-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28.8px;
}
.tl-company {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -.12px;
  color: var(--ink);
  cursor: pointer;
}
.tl-company:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tl-current {
  font-size: 12px;
  letter-spacing: .96px;
  color: var(--blue);
  padding-top: 3px;
  line-height: 1.8;
}

.tl-node {
  position: absolute;
  left: -28px;
  top: 7.9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--node-ring);
  background: var(--bg);
  transition: border-color .3s;
}
.tl-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--node-fill);
  transition: background-color .3s;
}
.tl-node::after, .case-dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}
.tl-node.is-lit { border-color: var(--blue); }
.tl-node.is-lit::before { background: var(--blue); }
.tl-node.is-pulse::after { animation: node-pulse .72s var(--ease) both; }

.tl-year {
  position: absolute;
  left: -70px;
  top: 50%;
  width: 33px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tl-route {
  font-size: 6px;
  line-height: 7px;
  letter-spacing: .9px;
  color: var(--route);
}
/* a long place name (UZBEKISTAN) centred under the year, tightened to keep clear of the node */
.tl-route-long { letter-spacing: .45px; white-space: nowrap; }
.tl-yr {
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1.05px;
  color: var(--mute);
}

.tl-role {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 2px;
}
.tl-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  opacity: .8;
}

/* ---------- project rows ---------- */
.tl-cases {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.case {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 67px;
  padding: 2px 15px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color .26s var(--ease);
}
.case:hover { background: var(--row-hover); }
.case-dot {
  position: absolute;
  left: -24px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--case-dot);
  transition: background-color .3s;
}
.case-dot.is-lit { background: var(--blue); }
.case-dot.is-pulse::after { animation: dot-pulse .72s var(--ease) both; }

.shots {
  position: relative;
  flex: none;
  width: 66px;
  height: 63px;
}
.shot {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1.5px solid var(--keyline);
  border-radius: 2.5px;
  box-shadow: 0 .85px 5px rgba(0, 0, 0, .1), 0 .43px 1.3px rgba(0, 0, 0, .06);
  transition: transform .38s var(--ease-av);
  /* slot card: a quiet abstract screen */
  background:
    linear-gradient(#fff0, #fff0) padding-box,
    var(--shot-bg, #e7e2dd);
}
.shot::before, .shot::after { content: ""; position: absolute; left: 14%; right: 14%; border-radius: 1px; }
.shot::before { top: 16%; height: 9%; background: rgba(255, 255, 255, .75); }
.shot::after { top: 32%; bottom: 14%; background: linear-gradient(rgba(255, 255, 255, .45) 0 18%, transparent 18% 30%, rgba(255, 255, 255, .45) 30% 48%, transparent 48% 60%, rgba(255, 255, 255, .3) 60%); }
.shot-l {
  --shot-bg: linear-gradient(160deg, #d9d3cd, #c9c2bb);
  width: 25.7px; height: 34.1px; margin: -17.05px 0 0 -12.85px; z-index: 1;
  transform: translate(-13.7px, -.8px) rotate(-9.94deg);
}
.shot-m {
  --shot-bg: linear-gradient(160deg, #ebe7e3, #d8d2cc);
  width: 35px; height: 46.3px; margin: -23.15px 0 0 -17.5px; z-index: 3;
  transform: translate(-1.6px, -.7px);
}
.shot-r {
  --shot-bg: linear-gradient(160deg, #d3ccc6, #bfb8b1);
  width: 30px; height: 39.7px; margin: -19.85px 0 0 -15px; z-index: 2;
  transform: translate(11.3px, .5px) rotate(7.21deg);
}
.case:hover .shot-l { transform: translate(-18px, -3px) rotate(-15deg); }
.case:hover .shot-m { transform: translate(-1.6px, -3px) scale(1.03); }
.case:hover .shot-r { transform: translate(15.5px, -2px) rotate(12deg); }

/* Real product screenshots: each card is a crop of a real screen (landing, hub, design
   system, published post), cover-fitted inside the white card border like the reference. */
.fan .shot { overflow: hidden; background: #fff; }
.fan .shot::before, .fan .shot::after { content: none; }
.fan .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 1px;
}

.case-text { display: flex; flex-direction: column; min-width: 0; }
.case-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 17.5px;
  color: var(--case-title);
}
.case-sub {
  font-size: 13px;
  font-weight: 500;
  line-height: 21.13px;
  color: var(--case-desc);
}

@keyframes node-pulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
@keyframes dot-pulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(3.6); } }

/* ---------- mobile timeline ---------- */
@media (max-width: 760px) {
  .folio-track {
    --rail-x: 3px;
    --rail-top: 0px;
    --indent: 32px;
    margin-top: 97px;
  }
  /* mobile: the box runs edge to edge (24 each side) so the rail at 27.5 and the
     ringed nodes sit inside it, 43 above the first logos as the reference frame */
  .folio-timeline { gap: 48px; --tl-out-t: 43px; --tl-out-l: 24px; --tl-out-r: 24px; }
  .folio-timeline > .tl-entry:first-child {
    margin: -43px -24px -18px -24px;
    padding: 43px 24px 18px calc(24px + var(--indent));
  }
  .tl-year { display: none; }
  .tl-node { left: -35px; }
  .case-dot { left: -31px; }
}
@media (max-width: 620px) {
  .case { padding: 2px 8px; }
}

/* Smoothing pass: in dark mode (shade pulled down) the light slot cards glared; dim them
   to sit on the dark page like the reference's screenshots do. Borders follow --keyline. */
[data-theme="dark"] .shots:not(.fan) .shot { filter: brightness(.4) saturate(.6); }
[data-theme="dark"] .fan .shot { filter: brightness(.9); }
