:root {
  --white: #ffffff;
  --soft-white: #f8fafc;
  --border: #e2e8f0;

  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-soft: #eef2ff;

  --orange: #f97316;
  --orange-light: #fb923c;

  --text: #0f172a;
  --muted: #475569;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 700px;
}

.header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-weight: 600;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-blank {
  background: var(--soft-white);
  border-radius: 8px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft-white);
}

.section h2 {
  margin-bottom: 48px;
  color: var(--blue-dark);
  font-size: 28px;
}
/* Timeline Styles */
.timeline-wrapper {
  position: relative;
  padding-top: 60px;
  padding-bottom: 40px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.timeline {
  position: relative;
  display: flex;
  gap: 40px;
  padding: 0 20px;
}

.timeline-item {
  position: relative;
  flex: 0 0 320px;
  opacity: 0.4;
  transform: translateY(10px);
  transition: all 0.5s ease-out;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -36px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item.active .timeline-marker {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.timeline-content {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 100%;
}

.timeline-year {
  font-weight: 700;
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.timeline-content p {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.work-card.highlight {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.work-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 20px;
}

.work-card .desc {
  margin-bottom: 16px;
  color: var(--muted);
}

.work-card ul {
  padding-left: 20px;
  list-style: none;
}

.work-card ul li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
  font-size: 14px;
}

.work-card ul li::before {
  content: ".";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  background: var(--white);
}

.footer p {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-blank {
    min-height: 200px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .nav a {
    margin-left: 16px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .timeline-wrapper {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -34px;
  }
}
