:root {
  --blue: #0d4a8f;
  --blue-dark: #082f5c;
  --blue-light: #e8f0fa;
  --text: #1a1a1a;
  --muted: #5a6472;
  --bg: #ffffff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--blue-dark);
  margin: 0 0 0.5em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo { height: 42px; }

.brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--blue); text-decoration: none; }

.nav-progress {
  font-weight: 900;
  color: var(--blue-dark) !important;
  padding-left: 18px;
  border-left: 1px solid #e0e0e0;
}

.nav-progress + .nav-progress {
  padding-left: 0;
  border-left: none;
}

.nav-progress-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: default;
}

.nav-dropdown-label::after {
  content: '\25BE';
  font-size: 0.7em;
  color: var(--muted);
}

.nav-dropdown:hover .nav-dropdown-label,
.nav-dropdown:hover .nav-dropdown-label::after {
  color: var(--blue);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 47, 92, 0.12);
  min-width: 180px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  padding: 72px 0 64px;
  text-align: center;
}

.hero-logo { height: 160px; margin-bottom: 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); text-decoration: none; }

/* Sections */
.section { padding: 64px 0; }
.section h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 32px;
}

.mission p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Challenge */
.challenge { background: #fafbfc; }
.challenge-sub {
  max-width: 760px;
  margin: -16px auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.challenge-note {
  max-width: 720px;
  margin: 32px auto 0;
  background: var(--blue-light);
  border-radius: 10px;
  padding: 24px 28px;
  text-align: center;
}

.challenge-note h3 { margin-bottom: 8px; }
.challenge-note p { color: var(--muted); margin: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--blue-light);
  border-radius: 10px;
  padding: 24px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.card-link {
  display: block;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.card-link:hover {
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-2px);
}

.card-link h3 { color: var(--blue-dark); }

/* Sponsors */
.sponsors { background: #fafbfc; }
.sponsors-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: -16px auto 32px;
}

.sponsor-tier {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
}

.sponsor-tier p { color: var(--muted); margin-bottom: 20px; }

/* Team */
.team-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: -16px auto 32px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--blue-light);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  border: 2px solid transparent;
}

.team-card-featured {
  border-color: var(--blue);
}

.avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.team-card .tag {
  display: inline-block;
  border: 1px solid #c7d6ea;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
}

/* Partners */
.partners { background: #fafbfc; }
.partners-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: -16px auto 32px;
}

.partner-tier-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 32px 0 16px;
}

.partner-tier-label:first-of-type { margin-top: 0; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.partner-logo {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.partner-logo:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(13, 74, 143, 0.12);
  text-decoration: none;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* Timeline */
.timeline-section { background: #fafbfc; }

.event-timeline {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 720px;
  border-left: 3px solid var(--blue-light);
}

.event-timeline li {
  position: relative;
  padding: 0 0 36px 32px;
}

.event-timeline li:last-child { padding-bottom: 0; }

.event-dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
}

.event-dot-active {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.event-date {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 4px;
}

.event-body h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.event-body p:not(.event-date) {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Progress */
.progress-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: -16px auto 32px;
}

.progress-group-title {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin: 40px 0 20px;
}

.progress-group-title:first-of-type { margin-top: 0; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 8px;
}

.progress-photo {
  margin: 0;
}

.photo-frame {
  border-radius: 10px;
  overflow: hidden;
  max-height: 480px;
  display: flex;
  justify-content: center;
  background: var(--blue-light);
}

.photo-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.progress-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #dce8fa; max-width: 560px; margin: 0 auto 28px; }
.cta .btn-outline { color: #fff; border-color: #fff; }
.cta .btn-outline:hover { background: rgba(255,255,255,0.12); }
.cta .btn-primary { background: #fff; color: var(--blue); }
.cta .btn-primary:hover { background: #e8f0fa; }

/* Contact Us */
.contact-us { background: #fafbfc; text-align: center; }
.contact-sub {
  color: var(--muted);
  max-width: 500px;
  margin: -16px auto 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-link {
  font-weight: 600;
  color: var(--blue);
  border: 1px solid #c7d6ea;
  border-radius: 8px;
  padding: 12px 24px;
  min-width: 300px;
}

.contact-link:hover {
  background: var(--blue-light);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: #cbd8ea;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.site-footer a { color: #fff; }
.footer-note { color: #8fa3c2; margin-top: 8px; }

/* Project pages */
.project-hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  padding: 56px 0 40px;
  text-align: center;
}

.project-hero h1 { font-size: 2.2rem; margin-bottom: 14px; }

.project-hero-sub {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 36px auto 0;
}

.stat-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 12px;
  text-align: center;
}

.stat-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--blue-dark);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 4px;
}

.project-section { padding: 48px 0; }
.project-section.alt { background: #fafbfc; }

.project-section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 24px;
}

.project-body {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-body p { margin: 0 0 16px; }
.project-body ul { padding-left: 20px; margin: 0 0 16px; }
.project-body li { margin-bottom: 8px; }
.project-body strong { color: var(--text); }

.project-quote {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  font-style: italic;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.project-media {
  max-width: 500px;
  margin: 32px auto 0;
  border-radius: 10px;
  overflow: hidden;
}

.project-media img { width: 100%; display: block; }

.project-back {
  text-align: center;
  padding: 40px 0;
}

/* Nexus exploded diagram */
.nexus-diagram {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 960px;
  margin: 40px auto 0;
}

.nexus-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nexus-center img {
  width: 100%;
  border-radius: 10px;
}

.nexus-part {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.nexus-part img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.nexus-part h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

.nexus-part p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.nexus-col-left .nexus-part::after,
.nexus-col-right .nexus-part::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--blue);
}

.nexus-col-left .nexus-part::after { right: -20px; }
.nexus-col-right .nexus-part::after { left: -20px; }

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
  }
  .nav-progress,
  .nav-progress + .nav-progress {
    padding-left: 24px;
    border-left: none;
    border-top: 3px solid var(--blue);
  }
  .hero h1 { font-size: 1.8rem; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-label {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
  }
  .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background: #fafbfc;
  }
  .nav-dropdown-menu a {
    padding: 12px 24px 12px 36px;
    border-top: 1px solid #f0f0f0;
  }

  .nexus-diagram {
    grid-template-columns: 1fr;
  }
  .nexus-col-left .nexus-part::after,
  .nexus-col-right .nexus-part::after {
    display: none;
  }
}
