:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --line: #e0e0e0;
  --primary: #0d47a1;
  --primary-dark: #0a3d91;
  --accent: #e3f2fd;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.container {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 12px rgba(13, 71, 161, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 2rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

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

/* Scrolling ticker banner */
.ticker-wrap {
  background: #0d47a1;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #0a3d91;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ticker {
  display: inline-block;
  padding: 0.55rem 0;
  animation: ticker-scroll 60s linear infinite;
}

.ticker span {
  display: inline-block;
  padding: 0 2rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.core-def {
  max-width: 60ch;
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
  margin: 1.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--primary);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.button:hover,
.link-button:hover {
  text-decoration: none;
}

.button.primary,
.link-button {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover,
.link-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}

.hero-panel {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.panel-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.alt-bg {
  background: var(--surface-alt);
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

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

.content-grid article {
  padding: 1.5rem;
}

.content-grid h3 {
  font-size: 1rem;
  margin-top: 0;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.research-card h3 {
  margin-top: 0;
}

.research-card p {
  margin: 0.5rem 0;
}

.doi-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.program-description {
  margin-top: 2rem;
}

.program-description ul {
  line-height: 1.8;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.application-grid article {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-section {
  padding-bottom: 5rem;
}

.narrow {
  max-width: 700px;
}

.contact-placeholder {
  font-size: 0.95rem;
  padding: 1rem;
  background: var(--accent);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  color: var(--muted);
  font-size: 0.9rem;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
}

@media (max-width: 800px) {
  .hero-grid,
  .two-column,
  .content-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 0;
  }

  .main-nav {
    justify-content: center;
    gap: 0.35rem;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }

  .button,
  .link-button {
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .ticker {
    font-size: 0.78rem;
  }
}
