@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Syne:wght@600;700;800&display=swap');

:root {
  color-scheme: dark;
  --page: #08111f;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 15% 20%, var(--accent-soft), transparent 34%), linear-gradient(135deg, #08111f, #111827 60%, #0f172a);
  content: '';
}
a { color: inherit; text-decoration: none; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0;
}
.back-link, .page-kicker, .timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.back-link { color: var(--muted); transition: color 0.25s ease; }
.back-link:hover { color: var(--ink); }
.page-main { width: min(1440px, calc(100% - 3rem)); margin: 0 auto; padding: 7rem 0 9rem; }
.page-kicker { color: var(--accent); }
h1, h2, h3 { font-family: 'Syne', sans-serif; }
h1 { max-width: 850px; margin: 1rem 0; font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: 0.9; letter-spacing: -0.07em; text-transform: uppercase; }
.page-intro { max-width: 600px; margin: 2rem 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.timeline-wrap { position: relative; margin-top: 7rem; overflow-x: auto; padding-top: 2.5rem; padding-bottom: 2rem; scrollbar-color: var(--accent) transparent; }
.timeline-track { position: relative; display: flex; gap: 1.5rem; min-width: max-content; min-height: 780px; padding: 1rem 2rem; }
.timeline-track::before { position: absolute; top: 50%; left: 2rem; right: 2rem; height: 3px; background: var(--accent); opacity: 0.7; content: ''; }
.timeline-entry { position: relative; flex: 0 0 390px; height: 750px; animation: rise 0.7s both; }
.timeline-entry:nth-child(2) { animation-delay: 0.08s; }
.timeline-entry:nth-child(3) { animation-delay: 0.16s; }
.timeline-entry:nth-child(4) { animation-delay: 0.24s; }
.timeline-card { position: absolute; left: 0; width: 100%; min-height: 270px; padding: 1.6rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 1.25rem; background: rgba(255,255,255,0.06); box-shadow: 0 20px 50px rgba(0,0,0,0.2); transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.timeline-entry:nth-child(odd) .timeline-card { bottom: calc(50% + 4rem); border-left: 4px solid var(--accent); }
.timeline-entry:nth-child(even) .timeline-card { top: calc(50% + 4rem); border-right: 4px solid var(--accent); }
.timeline-card:hover { transform: translateY(-0.5rem); border-color: var(--accent); background: rgba(255,255,255,0.1); }
.timeline-date { position: absolute; left: 50%; z-index: 2; padding: 0.65rem 0.8rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; background: var(--page); color: var(--accent); white-space: nowrap; transform: translateX(-50%); }
.timeline-entry:nth-child(odd) .timeline-date { bottom: calc(50% + 1.5rem); }
.timeline-entry:nth-child(even) .timeline-date { top: calc(50% + 1.5rem); }
.timeline-dot { position: absolute; top: 50%; left: 50%; z-index: 3; width: 1.15rem; height: 1.15rem; border: 4px solid var(--page); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); transform: translate(-50%, -50%); }
.timeline-card h2 { margin: 0 0 0.7rem; font-size: 1.55rem; line-height: 1.05; text-transform: uppercase; }
.timeline-card h3 { margin: 0 0 1.5rem; color: var(--accent); font-size: 1rem; }
.timeline-card p { margin: 0.65rem 0; color: var(--muted); line-height: 1.55; }
.timeline-card .detail-link { display: inline-block; margin-top: 1.2rem; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .page-header, .page-main { width: min(100% - 2rem, 1440px); }
  .page-main { padding-top: 4rem; }
  .timeline-wrap { margin-top: 4rem; margin-inline: -0.5rem; padding-top: 1.5rem; }
  .timeline-track { min-height: 680px; padding-inline: 1.25rem; }
  .timeline-track::before { left: 1.25rem; right: 1.25rem; }
  .timeline-entry { flex-basis: 330px; height: 650px; }
  .timeline-card { min-height: 240px; padding: 1.25rem; }
}
