/* Equal-height photo galleries arranged along a chronological rail. */
.setup-timeline {
  --timeline-height: clamp(250px, 27vw, 340px);
  --timeline-gap: 16px;
  margin-top: 110px;
  scroll-margin-top: 112px;
}

.timeline-years {
  position: sticky;
  top: 108px;
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px;
  margin-bottom: 48px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: rgba(19, 34, 38, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
  scrollbar-width: thin;
  scrollbar-color: #567c72 transparent;
}

.timeline-years a {
  flex: 1 0 auto;
  text-align: center;
  padding: 8px 10px;
  font-size: .73rem;
  font-variant-numeric: tabular-nums;
  color: #b5c8bf;
  border-radius: 6px;
}

.timeline-years a:hover,
.timeline-years a[aria-current="location"] {
  color: #f0f6ee;
  background: rgba(210, 231, 227, .12);
}

.timeline-entries { position: relative; }

.timeline-entries::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 58px;
  left: 11px;
  width: 1px;
  background: rgba(188, 228, 213, .2);
  pointer-events: none;
}

.timeline-year {
  position: relative;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 56px;
  scroll-margin-top: 190px;
}

.timeline-year-heading {
  position: relative;
  padding: 9px 0 0 34px;
}

.timeline-year-heading::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 21px;
  width: 9px;
  height: 9px;
  border: 1px solid #bce4d5;
  border-radius: 50%;
  background: #15282b;
}

.timeline-year-heading h3 {
  margin: 0;
  color: #d7e8de;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}

.timeline-media { min-width: 0; }

.timeline-photo-row { min-width: 0; }
.timeline-photo-row + .timeline-photo-row {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 235, 225, .12);
}

.timeline-gallery {
  display: flex;
  gap: var(--timeline-row-gap, var(--timeline-gap));
  overflow-x: auto;
  padding-bottom: 12px;
  min-width: 0;
  scroll-snap-type: x proximity;
  scrollbar-color: #567c72 transparent;
  scrollbar-width: thin;
}

.timeline-gallery .image-expand {
  flex: 0 0 auto;
  min-width: 0;
  height: var(--timeline-row-height, var(--timeline-height));
  max-height: var(--timeline-height);
  scroll-snap-align: start;
}

.timeline-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-year-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.timeline-year-controls > span {
  color: #9fb7af;
  font-size: .65rem;
  letter-spacing: .07em;
}

.timeline-year-controls > div { display: flex; gap: 8px; }

.timeline-year-controls button {
  display: none;
  width: 36px;
  height: 32px;
  border: 1px solid rgba(212, 235, 225, .2);
  border-radius: 6px;
  background: rgba(212, 235, 225, .05);
  color: #e2eee6;
  cursor: pointer;
}

.timeline-year-controls.has-overflow button { display: block; }
.timeline-year-controls button:hover { background: rgba(212, 235, 225, .12); }
.timeline-year-controls button:disabled { opacity: .3; cursor: default; }

/* Historical PC specifications sit under the year, beside its photos. */
.timeline-specs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 235, 225, .16);
}

.timeline-specs-label {
  margin: 0 0 16px;
  color: #9fb7af;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timeline-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  margin: 0;
}

.timeline-spec-grid > div { min-width: 0; }

.timeline-spec-grid dt {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.timeline-spec-grid dd {
  margin: 0;
  color: #d7e8de;
  font-size: .76rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.timeline-spec-grid dd > span { display: block; }

.timeline-spec-grid .timeline-spec-detail {
  margin-top: 2px;
  color: #9fb7af;
  font-size: .67rem;
}

.timeline-specs-pending .timeline-specs-label { margin-bottom: 8px; }
.timeline-specs-note { margin: 0; color: #9fb7af; font-size: .8rem; }

@supports (backdrop-filter: blur(18px)) {
  .timeline-years {
    background: rgba(19, 34, 38, .78);
    backdrop-filter: blur(18px) saturate(125%);
  }
}

@media (max-width: 900px) {
  .timeline-year { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
  .timeline-year-heading h3 { font-size: 2rem; }
}

@media (max-width: 700px) {
  .setup-timeline { --timeline-height: 230px; --timeline-gap: 12px; margin-top: 75px; }
  .timeline-years { top: 84px; padding: 8px; margin-bottom: 32px; }
  .timeline-years a { padding: 8px 12px; }
  .timeline-year { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 0 40px 28px; scroll-margin-top: 154px; }
  .timeline-year-heading { padding: 0; }
  .timeline-year-heading::before { left: -21px; top: 10px; }
  .timeline-entries::before { top: 11px; bottom: 40px; }
  .timeline-year-heading h3 { font-size: 1.9rem; }
  .timeline-specs { margin-top: 18px; }
  .timeline-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}

@media (max-width: 380px) {
  .timeline-spec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The archive ends at the current setup, using the existing photographs. */
.timeline-current-label {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: .65rem;
  letter-spacing: .04em;
}

.timeline-current-year .timeline-year-heading::before {
  background: var(--accent);
}

.timeline-current-link {
  margin-top: 24px;
  font-size: .78rem;
}

#current-setup {
  scroll-margin-top: 112px;
}
