/* A two-sided timeline rendered from the article’s Markdown source. */
/* Year jumps are immediate; long animated jumps obscure the selected event. */
html.timeline-document { scroll-behavior: auto; }
/* Palette sampled from the “sensed” chromatic-aberration wordmark: a near-black field, silver
   type, and the cyan/magenta split as the only accents. Scoped to this page — the rest of the
   site keeps the purple/blue/orange tokens in styles.css. The event tags carry the split:
   AI is magenta, Robotics is cyan, and AI + robotics is the silver the two resolve into. */
.timeline-page {
  --bg: #0b0a0b;
  --text: #c0c0c0;
  --muted: #9c9ca4;
  --magenta: #ea33f7;
  --cyan: #75fbfd;
  --timeline-border: #2c2c33;
  --timeline-card: #121216;
  --timeline-muted: #9c9ca4;
  --timeline-nav-height: 72px;
  --timeline-rail-height: 76px;
}
/* The shared nav is tinted warm for the rest of the site; neutralise it here. */
.timeline-page .nav { background: rgba(11, 10, 11, .55); border-bottom-color: rgba(192, 192, 192, .1); }
.timeline-page .nav { min-height: 72px; padding-inline: max(24px, calc((100vw - 1120px) / 2)); }
.timeline-page .nav-brand { display: inline-block; font-size: 1.35rem; }
.timeline-page .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.timeline-page a { transition: color 150ms ease, border-color 150ms ease; }
.timeline-page a:hover { color: var(--magenta); }
.timeline-page .nav-links [aria-current="page"] { color: var(--text); }
/* Cyan for focus, magenta for hover: the two states stay distinguishable, and cyan is the
   brighter of the pair against the field (15.8:1) where a focus ring has to be unmissable. */
.timeline-page a:focus-visible, .timeline-page summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.timeline-main { max-width: 1248px; padding-inline: 32px; }
/* The same cover art that fronts this post's card in the blog listing, so the thumbnail and
   the article's own opening view match — mirrors .post-figure/.post-titlecard's pattern on
   the static post. No frame, no corners: its ground is the page's own #0b0a0b, so it bleeds
   into the field rather than sitting in a box. Decorative (alt=""): its cover-blurb title is
   a stylised teaser, not a restatement of the h1 below, so both stay meaningful. */
.timeline-hero { margin-top: 2rem; }
.timeline-hero img { width: 100%; height: auto; display: block; }
.timeline-intro { padding: 3rem 0 0; scroll-margin-top: calc(var(--timeline-nav-height) + 1rem); }
.timeline-eyebrow { font-size: .875rem; color: var(--timeline-muted); }
.timeline-prologue { padding-block: 2rem 3.75rem; }
.timeline-prologue p { color: var(--timeline-muted); font-size: 1rem; line-height: 1.8; }
.timeline-prologue p + p { margin-top: 1rem; }
.timeline-prologue p a { color: var(--text); }

/* A horizontal year guide leaves both sides of the central spine for events. */
.timeline-loading { padding-block: 2rem; color: var(--timeline-muted); }
.timeline-loading[hidden] { display: none; }
.timeline-loading button { font: inherit; color: var(--text); background: transparent; border: 0; padding: .5rem; text-decoration: underline; cursor: pointer; }
.timeline-layout { padding-bottom: 1rem; }
.timeline-guide { position: sticky; top: var(--timeline-nav-height); z-index: 20; display: flex; flex-direction: column; gap: .75rem; padding: 1rem 0; margin-bottom: 3rem; background: var(--bg); border-top: 1px solid var(--timeline-border); }
.timeline-guide-row { display: flex; align-items: center; gap: 1.5rem; }
.timeline-guide-status { flex: 0 0 76px; }
.timeline-current-year { font-family: var(--font-display); font-size: 2rem; font-variant-numeric: lining-nums tabular-nums; line-height: 1.3; letter-spacing: -.04em; }
.timeline-year-nav { display: flex; flex: 1; min-width: 0; gap: .2rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #45454f transparent; padding: .35rem .2rem; }
.timeline-year-nav a { flex: 1 0 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: .4rem; border: 1px solid transparent; border-radius: 4px; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--timeline-muted); text-decoration: none; }
.timeline-year-nav a:hover { border-color: var(--timeline-border); }
.timeline-year-nav a[aria-current="location"] { background: #ea33f71f; border-color: #ea33f780; color: var(--magenta); }
/* A year with nothing left under the active filter: still present (so the rail doesn't
   reflow as filters change) but inert for both mouse and keyboard. */
.timeline-year-nav a[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* Filter chips share the tag's dot-plus-colour language (.timeline-tag below): pressed is
   the coloured, filled state; unpressed just dims rather than disappearing, so the full set
   of available types is always visible even mid-filter. */
.timeline-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.timeline-filter-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 36px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--timeline-border); background: transparent; font: inherit; font-size: .8125rem; color: var(--timeline-muted); cursor: pointer; transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.timeline-filter-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.timeline-filter-btn:hover { border-color: var(--timeline-muted); }
.timeline-filter-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.timeline-filter-btn[aria-pressed="false"] { opacity: .45; }
.timeline-filter-btn--ai[aria-pressed="true"] { color: var(--magenta); background: #ea33f71f; border-color: #ea33f780; }
.timeline-filter-btn--robotics[aria-pressed="true"] { color: var(--cyan); background: #75fbfd1f; border-color: #75fbfd80; }
.timeline-filter-btn--combined[aria-pressed="true"] { color: var(--text); background: #c0c0c01f; border-color: #c0c0c080; }
.timeline-guide-progress { position: absolute; inset: auto 0 0; }
.timeline-guide-progress progress { display: block; appearance: none; width: 100%; height: 2px; border: none; background: var(--timeline-border); color: var(--magenta); accent-color: var(--magenta); }
.timeline-guide-progress progress::-webkit-progress-bar { background: var(--timeline-border); }
.timeline-guide-progress progress::-webkit-progress-value { background: var(--magenta); }
.timeline-guide-progress progress::-moz-progress-bar { background: var(--magenta); }
.timeline-track { position: relative; list-style: none; padding: 0; min-width: 0; }
.timeline-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--timeline-border); }
.timeline-year-group { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); position: relative; padding-bottom: 2rem; scroll-margin-top: calc(var(--timeline-nav-height) + var(--timeline-rail-height) + 1.5rem); }
/* A year with every milestone filtered out: hidden rather than left as an orphan heading
   over nothing. Needs its own rule — .timeline-year-group's own `display` otherwise outranks
   the [hidden] attribute's UA-stylesheet default. */
.timeline-year-group[hidden] { display: none; }
.timeline-year-group:focus { outline: none; }
.timeline-year-heading { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; padding: .8rem .5rem; background: var(--bg); }
.timeline-year-heading h2 { font-family: var(--font-display); font-size: 1.65rem; color: var(--timeline-muted); margin: 0; font-variant-numeric: lining-nums tabular-nums; line-height: 1.3; }
.timeline-year-group.is-current .timeline-year-heading h2 { color: var(--magenta); }
.milestone { position: relative; min-width: 0; align-self: start; padding: 1.75rem 1.9rem 0; background: var(--timeline-card); border: 1px solid var(--timeline-border); border-radius: 6px; }
.milestone--left { grid-column: 1; }
.milestone--right { grid-column: 3; }
.milestone::after { content: ""; position: absolute; top: 2.25rem; width: 44px; height: 1px; background: var(--timeline-border); }
.milestone::before { content: ""; position: absolute; z-index: 1; top: calc(2.25rem - 4px); width: 9px; height: 9px; border: 1px solid #64646f; border-radius: 50%; background: var(--bg); }
.milestone--left::after { right: -45px; }
.milestone--left::before { right: -49px; }
.milestone--right::after { left: -45px; }
.milestone--right::before { left: -49px; }
.is-current .milestone::before { border-color: var(--magenta); background: var(--magenta); }
.milestone + .milestone { margin-top: 2rem; }
/* An event image is optional: full-bleed across the card top, with its space reserved so the timeline never shifts while it loads. */
.milestone-figure { margin: -1.75rem -1.9rem 1.5rem; }
.milestone-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px 5px 0 0; background: #191920; border-bottom: 1px solid var(--timeline-border); }
.milestone-figure figcaption { padding: .7rem 1.9rem 0; font-size: .75rem; line-height: 1.6; color: var(--timeline-muted); }
.milestone-figure figcaption a { color: var(--timeline-muted); }
.milestone-copy p + p { margin-top: 1rem; }
.milestone-sources { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.milestone-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; color: var(--timeline-muted); font-size: .8125rem; }
.timeline-tag { display: inline-flex; align-items: center; gap: .5rem; color: var(--magenta); }
.timeline-tag::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.timeline-tag--robotics { color: var(--cyan); }
.timeline-tag--combined { color: var(--text); }
.milestone-project { color: var(--timeline-muted); font-size: .875rem; margin-top: 1.75rem; }
.milestone h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.2; margin-top: .5rem; max-width: 22ch; text-wrap: balance; }
.milestone-copy { margin-top: 1.1rem; color: var(--timeline-muted); font-size: 1rem; line-height: 1.8; text-wrap: pretty; }
.timeline-source { display: inline-flex; min-height: 44px; align-items: center; gap: .65rem; font-size: .875rem; margin-block: 1rem 1.25rem; color: var(--text); text-decoration-color: #64646f; }
.milestone-context { border-top: 1px solid var(--timeline-border); }
.milestone-context summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; font-size: .875rem; color: var(--timeline-muted); }
.milestone-context summary::-webkit-details-marker { display: none; }
.milestone-context summary:hover { color: var(--text); }
.timeline-plus { display: inline-block; position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.timeline-plus::before, .timeline-plus::after { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 1px; background: currentColor; }
.timeline-plus::after { transform: rotate(90deg); }
.milestone-context[open] .timeline-plus::after { transform: none; }
.milestone-context p { padding-bottom: 1.5rem; font-size: 1rem; line-height: 1.8; color: var(--timeline-muted); }
.timeline-outro { border-top: 1px solid var(--timeline-border); padding-block: 3.5rem; max-width: 44rem; margin-inline: auto; }
.timeline-outro h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.15; color: var(--text); margin-block: 1.25rem; letter-spacing: -.025em; }
.timeline-outro h2 em { color: var(--magenta); }
.timeline-outro > p:not(.timeline-eyebrow) { font-size: 1rem; color: var(--timeline-muted); line-height: 1.8; }
.timeline-outro > p:last-child a { display: inline-flex; align-items: center; min-height: 44px; gap: .75rem; color: var(--cyan); font-size: 1rem; margin-top: 1.5rem; text-decoration-color: currentColor; }
.timeline-editorial-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--timeline-border); padding-top: 1.5rem; font-size: .8125rem; color: var(--timeline-muted); }
.timeline-editorial-note p { max-width: 44rem; }
.timeline-editorial-note a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.timeline-page footer { max-width: 1120px; padding: 3rem 32px; }

@media (max-width: 760px) {
  .timeline-page .nav { min-height: 64px; padding: .5rem 20px; justify-content: space-between; gap: 1rem; }
  .timeline-page .nav-links { gap: 1rem; }
  .timeline-main { padding-inline: 20px; }
  .timeline-intro { padding-top: 1.75rem; }
  .timeline-prologue { padding-block: 1rem 2rem; }
  .timeline-guide { padding: .5rem 20px; margin-inline: -20px; margin-bottom: 2rem; }
  .timeline-guide-status { display: none; }
  .timeline-year-nav { gap: .4rem; }
  .timeline-year-nav a { flex: 0 0 58px; }
  .timeline-track { padding-left: 1.15rem; margin-left: 4px; }
  .timeline-track::before { left: 0; }
  .timeline-year-group { display: block; padding-bottom: 2.5rem; }
  .timeline-year-heading { width: fit-content; justify-self: start; padding: 0 0 1rem; }
  .milestone { padding: 1.3rem 1.2rem 0; }
  .milestone::after { width: calc(1.15rem - 1px); left: -1.15rem; right: auto; }
  .milestone::before { left: calc(-1.15rem - 5px); right: auto; }
  .milestone + .milestone { margin-top: 1rem; }
  .milestone-figure { margin: -1.3rem -1.2rem 1.2rem; }
  .milestone-figure figcaption { padding-inline: 1.2rem; }
  .milestone-project { margin-top: 1.25rem; }
  .milestone h3 { font-size: clamp(1.5rem, 5.8vw, 2rem); }
  .timeline-outro { padding-block: 2.5rem; }
  .timeline-editorial-note { flex-direction: column; gap: 1rem; }
  .timeline-page footer { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .timeline-page .nav { flex-wrap: wrap; gap: .1rem; }
  .timeline-page .nav-links { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-page { scroll-behavior: auto; }
  .timeline-page a { transition: none; }
}
@media print {
  .timeline-page { background: white; color: black; }
  .timeline-page .nav, .timeline-guide, .timeline-editorial-note a { display: none; }
  .timeline-main { max-width: none; }
  .timeline-layout, .timeline-year-group { display: block; }
  .timeline-track::before, .milestone::before, .milestone::after { display: none; }
  .timeline-outro { margin-left: 0; }
  .milestone { break-inside: avoid; background: none; border-color: #ccc; }
  .timeline-page p, .timeline-page h1, .timeline-page h2, .timeline-page h3, .timeline-page em, .timeline-page a, .timeline-page span, .timeline-page figcaption { color: black; }
  .milestone-figure img { border-color: #ccc; }
}
