body.timeline-overlay-lock,
body.timeline-lightbox-lock {
  overflow: hidden;
}

.timeline-overlay[hidden],
#timelineOverlay .timeline-detail[hidden],
#timelineOverlay .lightbox[hidden] {
  display: none;
}

.timeline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9650;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.timeline-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.timeline-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(90, 205, 255, 0.13), rgba(90, 205, 255, 0) 32%),
    radial-gradient(circle at 84% 12%, rgba(82, 240, 166, 0.08), rgba(82, 240, 166, 0) 28%),
    linear-gradient(180deg, rgba(3, 6, 10, 0.74), rgba(1, 4, 8, 0.95));
  backdrop-filter: blur(18px);
}

.timeline-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - clamp(28px, 5vw, 78px)));
  max-height: min(91vh, 1060px);
  padding: clamp(22px, 3.8vw, 46px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(90, 205, 255, 0.16);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(90, 205, 255, 0.034) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(180deg, rgba(90, 205, 255, 0.023) 1px, transparent 1px) 0 0 / 58px 58px,
    radial-gradient(circle at 18% 0%, rgba(90, 205, 255, 0.13), rgba(90, 205, 255, 0) 36%),
    radial-gradient(circle at 86% 10%, rgba(245, 250, 255, 0.07), rgba(245, 250, 255, 0) 26%),
    linear-gradient(180deg, rgba(9, 17, 27, 0.99), rgba(2, 6, 11, 0.99));
  box-shadow:
    0 38px 92px rgba(0, 0, 0, 0.68),
    0 0 48px rgba(90, 205, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  outline: none;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.timeline-overlay.is-open .timeline-overlay__panel {
  transform: translateY(0) scale(1);
}

.timeline-overlay__close {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 8;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 205, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(12, 22, 34, 0.88), rgba(3, 7, 11, 0.86));
  color: rgba(239, 247, 252, 0.94);
  font-family: "nasalization", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.timeline-overlay__close:hover,
.timeline-overlay__close:focus-visible {
  border-color: rgba(90, 205, 255, 0.34);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(90, 205, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.timeline-overlay__header {
  max-width: 820px;
  margin: 0 auto clamp(20px, 2.8vw, 32px);
  padding: 0 clamp(38px, 6vw, 62px);
  text-align: center;
}

.timeline-overlay__eyebrow {
  margin: 0 0 10px;
  color: rgba(82, 240, 166, 0.86);
  font-family: "nasalization", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-overlay__title {
  margin: 0;
  color: rgba(247, 251, 253, 0.98);
  font-family: "nasalization", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0.025em;
  text-shadow: 0 0 24px rgba(90, 205, 255, 0.1);
}

.timeline-overlay__subtitle {
  margin: 12px 0 0;
  color: rgba(231, 241, 247, 0.74);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.45;
}

#timelineOverlay .cpae-timeline-root {
  --timeline-green: #52f0a6;
  --timeline-blue: #77d8ff;
  --timeline-red: #ff4f68;
  --timeline-amber: #f0d17a;
  --timeline-text: #eef7fb;
  --timeline-muted: #9fb2bf;
  --timeline-radius: 18px;
  --timeline-panel-radius: 28px;
  color: var(--timeline-text);
  font-family: Arial, Helvetica, sans-serif;
}

#timelineOverlay .timeline-page {
  --detail-frame-inset: 16px;
  --timeline-control-bottom: clamp(34px, 4vw, 50px);
  --timeline-nav-width: calc(100% - clamp(92px, 8vw, 126px));
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#timelineOverlay .timeline-detail {
  --accent: var(--timeline-green);
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

#timelineOverlay .timeline-detail.is-detail-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#timelineOverlay .station-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#timelineOverlay .detail-media {
  position: relative;
  z-index: 1;
  min-height: clamp(420px, 48vw, 620px);
  overflow: hidden;
  border: 1px solid rgba(90, 205, 255, 0.13);
  border-radius: var(--timeline-panel-radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(90, 205, 255, 0.07), rgba(90, 205, 255, 0) 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, rgba(10, 17, 26, 0.98), rgba(2, 6, 10, 0.98));
  box-shadow:
    0 34px 78px rgba(0, 0, 0, 0.56),
    0 0 36px rgba(90, 205, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#timelineOverlay .detail-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 86px rgba(0, 0, 0, 0.42);
}

#timelineOverlay .detail-media::after {
  position: absolute;
  inset: var(--detail-frame-inset);
  z-index: 7;
  pointer-events: none;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 26px rgba(255, 255, 255, 0.04);
}

#timelineOverlay .detail-media__button {
  position: relative;
  width: 100%;
  min-height: inherit;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #020508;
  cursor: zoom-in;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}

#timelineOverlay .detail-media__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

#timelineOverlay .detail-media__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition:
    opacity 0.62s ease,
    scale 0.62s ease,
    filter 0.62s ease;
}

#timelineOverlay .detail-media__image--bw {
  z-index: 0;
  opacity: 1;
  filter: grayscale(1) saturate(0.78) contrast(1.08);
}

#timelineOverlay .detail-media__image--color {
  z-index: 1;
  opacity: 0;
  filter: saturate(1.02) contrast(1.02);
}

#timelineOverlay .detail-media__button:hover .detail-media__image--color,
#timelineOverlay .detail-media__button:focus-visible .detail-media__image--color {
  opacity: 1;
}

#timelineOverlay .detail-media__button:hover .detail-media__image,
#timelineOverlay .detail-media__button:focus-visible .detail-media__image {
  scale: 1.012;
}

#timelineOverlay .detail-media__button.is-switching {
  opacity: 0.42;
  filter: blur(1.5px);
  transform: translateY(8px) scale(0.992);
}

#timelineOverlay .detail-media__edge {
  position: absolute;
  inset: var(--detail-frame-inset);
  z-index: 2;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: none;
}

#timelineOverlay .timeline-controls {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

#timelineOverlay .timeline-controls .station-nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#timelineOverlay .station-nav__button {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 205, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(12, 22, 34, 0.88), rgba(3, 7, 11, 0.88));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 0 18px color-mix(in srgb, var(--accent) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(239, 247, 252, 0.94);
  cursor: pointer;
  font-size: 1.32rem;
  line-height: 1;
  pointer-events: auto;
  transform: translateY(calc(-50% - 20px));
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

#timelineOverlay .station-nav__button--prev {
  left: clamp(12px, 2vw, 28px);
}

#timelineOverlay .station-nav__button--next {
  right: clamp(12px, 2vw, 28px);
}

#timelineOverlay .station-nav__button:hover,
#timelineOverlay .station-nav__button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(90, 205, 255, 0.26));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.46),
    0 0 26px color-mix(in srgb, var(--accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(calc(-50% - 22px));
  outline: none;
}

#timelineOverlay .station-nav__button[hidden] {
  display: none;
}

#timelineOverlay .timeline-lightbox-arrow {
  top: 50%;
  z-index: 9;
  width: 62.5px;
  height: 62.5px;
  font-size: 1.65rem;
  transform: translateY(-50%);
}

#timelineOverlay .timeline-lightbox-arrow--prev {
  left: clamp(14px, 2vw, 30px);
}

#timelineOverlay .timeline-lightbox-arrow--next {
  right: clamp(14px, 2vw, 30px);
}

#timelineOverlay .timeline-lightbox-arrow:hover,
#timelineOverlay .timeline-lightbox-arrow:focus-visible {
  transform: translateY(calc(-50% - 2px));
}

#timelineOverlay .timeline-nav-section {
  position: absolute;
  right: 0;
  bottom: var(--timeline-control-bottom);
  left: 0;
  z-index: 2;
  width: 100%;
  pointer-events: auto;
}

#timelineOverlay .timeline-orbit {
  --detail-node-size: 72px;
  --detail-node-band-height: 116px;
  --detail-label-clearance: 36px;
  position: relative;
  overflow: visible;
  width: 100%;
  margin: 0;
  padding: 0 0 var(--detail-label-clearance);
}

#timelineOverlay .timeline-orbit::before {
  position: absolute;
  top: calc((var(--detail-node-size) - var(--detail-node-band-height)) / 2);
  right: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: var(--detail-node-band-height);
  pointer-events: none;
  content: "";
  background: rgba(0, 0, 0, 0.6);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

#timelineOverlay .timeline-scroll {
  position: relative;
  z-index: 1;
  width: var(--timeline-nav-width);
  min-width: 0;
  margin: 0 auto;
  overflow: visible;
  pointer-events: auto;
}

#timelineOverlay .timeline-rail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

#timelineOverlay .timeline-rail__glow,
#timelineOverlay .timeline-rail__core,
#timelineOverlay .timeline-rail__pulse {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#timelineOverlay .timeline-rail__glow {
  stroke: rgba(119, 216, 255, 0.12);
  stroke-width: 4;
  filter: drop-shadow(0 0 9px rgba(119, 216, 255, 0.18));
}

#timelineOverlay .timeline-rail__core {
  stroke: rgba(218, 244, 249, 0.35);
  stroke-width: 1.1;
}

#timelineOverlay .timeline-rail__pulse {
  stroke: rgba(119, 216, 255, 0.78);
  stroke-width: 1.6;
  stroke-dasharray: 16 320;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px rgba(119, 216, 255, 0.32));
  opacity: 0.38;
  animation: timeline-rail-lightflow 10s linear infinite;
}

#timelineOverlay .timeline-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#timelineOverlay .timeline-track__item {
  min-width: 0;
  display: flex;
  flex: 1 1 0;
  justify-content: center;
}

#timelineOverlay .timeline-node {
  --accent: var(--timeline-green);
  --node-size: var(--detail-node-size);
  --node-pad: 0px;
  position: relative;
  width: clamp(128px, 10.5vw, 136px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

#timelineOverlay .timeline-node::before {
  position: absolute;
  top: calc(var(--node-size) / 2);
  left: 50%;
  z-index: 0;
  width: calc(var(--node-size) + 12px);
  height: calc(var(--node-size) + 12px);
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(255, 255, 255, 0.12));
  border-radius: 50%;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.22s ease,
    scale 0.22s ease;
}

#timelineOverlay .timeline-node__ripple {
  position: absolute;
  top: calc(var(--node-size) / 2);
  left: 50%;
  z-index: 0;
  width: var(--node-size);
  height: var(--node-size);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.08));
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transform-origin: center;
  pointer-events: none;
}

#timelineOverlay .timeline-node__ripple--two {
  border-color: rgba(119, 216, 255, 0.32);
}

#timelineOverlay .timeline-node__thumbWrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: var(--node-size);
  height: var(--node-size);
  overflow: hidden;
  border: 1px solid rgba(225, 244, 248, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.1), transparent 48%),
    rgba(2, 5, 8, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    inset 0 0 26px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

#timelineOverlay .timeline-node__thumbWrap::after {
  position: absolute;
  inset: 7px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

#timelineOverlay .timeline-node__thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.06);
}

#timelineOverlay .timeline-node__index {
  position: absolute;
  right: 7%;
  bottom: 7%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05em;
  height: 1.62em;
  padding: 0 0.38em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 7, 12, 0.82);
  color: rgba(245, 248, 252, 0.96);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.86);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

#timelineOverlay .timeline-node__label {
  position: relative;
  z-index: 1;
  max-width: clamp(128px, 10.5vw, 136px);
  color: rgba(245, 248, 252, 0.95);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.96rem, 1.14vw, 1.12rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.82),
    0 0 10px rgba(255, 255, 255, 0.14);
}

#timelineOverlay .timeline-node:not(.is-active):hover::before,
#timelineOverlay .timeline-node:not(.is-active):focus-visible::before,
#timelineOverlay .timeline-node.is-active::before {
  opacity: 0.9;
  scale: 1.08;
}

#timelineOverlay .timeline-node:not(.is-active):hover .timeline-node__ripple--one,
#timelineOverlay .timeline-node:not(.is-active):focus-visible .timeline-node__ripple--one {
  animation: timeline-node-ripple 1.75s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

#timelineOverlay .timeline-node:not(.is-active):hover .timeline-node__ripple--two,
#timelineOverlay .timeline-node:not(.is-active):focus-visible .timeline-node__ripple--two {
  animation: timeline-node-ripple 1.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s infinite;
}

#timelineOverlay .timeline-node:not(.is-active):hover .timeline-node__thumbWrap,
#timelineOverlay .timeline-node:not(.is-active):focus-visible .timeline-node__thumbWrap {
  border-color: color-mix(in srgb, var(--accent) 58%, #ffffff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 30px color-mix(in srgb, var(--accent) 24%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--accent) 15%, transparent),
    0 20px 38px rgba(0, 0, 0, 0.42);
  filter: saturate(1.04);
  transform: scale(1.045);
}

#timelineOverlay .timeline-node.is-active .timeline-node__thumbWrap {
  border-color: color-mix(in srgb, var(--accent) 72%, #ffffff);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 40px color-mix(in srgb, var(--accent) 34%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--accent) 17%, transparent),
    0 24px 44px rgba(0, 0, 0, 0.48);
  animation: timeline-active-node-glow 3.2s ease-in-out infinite;
}

#timelineOverlay .timeline-node.is-active::before {
  animation: timeline-active-node-ring 3.2s ease-in-out infinite;
}

#timelineOverlay .timeline-node.is-active .timeline-node__ripple--one {
  animation: timeline-active-node-ripple 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

#timelineOverlay .timeline-node.is-active .timeline-node__ripple--two {
  animation: timeline-active-node-ripple 3s cubic-bezier(0.16, 1, 0.3, 1) 0.72s infinite;
}

#timelineOverlay .station-popup {
  position: relative;
  z-index: 12;
  width: min(calc(100% - 32px), 1100px);
  margin: -58px auto 0;
  padding: clamp(22px, 3.2vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(90, 205, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(90, 205, 255, 0.055), rgba(90, 205, 255, 0) 34%),
    linear-gradient(180deg, rgba(11, 19, 29, 0.94), rgba(3, 8, 13, 0.96));
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.52),
    0 0 34px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#timelineOverlay .station-popup.is-switching {
  opacity: 0.24;
  transform: translateY(10px) scale(0.992);
}

#timelineOverlay .station-popup::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, rgba(90, 205, 255, 0.035) 1px, transparent 2px) 22px 0 / 1px 100% no-repeat;
  pointer-events: none;
}

#timelineOverlay .station-popup::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), rgba(119, 216, 255, 0.3), transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 26%, transparent);
}

#timelineOverlay .station-popup__meta,
#timelineOverlay .station-popup h2,
#timelineOverlay .station-popup__subtitle,
#timelineOverlay .station-popup__text {
  position: relative;
  z-index: 1;
}

#timelineOverlay .station-popup__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--timeline-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#timelineOverlay .station-popup__stage,
#timelineOverlay .station-popup__status,
#timelineOverlay .station-popup__counter {
  border: 1px solid rgba(226, 241, 246, 0.13);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(3, 8, 13, 0.46);
}

#timelineOverlay .station-popup__stage {
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(226, 241, 246, 0.12));
  color: var(--accent);
}

#timelineOverlay .station-popup h2 {
  margin: 0;
  color: #f6fbff;
  font-family: "nasalization", Arial, sans-serif;
  font-size: clamp(1.55rem, 3.3vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

#timelineOverlay .station-popup__subtitle {
  margin: 14px 0 0;
  color: #cae3eb;
  font-size: 1rem;
  line-height: 1.52;
}

#timelineOverlay .station-popup__text {
  margin: 18px 0 0;
  color: var(--timeline-muted);
  font-size: 0.96rem;
  line-height: 1.76;
  white-space: pre-line;
}

#timelineOverlay .lightbox {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(1, 3, 7, 0.88), rgba(1, 5, 9, 0.96)),
    repeating-linear-gradient(115deg, transparent 0, transparent 160px, rgba(119, 216, 255, 0.06) 162px, transparent 164px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#timelineOverlay .lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

#timelineOverlay .lightbox__frame {
  position: relative;
  z-index: 7;
  width: fit-content;
  max-width: min(100%, 1380px);
  max-height: calc(100vh - clamp(36px, 8vw, 104px));
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

#timelineOverlay .lightbox__image-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 241, 246, 0.22);
  border-radius: 31px;
  background: #020508;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(119, 216, 255, 0.16);
}

#timelineOverlay .lightbox__image {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

#timelineOverlay .lightbox__caption {
  width: min(100%, 920px);
  margin-top: 14px;
  color: var(--timeline-muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

#timelineOverlay .lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 241, 246, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(16, 29, 42, 0.78), rgba(3, 8, 13, 0.84));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(119, 216, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ffffff;
  backdrop-filter: blur(10px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

#timelineOverlay .lightbox__close:hover,
#timelineOverlay .lightbox__close:focus-visible {
  border-color: rgba(119, 216, 255, 0.58);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(119, 216, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

@keyframes timeline-node-ripple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }

  24% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.78);
  }
}

@keyframes timeline-active-node-ripple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  26% {
    opacity: 0.22;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.62);
  }
}

@keyframes timeline-active-node-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--accent) 13%, transparent),
      0 0 40px color-mix(in srgb, var(--accent) 34%, transparent),
      inset 0 0 30px color-mix(in srgb, var(--accent) 17%, transparent),
      0 24px 44px rgba(0, 0, 0, 0.48);
  }

  50% {
    box-shadow:
      0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent),
      0 0 48px color-mix(in srgb, var(--accent) 42%, transparent),
      inset 0 0 34px color-mix(in srgb, var(--accent) 21%, transparent),
      0 26px 48px rgba(0, 0, 0, 0.5);
  }
}

@keyframes timeline-active-node-ring {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 0.96;
  }
}

@keyframes timeline-rail-lightflow {
  to {
    stroke-dashoffset: -336;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-overlay,
  .timeline-overlay__panel,
  .timeline-overlay__close,
  #timelineOverlay .detail-media__button,
  #timelineOverlay .detail-media__image,
  #timelineOverlay .station-nav__button,
  #timelineOverlay .timeline-node__thumbWrap,
  #timelineOverlay .station-popup,
  #timelineOverlay .lightbox,
  #timelineOverlay .lightbox__close {
    transition-duration: 0.01ms;
  }

  #timelineOverlay .timeline-rail__pulse,
  #timelineOverlay .timeline-node.is-active::before,
  #timelineOverlay .timeline-node__thumbWrap,
  #timelineOverlay .timeline-node__ripple {
    animation: none;
  }
}
