:root {
  --ink: #14243b;
  --muted: #526176;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --accent: #1859a3;
  --line: #dce3ec;
  --width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
section, [id] { scroll-margin-top: 28px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: white; padding: 22px 24px; }
.site-header nav { max-width: var(--width); margin: auto; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 38px; font-size: .9rem; font-weight: 500; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--accent); }
.github-link { display: inline-flex; align-items: center; gap: 8px; }
.github-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero { max-width: var(--width); margin: auto; padding: 76px 24px 0; text-align: center; }
.hero-grid { display: none; }
.hero-copy { max-width: 960px; margin: auto; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: .72rem; line-height: 1.6; letter-spacing: .14em; font-weight: 650; text-transform: uppercase; }
.eyebrow > span { display: none; }
h1 { margin: 0; font: 400 clamp(2.7rem, 6vw, 5.3rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 760px; margin: 26px auto 0; color: var(--muted); font-size: 1.12rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; }
.hero .hero-actions { justify-content: center; }
.primary-action { display: inline-flex; align-items: center; gap: 20px; padding: 13px 20px; border-radius: 5px; background: var(--accent); color: white; font-size: .9rem; font-weight: 600; }
.primary-action:hover { background: #103f76; color: white; }
.text-action { color: var(--accent); font-size: .9rem; border-bottom: 1px solid #a9bfda; padding-bottom: 4px; }
.hero-research-figure { width: 100%; max-width: none; margin: 46px auto 0; }
.hero-research-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
figcaption { margin-top: 12px; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.program-overview { width: 100%; max-width: none; margin: 0; padding: 80px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.program-overview > div { width: 100%; max-width: var(--width); margin: auto; padding: 0 24px; }
.program-overview .pipeline-figure { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.pipeline-figure > a, .pipeline-figure picture { display: block; width: 100%; }
.program-overview .pipeline-figure img { width: 100%; max-width: none; height: auto; border: 0; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.program-overview h2, .section-heading h2, .mission-section h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.15; letter-spacing: -.035em; }
.program-overview p:not(.eyebrow) { line-height: 1.85; color: var(--muted); }
.program-overview figure { margin: 0; min-width: 0; }
.program-overview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.projects-section, .videos-section { padding: 76px max(24px, calc((100vw - 1152px)/2)); }
.projects-section { background: var(--wash); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: end; margin-bottom: 40px; }
.section-heading > p { color: var(--muted); line-height: 1.75; margin: 0; }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 15px; padding: 28px; border: 1px solid var(--line); background: white; border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.project-card:hover { border-color: #7fa1c8; box-shadow: 0 5px 18px #14243b08; }
.project-number { color: var(--accent); font-size: .8rem; padding-top: 2px; }
.project-icon { display: none; }
.project-content { display: flex; flex-direction: column; align-items: start; gap: 13px; }
.project-label { color: var(--muted); font-size: .65rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
.project-content strong { font: 400 1.65rem/1.2 Georgia, serif; letter-spacing: -.02em; color: var(--ink); }
.project-description { color: var(--muted); font-size: .93rem; line-height: 1.7; }
.project-arrow { color: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; font-size: .68rem; color: var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; }
.video-card { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #101820; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.video-frame video { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.video-info { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 17px; align-items: end; }
.video-info > span { grid-column: 1/-1; color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.video-info h3 { margin: 0; font: 400 1.35rem/1.3 Georgia, serif; }
.video-info a { font-size: .78rem; color: var(--accent); }
.resource-links { display: flex; gap: 20px 28px; flex-wrap: wrap; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--accent); }
.mission-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 76px max(24px, calc((100vw - 1152px)/2)); background: var(--wash); border-top: 1px solid var(--line); }
.mission-number { display: none; }
.mission-copy { color: var(--muted); line-height: 1.8; }
.mission-copy > p { margin: 0; }
.program-facts { margin: 25px 0 0; }
.program-facts div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.program-facts dt { font-size: .76rem; color: var(--muted); }
.program-facts dd { margin: 0; color: var(--ink); font-size: .85rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px max(24px, calc((100vw - 1152px)/2)); border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); }
footer p { margin: 0; }
footer a { color: var(--accent); }
/* Shared publication layout for the four module pages. */
.research-hero { padding: 38px max(24px, calc((100vw - 1152px)/2)) 55px; background: var(--wash); border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--muted); font-size: .85rem; }
.research-hero h1 { max-width: 1000px; font-size: clamp(2.7rem, 5.4vw, 4.9rem); }
.research-subtitle { max-width: 840px; margin: 24px 0 0; font: 1.3rem/1.65 Georgia, serif; color: var(--muted); }
.research-layout { max-width: var(--width); margin: auto; padding: 58px 24px 64px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; }
.contents { position: sticky; top: 28px; align-self: start; font-size: .8rem; line-height: 1.6; border-left: 2px solid var(--line); padding-left: 20px; }
.contents p { margin-top: 0; font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.contents a { display: block; padding: 7px 0; color: var(--muted); }
.contents a:hover { color: var(--accent); }
.research-body { min-width: 0; font-size: 1.03rem; line-height: 1.85; }
.research-body section { margin-bottom: 52px; }
.research-body h2 { margin: 0 0 20px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.2; letter-spacing: -.025em; }
.research-body p { color: #3b4b60; }
.research-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.research-body .abstract { font: 1.24rem/1.85 Georgia, serif; color: var(--ink); }
.research-body .eyebrow { color: var(--accent); }
.research-body li { margin: 12px 0; }
.research-body figure { margin: 28px 0 38px; }
.research-body img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.research-body video { display: block; width: 100%; aspect-ratio: 16/9; background: #101820; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; line-height: 1.6; }
caption { text-align: left; margin-bottom: 12px; font-size: .8rem; color: var(--muted); }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--wash); }
td:first-child { font-weight: 600; }
.research-facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.research-facts dt { font-weight: 600; }
.research-facts dd { margin: 0; }
.chapter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 18px; }
.chapter-list a { padding: 10px 0; font-size: .82rem; border-bottom: 1px solid var(--line); }
.module-navigation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px max(24px, calc((100vw - 1152px)/2)); border-top: 1px solid var(--line); background: var(--wash); font-size: .84rem; line-height: 1.6; }
.module-navigation a[aria-current] { color: var(--accent); font-weight: 650; }
@media (max-width: 980px) {
  .program-overview { grid-template-columns: 1fr; gap: 26px; }
  .research-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
  .project-card { padding: 22px; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .project-arrow { display: none; }
  .module-navigation { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-header { padding: 18px 20px; }
  .site-header nav { gap: 16px 22px; font-size: .8rem; }
  .hero { padding-top: 48px; }
  .lede { font-size: 1rem; }
  .hero-actions { gap: 20px; }
  .hero-research-figure { margin-top: 34px; }
  .program-overview, .projects-section, .videos-section, .mission-section { padding-top: 52px; padding-bottom: 52px; }
  .section-heading, .mission-section { grid-template-columns: 1fr; gap: 24px; }
  .project-list, .video-grid { grid-template-columns: 1fr; }
  .video-info { grid-template-columns: 1fr; }
  .program-facts div { grid-template-columns: 1fr; gap: 3px; }
  .research-layout { display: block; padding-top: 32px; }
  .contents { position: static; margin-bottom: 38px; }
  .research-hero { padding-top: 25px; padding-bottom: 38px; }
  .research-hero h1 { overflow-wrap: break-word; }
  .research-facts > div, .chapter-list, .module-navigation { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.website-qr { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 42px 24px; border-top: 1px solid var(--line); }
.website-qr img { display: block; width: 144px; height: 144px; }
.website-qr h2 { margin: 0 0 10px; font-size: 1.55rem; }
.website-qr p { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.website-qr a { color: var(--accent); font-size: .85rem; }
.website-qr .qr-download { display: block; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 480px) { .website-qr { flex-direction: column; text-align: center; gap: 16px; } }

.pipeline-actions { margin: 12px 0 0; padding: 0; }
.pipeline-actions figcaption { margin: 0; }
@media (max-width: 680px) { .pipeline-actions { align-items: flex-start; flex-direction: column; } }

.site-header nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.publications-layout { max-width: var(--width); margin: auto; padding: 42px 24px 70px; }
.publication-module-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: .85rem; line-height: 1.6; }
.publication-module { padding: 40px 0; border-bottom: 1px solid var(--line); }
.publication-heading .eyebrow { margin-bottom: 12px; }
.publication-heading h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.publication-heading > a { color: var(--accent); font-size: .85rem; }
.publication-empty { color: var(--muted); margin: 26px 0 0; font-size: .95rem; }

.publication-entry { margin-top: 30px; max-width: 930px; }
.publication-entry h3 { margin: 0 0 14px; font: 400 clamp(1.4rem, 2.6vw, 1.8rem)/1.35 Georgia, serif; }
.publication-entry h3 a, .publication-paper-link { color: var(--accent); }
.publication-authors, .publication-venue { font-size: .92rem; line-height: 1.7; color: var(--muted); margin: 8px 0; }
.publication-description { line-height: 1.8; margin: 20px 0; color: var(--ink); }
.publication-paper-link { display: inline-block; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }

.team-layout { max-width: var(--width); margin: auto; padding: 56px 24px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.team-member { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.team-member img { display: block; width: 140px; height: 140px; object-fit: cover; border-radius: 5px; }
.team-member .eyebrow { margin-bottom: 10px; font-size: .65rem; }
.team-member h3 { margin: 0 0 14px; font-size: 1.7rem; line-height: 1.2; }
.team-affiliation { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.team-bio { font-size: .94rem; line-height: 1.75; }
.team-profile { color: var(--accent); font-size: .85rem; }
.team-attribution { max-width: var(--width); margin: 0 auto; padding: 12px 24px 48px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
@media (max-width: 980px) { .team-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .team-member { grid-template-columns: 1fr; } }

.team-section-title { max-width: var(--width); margin: 0 auto; padding: 42px 24px 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.team-section-title + .team-layout { padding-top: 30px; }

.team-headshot { position: relative; width: 140px; height: 140px; overflow: hidden; border-radius: 5px; }
.team-member .team-headshot img { position: absolute; width: 233px; max-width: none; height: auto; left: -46px; top: -65px; border-radius: 0; }
