:root {
  --bg: #f6f7fb;
  --bg-soft: #edf2ff;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6679;
  --line: #dbe0ec;
  --brand: #1b63ff;
  --brand-2: #0a42ba;
  --radius: 18px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, #dbe8ff 0%, transparent 28%),
    radial-gradient(circle at 95% 8%, #e7ecff 0%, transparent 26%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgb(246 247 251 / 0.85);
  border-bottom: 1px solid rgb(219 224 236 / 0.9);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.hero {
  padding: 6rem 0 2.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-2);
  font-weight: 600;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  max-width: 16ch;
}

.lead {
  margin-top: 1rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.07rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--brand);
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #fff;
}

.section {
  padding: 2.4rem 0;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.section-intro {
  margin-top: -0.2rem;
  color: var(--muted);
}

.recognition-note {
  margin-top: 0.8rem;
  color: #35415d;
  background: #eef3ff;
  border: 1px solid #d5e0ff;
  border-left: 4px solid #8ba8ff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.recognition-note a {
  color: var(--brand-2);
  font-weight: 600;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

.timeline summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
}

.timeline summary::-webkit-details-marker {
  display: none;
}

.timeline summary span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.detail-list {
  margin: 0.85rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 0.55rem;
}

.project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgb(24 58 135 / 0.1);
}

.project-tag {
  margin: 0;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-card h3 {
  margin: 0.38rem 0 0;
}

.project-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.toolkit-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-pill {
  background: var(--bg-soft);
  border: 1px solid #cfdbff;
  border-radius: var(--radius);
  padding: 1rem;
}

.tool-pill h3 {
  margin: 0;
  font-size: 1rem;
}

.tool-pill p {
  margin: 0.55rem 0 0;
  color: #31405f;
}

.edu p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.contact {
  background: linear-gradient(180deg, rgb(237 242 255 / 0.35), transparent 70%);
}

.contact-links {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: var(--brand-2);
  border: 1px solid #bfd1ff;
  background: #f0f5ff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1rem 0 2rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .project-grid,
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  .hero {
    padding-top: 5rem;
  }

  .project-grid,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .timeline summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}
