.timeline {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 2 / 1;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--block-radius);
  background: #000;
  color: #fff;
}
.timeline-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.timeline-heading,
.timeline-caption,
.timeline-control {
  position: absolute;
  margin: 0;
}
.timeline-heading {
  top: var(--about-info-top);
  left: var(--panel-inset);
  margin: 0;
  text-shadow: 0 1px 5px #000;
}
.timeline-caption {
  left: var(--panel-inset);
  bottom: var(--about-info-top);
  right: var(--panel-inset);
  pointer-events: none;
  text-shadow: 0 1px 5px #000, 0 0 10px #000;
}
.timeline-year {
  display: block;
  font-size: clamp(34px, 5.6vw, 104px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.045em;
  font-kerning: normal;
  font-variant-numeric: proportional-nums;
}
.timeline-event {
  display: block;
  margin-top: .25em;
  font-size: min(clamp(16px, 2.25vw, 42px), calc((100cqw - 2 * var(--panel-inset)) / var(--caption-em, 1)));
  font-weight: 200;
  line-height: 1.12;
  white-space: nowrap;
  opacity: var(--caption-reveal, 1);
}
.timeline-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: inherit;
  background: #000b;
  border: 1px solid #fff5;
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.timeline-control:hover { background: #fff; color: #000; }
.timeline-control:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.timeline-control > svg { width: 21px; height: 21px; }
.timeline[data-state="ready"] .timeline-control {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: max(54px, 11%);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.timeline[data-state="ready"] .timeline-control > svg {
  width: 100%;
  height: 100%;
  transition: transform .25s ease;
}
.timeline[data-state="ready"] .timeline-control:hover svg { transform: scale(1.06); }
.timeline:not([data-state="ready"]) .timeline-control {
  right: var(--panel-inset);
  top: var(--about-info-top);
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
}
.timeline-corner-icon {
  display: none;
}
.timeline:not([data-state="ready"]) .timeline-control > svg {
  width: 100%;
  height: 100%;
}
.timeline:not([data-state="ready"]) .timeline-control > svg > path {
  display: none;
}
.timeline:not([data-state="ready"]) .timeline-corner-icon {
  display: block;
}
.timeline-control:hover .timeline-corner-icon circle {
  fill: #252525;
}
.timeline-map text {
  fill: #fff;
  stroke: #000;
  stroke-width: 3px;
  paint-order: stroke fill;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-control, .timeline[data-state="ready"] .timeline-control > svg { transition: none; }
}
.timeline-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
