.tl { --tl-bar-r: 6px; width: 100%; }
.lab-timeline {
  --tl-gap: 100px;
  --tl-pad-y: clamp(16px, 2.4vh, 24px);
  margin-top: calc(var(--tl-gap) - var(--tl-pad-y));
  margin-bottom: calc(var(--tl-gap) - var(--tl-pad-y));
  padding: var(--tl-pad-y) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
}
.lab-timeline .tl {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
}
.lab-timeline .tl-scroll {
  min-height: 0;
  margin-inline: var(--lab-pad-x);
  flex: 1;
}
@media (max-width: 860px) {
  .lab-timeline .tl-scroll {
    margin-inline: 0;
  }
}
.tl-hint {
  display: none;
}
@media (max-width: 759px) {
  .lab-timeline {
    --tl-gap: 56px;
  }
  .lab-timeline .tl-scroll {
    flex: none;
    height: calc(44px + var(--tl-rows, 4) * 58px);
    scroll-snap-type: x proximity;
  }
  .lab-timeline .tl-tick {
    scroll-snap-align: start;
    scroll-margin-left: var(--lab-pad-x, 24px);
  }
  .tl-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px var(--lab-pad-x, 24px) 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--tt);
    transition: opacity 0.4s;
  }
  .tl-hint-arrows {
    color: var(--ac);
    display: inline-block;
    animation: tl-hint-nudge 1.6s ease-in-out infinite;
  }
  .tl.is-swiped .tl-hint {
    opacity: 0.55;
  }
}
@keyframes tl-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-hint-arrows {
    animation: none;
  }
}
.tl-scroll {
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  --tl-fade: clamp(40px, 7vw, 96px);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--tl-fade),
    #000 calc(100% - var(--tl-fade)),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--tl-fade),
    #000 calc(100% - var(--tl-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--tl-fade),
    #000 calc(100% - var(--tl-fade)),
    transparent 100%
  );
  overflow: auto hidden;
}
.tl-scroll::-webkit-scrollbar {
  display: none;
}
.tl-scroll.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}
.tl-track {
  position: relative;
}
.tl-axis {
  height: 32px;
  position: absolute;
  inset: 0 0 auto;
}
.tl-tick {
  font-family: var(--sans);
  letter-spacing: 0.04em;
  color: var(--tt);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  position: absolute;
  top: 6px;
  transform: translate(-50%);
}
.tl-grid {
  background: var(--border);
  opacity: 0.5;
  width: 1px;
  position: absolute;
  top: 32px;
  bottom: 0;
}
.tl-grid--q {
  opacity: 0.22;
  top: 46px;
  bottom: 10px;
}
.tl-now {
  background: linear-gradient(
    var(--ac),
    color-mix(in srgb, var(--ac) 12%, transparent)
  );
  width: 1px;
  position: absolute;
  top: 28px;
  bottom: 0;
}
.tl-now-dot {
  background: var(--ac-soft);
  border-radius: 999px;
  width: 8px;
  height: 14px;
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%);
}
@property --tl-orbit-a {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.tl-orbit {
  z-index: 3;
  pointer-events: none;
  border-radius: var(--tl-bar-r);
  --tl-orbit-c: var(--tp);
  position: absolute;
}
.tl-orbit:before,
.tl-orbit:after {
  content: "";
  border-radius: inherit;
  background: conic-gradient(
    from var(--tl-orbit-a),
    transparent 0turn calc(1turn - var(--tl-orbit-t, 130deg)),
    color-mix(in srgb, var(--tl-orbit-c) var(--tl-orbit-mid, 45%), transparent)
      calc(1turn - var(--tl-orbit-t, 130deg) * 0.5),
    var(--tl-orbit-c) calc(1turn - var(--tl-orbit-t, 130deg) * 0.15),
    color-mix(in srgb, #fff var(--tl-orbit-hot, 80%), var(--tl-orbit-c))
      calc(1turn - var(--tl-orbit-t, 130deg) * 0.02),
    transparent 1turn
  );
  -webkit-mask-composite: xor;
  position: absolute;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position:
    0 0,
    0 0;
  mask-position:
    0 0,
    0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask-source-type: auto, auto;
  mask-mode: match-source, match-source;
}
.tl-orbit:before {
  padding: 1px;
  inset: 0;
}
.tl-orbit:after {
  filter: blur(3px);
  padding: 3px;
  inset: -2px;
}
.tl-orbit:not(.is-current):after {
  display: none;
}
.tl-orbit.is-current {
  --tl-orbit-c: var(--ac);
  --tl-orbit-mid: 58%;
  --tl-orbit-hot: 90%;
  -webkit-mask-image: linear-gradient(90deg, #000 0% 66%, #0000 100%);
  mask-image: linear-gradient(90deg, #000 0% 66%, #0000 100%);
}
@media (prefers-reduced-motion: reduce) {
  .tl-orbit {
    display: none;
  }
}
.tl-bar {
  border-radius: var(--tl-bar-r);
  background: var(--bg2);
  border: 1px solid var(--border);
  min-width: max-content;
  color: inherit;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  transition: border-color 0.18s;
  display: flex;
  position: absolute;
  overflow: hidden;
}
.tl-bar:hover {
  border-color: var(--border-h);
}
.tl-bar--link {
  cursor: none;
}
.tl-bar-main {
  white-space: nowrap;
  align-items: center;
  gap: 9px;
  display: flex;
}
.tl-bar-logo {
  width: 17px;
  height: 17px;
  box-shadow: 0 0 0 1px var(--border-h);
  border-radius: 50%;
  flex: none;
}
.tl-bar-logo svg {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: block;
}
.tl-bar-logo--bare {
  box-shadow: none;
  border-radius: 0;
}
.tl-bar-logo--bare svg {
  border-radius: 0;
}
.tl-bar-label {
  font: 500 12px/1 var(--sans);
  color: var(--tp);
}
.tl-bar-sub {
  color: color-mix(in srgb, var(--ts) 70%, var(--tt));
  margin-left: 8px;
  font-weight: 400;
}
.tl-bar-grp {
  align-items: center;
  gap: 9px;
  display: inline-flex;
}
.tl-bar-gap {
  flex: none;
  justify-content: center;
  align-items: center;
  width: 180px;
  display: inline-flex;
}
.tl-chev {
  shape-rendering: crispedges;
  width: auto;
  height: 11px;
  display: block;
  overflow: visible;
}
.tl-chev-px {
  fill: var(--ac-soft);
  opacity: 0.3;
  animation: 1.05s linear infinite tl-chev-wave;
  animation-delay: calc((var(--col) - 8) * 50ms);
}
@keyframes tl-chev-wave {
  0% {
    opacity: 0.28;
  }
  22% {
    opacity: 1;
  }
  55% {
    opacity: 0.28;
  }
  to {
    opacity: 0.28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-chev-px {
    opacity: 0.85;
    animation: none;
  }
}
.tl-bar.is-current.tl-bar--umbrella {
  -webkit-mask-image: linear-gradient(90deg, #000 0% 66%, #0000 100%);
  mask-image: linear-gradient(90deg, #000 0% 66%, #0000 100%);
}
.tl-bar-range {
  font-family: var(--sans);
  color: var(--tt);
  margin-left: 10px;
  font-size: 11px;
}
.tl-bar-range.is-current {
  color: var(--ac-soft);
}
.tl-bar-nda {
  color: var(--ac-soft);
  background: var(--ac-dim);
  border: 1px solid var(--ac-b);
  border-radius: 5px;
  align-items: center;
  margin-left: 10px;
  padding: 3px 4px;
  display: inline-flex;
}
.tl-bar-nda svg {
  width: 10px;
  height: 10px;
}
.tl-bar.is-current {
  border-color: color-mix(in srgb, var(--ac) 30%, transparent);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ac) 38%, var(--bg2)) 0%,
    color-mix(in srgb, var(--ac) 12%, var(--bg2)) 40%,
    var(--bg2) 85%
  );
  box-shadow:
    inset 0 -6px 12px -6px color-mix(in srgb, var(--ac) 55%, transparent),
    inset 0 1px 0 #ffffff12,
    0 10px 26px -8px color-mix(in srgb, var(--ac) 45%, transparent);
  transition: border-color 0.18s;
  -webkit-mask-image: linear-gradient(90deg, #000 0% 58%, #0000 100%);
  mask-image: linear-gradient(90deg, #000 0% 58%, #0000 100%);
}
.tl-bar.is-current:before {
  content: "";
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ac) 70%, transparent) 0%,
    color-mix(in srgb, var(--ac) 26%, transparent) 55%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  inset: 0;
  transform: translateY(60%);
}
.tl-bar.is-current:hover:before {
  opacity: 1;
  transform: translateY(0);
}
.tl-bar.is-current .tl-bar-main {
  z-index: 1;
  position: relative;
}
.tl-bar.is-current .tl-bar-label {
  color: color-mix(in srgb, var(--tp) 88%, var(--ac-soft));
  text-shadow: 0 0 10px color-mix(in srgb, var(--ac) 55%, transparent);
}
.tl-bar.is-current .tl-bar-sub {
  color: color-mix(in srgb, var(--tp) 55%, var(--ac-soft));
}
[data-theme="light"] .tl-bar.is-current .tl-bar-label {
  text-shadow: none;
}
.tl-bar.is-current:hover {
  border-color: color-mix(in srgb, var(--ac) 70%, transparent);
}
.tl-bar.is-muted {
  background: repeating-linear-gradient(
    -45deg,
    var(--bg2) 0,
    var(--bg2) 6px,
    transparent 6px,
    transparent 12px
  );
}
.tl-bar.is-faint {
  opacity: 0.6;
  transition:
    opacity 0.18s,
    border-color 0.18s;
}
.tl-bar.is-faint:hover {
  opacity: 1;
}
.tl-preview {
  z-index: 80;
  background: var(--bg2);
  border: 1px solid var(--border-h);
  pointer-events: none;
  border-radius: 12px;
  animation: 0.16s both tl-preview-in;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 18px 50px #00000080;
}
.tl-preview img,
.tl-preview video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes tl-preview-in {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-preview {
    animation: none;
  }
}
.tl-cursor {
  z-index: 90;
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.tl-cursor-arrow,
.tl-cursor-label {
  will-change: transform, opacity;
  transition: opacity 0.14s;
  position: absolute;
  top: 0;
  left: 0;
}
.tl-cursor-arrow {
  transform-origin: 0 0;
}
.tl-cursor-label {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ac) 55%, var(--bg2)) 0%,
    color-mix(in srgb, var(--ac) 16%, var(--bg2)) 45%,
    var(--bg2) 90%
  );
  border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent);
  color: var(--ac-soft);
  font: 500 12px/1.1 var(--sans);
  white-space: nowrap;
  letter-spacing: 0.1px;
  box-shadow:
    inset 0 -5px 10px -5px color-mix(in srgb, var(--ac) 60%, transparent),
    inset 0 1px 0 #ffffff14,
    0 6px 18px -6px color-mix(in srgb, var(--ac) 50%, transparent);
  transform-origin: 0;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 999px;
  padding: 6px 11px;
}
.tl-bar.is-future {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--tt) 60%, transparent);
  background: transparent;
  opacity: 0.72;
  transition:
    opacity 0.18s,
    border-color 0.18s;
}
.tl-bar.is-future:hover {
  opacity: 0.9;
}
.tl-bar.is-future .tl-bar-label {
  color: var(--ts);
}
.tl-bar.is-future .tl-bar-sub {
  color: color-mix(in srgb, var(--ts) 80%, var(--tt));
}
.tl-future {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff06 0,
    #ffffff06 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
  position: absolute;
  top: 32px;
  bottom: 0;
  right: 0;
}
.tl-bar-logo--glyph {
  box-shadow: 0 0 0 1px var(--border-h);
  background: var(--bg3);
  color: var(--ts);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  overflow: hidden;
}
.tl-bar-logo--glyph svg {
  border-radius: 0;
  width: 11px;
  height: 11px;
}
.tl-bar-logo--bare.tl-bar-logo--glyph {
  box-shadow: none;
  background: none;
}
.tl-bar.is-current .tl-bar-logo--glyph {
  color: var(--ac-soft);
  background: var(--ac-dim);
}
.tl-tick.is-future {
  opacity: 0.55;
}
.tl-preview-card {
  width: 100%;
  height: 100%;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ts);
  background: #111;
  flex-direction: column;
  display: flex;
  position: relative;
}
.tl-preview-card:after {
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(#ffffff0a 0 1px, #0000 1px 3px);
  position: absolute;
  inset: 0;
}
.tl-preview-bar {
  border-bottom: 1px solid var(--border);
  color: var(--tt);
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 11px;
  display: flex;
}
.tl-preview-bar i {
  background: var(--border-h);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.tl-preview-bar i:first-child {
  background: var(--ac);
}
.tl-preview-bar span {
  margin-left: 6px;
}
.tl-preview-body {
  padding: 14px;
  line-height: 1.7;
}
.tl-preview-caret {
  color: var(--ac);
  animation: 1.1s step-end infinite hdr-terminal-blink;
}

/* worn stretches (js/timeline.js): quiet years stay matte, years visitors lingered on take a polish */
.tl-wear { position: sticky; left: 0; width: 0; height: 0; pointer-events: none; }
.tl-wear > i {
  position: absolute; left: 0; top: 30px; opacity: 0;
  transition: opacity 2.4s ease;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.tl-bar {
  --wear: 0;
  background-image: linear-gradient(105deg, transparent 18%, rgb(255 226 190 / calc(var(--wear) * 0.2)) 46%, rgb(255 226 190 / calc(var(--wear) * 0.05)) 58%, transparent 78%);
  box-shadow: inset 0 1px 0 rgb(255 226 190 / calc(var(--wear) * 0.5)), inset 0 -1px 0 rgb(0 0 0 / calc(var(--wear) * 0.25));
  border-color: color-mix(in srgb, var(--border-h) calc(var(--wear) * 100%), var(--border));
}
.tl-bar:hover { border-color: var(--border-h); }
@media (prefers-reduced-motion: reduce) { .tl-wear > i { transition: none; } }
