.disco-preview .cases { padding-bottom: 0; }
.about.about-timeline {
  --section-gap: clamp(60px, 8cqw, 112px);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
.about-timeline + .contacts { padding-top: 0; }
.about-timeline > h3 { margin-top: clamp(22px, 3.2cqw, 46px); }
.about-timeline .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  max-width: 1100px;
}
.skill-tags li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 22px;
  border: 1px solid #ffffffe0;
  border-radius: 999px;
  font-size: clamp(16px, 2.1cqw, 30px);
  line-height: 1.2;
  font-weight: 400;
}
.skill-tags li::before, .career-star {
  content: "";
  display: block;
  flex: none;
  width: 19px;
  height: 19px;
  background: currentColor;
  clip-path: polygon(50% 0, 57% 29%, 65% 39%, 76% 45%, 100% 50%, 76% 55%, 65% 61%, 57% 71%, 50% 100%, 43% 71%, 35% 61%, 24% 55%, 0 50%, 24% 45%, 35% 39%, 43% 29%);
}
.about-timeline > .career-heading {
  font-size: clamp(29px, 5.8cqw, 72px);
  font-weight: 500;
  margin-top: clamp(58px, 8cqw, 110px);
  margin-bottom: clamp(28px, 4cqw, 55px);
}
.career-scroll {
  --career-step: 50%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  padding-block: 4px 6px;
  outline-offset: 6px;
}
.career-scroll::-webkit-scrollbar { display: none; }
.career-scroll:focus-visible { outline: 1px solid #fff; }
.career-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.career-track {
  display: flex;

}
.career-stage {
  position: relative;
  flex: 0 0 var(--career-step);
  min-width: 0;
  padding: 98px clamp(24px, 4cqw, 58px) 0 10px;
  scroll-snap-align: start;
  scroll-margin-left: 0;
}
.career-stage::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 10px;
  width: calc(100% + 11px);
  height: 1px;
  background: #ffffffb0;
}
.career-stage:last-child::before { display: none; }
.career-star {
  position: absolute;
  top: 61.5px;
  left: 10px;
  width: 22px;
  height: 22px;
  color: #f6f4f7;
  transition: transform 350ms ease, color 350ms ease;
}
.career-stage[aria-current="step"] .career-star { color: #f6f4f7; }
@media (hover: hover) {
  .career-stage:hover .career-star { transform: scale(1.18); }
}
.career-stage h4 {
  font-size: clamp(27px, 3.7cqw, 48px);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 14px;
}
.career-stage p { font-size: clamp(17px, 2.35cqw, 30px); line-height: 1.25; max-width: 25ch; }
.career-stage .career-length { margin-top: 21px; color: #bcb9bd; font-size: clamp(16px, 2.2cqw, 28px); }

@media (max-width: 800px) {
  .about-timeline .skill-tags { gap: 10px 8px; }
  .skill-tags li { gap: 8px; padding: 8px 12px; font-size: max(14px, 3.7cqw); }
  .skill-tags li::before { width: 15px; height: 15px; }
  .career-scroll { --career-step: 80%; margin-right: calc(-1 * var(--gutter)); }
  .career-stage { padding-top: 96px; padding-right: 30px; }
  .career-stage h4 { font-size: 29px; }
  .career-stage p { font-size: 18px; max-width: 22ch; }
  .career-stage .career-length { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .career-star { transition: none; }
}

.career-track::after { content: ""; flex: 0 0 calc(100% - var(--career-step)); }

.career-stage .career-period {
  position: absolute;
  top: 29px;
  left: 10px;
  margin: 0;
  font-size: clamp(18px, 2.35cqw, 30px);
  line-height: 1.2;
  color: #f6f4f7;
  white-space: nowrap;
}

.about-timeline {
  --about-body-size: clamp(16px, 2.1cqw, 30px);
  --about-heading-size: calc(80 * var(--unit));
}
.about-timeline > h2,
.about-timeline > .career-heading {
  font-size: var(--about-heading-size);
  font-weight: 500;
}
.about-timeline > h3:not(.career-heading),
.about-timeline .skill-tags li,
.about-timeline .career-stage p {
  font-size: var(--about-body-size);
  font-weight: 400;
}
.about-timeline .career-stage .career-length { color: #bcb9bd; }
@media (max-width: 800px) {
  .about-timeline {
    --about-body-size: max(14px, 3.7cqw);
    --about-heading-size: 10cqw;
  }
}

/* Keep the heading, dates, markers and copy in one consistent vertical rhythm. */
.about-timeline > .career-heading {
  margin-bottom: clamp(24px, 3.2cqw, 46px);
}
.about-timeline .career-stage {
  display: grid;
  grid-template-rows: auto 22px auto 1fr auto;
  align-content: start;
  row-gap: 14px;
  padding-top: 0;
  font-size: var(--about-body-size);
}
.about-timeline .career-stage .career-period {
  position: static;
  grid-row: 1;
  line-height: 1.2;
}
.about-timeline .career-star {
  position: relative;
  top: auto;
  left: auto;
  grid-row: 2;
}
.about-timeline .career-stage::before {
  top: calc(1.2em + 25px);
}
.about-timeline .career-stage h4 { grid-row: 3; margin: 0; }
.about-timeline .career-stage p:not([class]) { grid-row: 4; }
.about-timeline .career-stage .career-length { grid-row: 5; margin-top: 2px; }
.career-scroll { padding-bottom: 0; }

/* Share the marker grid cell so the rule always crosses the star centre. */
.about-timeline .career-stage::before {
  position: relative;
  grid-area: 2 / 1;
  align-self: center;
  top: auto;
  left: 0;
  width: calc(100% + clamp(24px, 4cqw, 58px) + 10px);
}
.about-timeline .career-star { grid-column: 1; align-self: center; }
@media (max-width: 800px) {
  .about-timeline .career-stage::before { width: calc(100% + 40px); }
}
