:root {
  --paper: #FAF8F2;
  --paper-alt: #F3EFE4;
  --ink: #1C2541;
  --navy: #003594;
  --gold: #FFB81C;
  --redline: #B23A2E;
  --rule: #DED7C4;
  --muted: #6B6759;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--navy); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
}
.brand-text {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: "Inter", system-ui, sans-serif;
}
.site-nav a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 1rem;
  font-family: "Inter", system-ui, sans-serif;
}
.site-nav-mobile a {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav-mobile.open { display: flex; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
#intro { border-top: none; }
.section.alt { background: var(--paper-alt); }
.section-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.section h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}

.components {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.5rem;
}
.component {
  padding: 0;
}
.component-label {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.component-detail {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .components { grid-template-columns: 1fr; gap: 1.4rem; }
}

.block-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.8rem 0 0.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
}
.block-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.6rem;
  max-width: 56ch;
}
.impact-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}
.impact-list li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.impact-list li::marker { color: var(--gold); font-size: 1.2em; }

/* Use cases */
.use-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.5rem;
}
.use-cases li {
  padding: 0;
}
.uc-label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.uc-sub {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .use-cases { grid-template-columns: 1fr; }
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
.person { text-align: left; }
.person-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.person-name {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.15rem;
  color: var(--ink);
}
.person-link {
  color: var(--ink);
  text-decoration: none;
}
.person-link:hover,
.person-link:focus-visible { text-decoration: underline; color: var(--navy); }
.person-role { color: var(--navy); font-weight: 500; }
.person-dept {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Publications */
.publications {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.publications li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pub-venue {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}
.pub-link {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--navy);
  text-decoration: none;
}
.pub-link:hover,
.pub-link:focus-visible { text-decoration: underline; }
.pub-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--navy);
}
.pub-title:hover,
.pub-title:focus-visible { text-decoration: underline; }
.pub-title-nolink { color: var(--ink); }

/* Sponsors */
.sponsors {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.sponsors li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.sponsor-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
}
.sponsor-link {
  text-decoration: none;
  color: var(--navy);
}
.sponsor-link:hover,
.sponsor-link:focus-visible { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
}
.footer-inner p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
.footer-sub { color: #A9A392 !important; }
