.timeline-page .topbar {
  position: absolute;
}

.nav-links a[aria-current="page"] {
  color: var(--paper);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 1px;
}

.timeline-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(50px, 9vw, 150px);
  align-items: center;
  padding: 128px var(--pad) 42px;
  overflow: hidden;
}

.timeline-hero::before {
  content: "";
  position: absolute;
  left: -22vw;
  top: 5%;
  width: 72vw;
  height: 72vw;
  border: 1px solid rgba(241, 238, 231, .05);
  border-radius: 50%;
  box-shadow: 0 0 0 10vw rgba(241, 238, 231, .014), 0 0 0 20vw rgba(241, 238, 231, .009);
  pointer-events: none;
}

.timeline-hero-copy {
  position: relative;
  z-index: 2;
}

.timeline-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(66px, 9vw, 145px);
  line-height: .84;
  letter-spacing: -.08em;
  font-weight: 600;
}

.timeline-hero h1 em {
  color: var(--muted);
  font-style: normal;
}

.timeline-intro {
  max-width: 610px;
  margin: 38px 0 0;
  color: var(--paper-2);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  letter-spacing: -.02em;
}

.timeline-orbit {
  position: relative;
  width: min(34vw, 490px);
  aspect-ratio: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #181817;
}

.timeline-orbit::before,
.timeline-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(241, 238, 231, .12);
  border-radius: 50%;
  animation: spin 34s linear infinite;
}

.timeline-orbit::before { inset: 10%; }
.timeline-orbit::after { inset: 27%; animation-direction: reverse; animation-duration: 22s; }

.timeline-orbit strong {
  font-size: clamp(72px, 9vw, 128px);
  line-height: .82;
  letter-spacing: -.08em;
  font-weight: 500;
}

.timeline-orbit > span:not(.orbit-label) {
  margin-top: 14px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.orbit-label {
  position: absolute;
  top: 10%;
  left: 12%;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-orbit > i {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 9px rgba(6, 146, 161, .1);
}

.timeline-scroll {
  grid-column: 1 / -1;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  color: var(--paper-2);
  font-size: 10px;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive {
  padding: clamp(100px, 12vw, 180px) var(--pad);
}

.archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.archive-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: .93;
  letter-spacing: -.07em;
  font-weight: 500;
}

.year-filters {
  display: flex;
  gap: 8px;
}

.year-filter {
  min-width: 66px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.year-filter:hover,
.year-filter.is-active {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.timeline-shell {
  --rail: 31%;
  position: relative;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail);
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.timeline-track i {
  display: block;
  width: 1px;
  height: 0;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(6, 146, 161, .45);
}

.timeline-month {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  position: relative;
  padding: 62px clamp(30px, 5vw, 78px) 58px 0;
  text-align: right;
}

.timeline-date::after {
  content: "";
  position: absolute;
  top: 72px;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 7px rgba(6, 146, 161, .08);
  transition: background .3s ease, transform .3s ease;
}

.timeline-month.is-visible .timeline-date::after {
  background: var(--signal);
  transform: scale(1.1);
}

.timeline-date strong {
  display: block;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 500;
}

.timeline-date span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.timeline-items {
  padding: 38px 0 30px clamp(36px, 6vw, 96px);
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(170px, .72fr) minmax(260px, 1.25fr) auto;
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
  min-height: 148px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.timeline-item:last-child { border-bottom: 0; }
.timeline-month.is-visible .timeline-item { opacity: 1; transform: none; }
.timeline-month.is-visible .timeline-item:nth-child(2) { transition-delay: .08s; }
.timeline-month.is-visible .timeline-item:nth-child(3) { transition-delay: .16s; }

.timeline-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1d1d1b;
  border: 1px solid var(--line);
}

.timeline-logo img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.timeline-name h3 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 500;
}

.timeline-name span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.timeline-created {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  color: var(--paper-2);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.timeline-summary {
  margin: 0;
  color: var(--paper-2);
  font-size: 14px;
  line-height: 1.65;
}

.commit-count {
  min-width: 68px;
  text-align: right;
}

.commit-count strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
}

.commit-count span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.timeline-empty {
  padding: 90px 0;
  color: var(--muted);
  text-align: center;
}

.timeline-note {
  max-width: 620px;
  margin: 42px 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .04em;
}

@media (max-width: 1080px) {
  .timeline-item {
    grid-template-columns: 62px minmax(150px, .75fr) minmax(220px, 1.25fr) auto;
    gap: 22px;
  }
  .timeline-logo { width: 62px; height: 62px; }
}

@media (max-width: 820px) {
  .timeline-hero { grid-template-columns: 1fr; }
  .timeline-orbit { position: absolute; right: -12vw; bottom: 10vh; width: 52vw; opacity: .55; }
  .timeline-hero-copy { align-self: end; }
  .timeline-intro { max-width: 72%; }
  .timeline-scroll { align-self: end; }
  .timeline-shell { --rail: 25%; }
  .timeline-item { grid-template-columns: 56px 1fr auto; }
  .timeline-logo { width: 56px; height: 56px; }
  .timeline-summary { grid-column: 2 / -1; }
  .commit-count { grid-column: 3; grid-row: 1; }
}

@media (max-width: 700px) {
  .timeline-hero { min-height: 92svh; padding-top: 122px; }
  .timeline-hero h1 { font-size: clamp(63px, 19vw, 96px); }
  .timeline-intro { max-width: 92%; margin-top: 30px; }
  .timeline-orbit { right: -28vw; bottom: 8vh; width: 75vw; }
  .timeline-orbit strong { font-size: 80px; }
  .archive-heading { align-items: flex-start; flex-direction: column; padding-bottom: 38px; }
  .archive-heading h2 { font-size: clamp(47px, 14vw, 70px); }
  .timeline-shell { --rail: 22px; }
  .timeline-month { display: block; padding-left: 22px; }
  .timeline-date { padding: 46px 0 8px 28px; text-align: left; }
  .timeline-date::after { top: 56px; right: auto; left: -5px; }
  .timeline-items { padding: 14px 0 24px 28px; }
  .timeline-item { grid-template-columns: 48px 1fr auto; min-height: 0; padding: 24px 0; }
  .timeline-logo { width: 48px; height: 48px; }
  .timeline-name h3 { font-size: 25px; }
  .timeline-summary { grid-column: 1 / -1; }
  .commit-count strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-orbit::before,
  .timeline-orbit::after { animation: none; }
  .timeline-item { opacity: 1; transform: none; }
}
