/* The About page on top of landing.css: the hero's dark band throughout, one
   readable column, and a timeline that moves with scrolling and holds still
   for anyone who asks for reduced motion. */
.about {
  --link: #9DB8FF;
  --rule: rgba(246, 247, 249, 0.14);
  background: var(--hero-bg); color: var(--hero-fg);
  font-size: 18px; line-height: 1.6;
}
.about-col { max-width: 720px; padding-block: clamp(32px, 6vw, 72px) 112px; }
.about a { color: var(--link); text-underline-offset: 3px; }
.about p { color: var(--hero-muted); }

.about h1 { margin-bottom: 24px; font-size: clamp(40px, 9vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.about h3 { margin-bottom: 6px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.about h3 a { color: var(--hero-fg); }
.facts { padding: 0; list-style: none; color: var(--hero-muted); font-size: 16px; line-height: 1.5; }
.facts li { position: relative; margin: 6px 0; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--focus); }
.elsewhere { margin: 20px 0 72px; font-size: 16px; }

/* The timeline: a line with a dot per entry, newest first. */
.timeline { position: relative; isolation: isolate; margin: 0; padding: 0 0 0 32px; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; border-radius: 1px; }
.timeline::before { background: var(--rule); }
.timeline::after { background: linear-gradient(var(--focus), var(--brand)); transform-origin: top; }
/* Above both lines, so each dot covers them. */
.entry { position: relative; z-index: 1; padding-bottom: 48px; }
.entry:last-child { padding-bottom: 0; }
.entry::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--hero-bg); border: 2px solid var(--focus); box-shadow: 0 0 0 4px #242A37; /* the focus colour at 12% on --hero-bg, opaque */
}
.entry p { margin-bottom: 8px; }
.about .when { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--link); }
.entry > p:not(.when) { margin-top: 8px; }
.links { margin-top: 12px; padding: 0; list-style: none; }
.links li { position: relative; margin: 6px 0; padding-left: 24px; color: var(--hero-muted); }
.links li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 10px; height: 1px; background: var(--hero-muted); }

/* Scrolling draws the line and brings each entry in, where the browser can
   tie an animation to scrolling; elsewhere everything simply shows. */
@supports (animation-timeline: view()) {
  .timeline { view-timeline: --path block; }
  .timeline::after { animation: draw linear both; animation-timeline: --path; animation-range: entry 40% contain 100%; } /* drawn once its end is in view */
  .entry { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .timeline::after, .entry { animation: none !important; }
}
