@font-face { font-family: "Source Sans 3"; src: url(fonts/SourceSans3-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/SourceSans3-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/SourceSans3-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/SourceSans3-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/SourceSerif4-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/SourceSerif4-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #00274C; --maize: #FFCB05;
  --ink: #17253A; --muted: #4F5F75; --line: #E3E1D9; --bg: #FFFFFF; --panel: #F6F5F0; --link: #00274C;
  --media-bg: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E9EEF4; --muted: #AFBCCB; --line: #2A3A52; --bg: #0E1A2B; --panel: #14243A; --link: #E9EEF4;
          --media-bg: #FFFFFF; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 17px/1.6 "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--link); text-decoration-color: var(--maize); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.2rem; margin: 0; }
.rule { width: 44px; height: 3px; background: var(--maize); margin: 14px 0 18px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1040px; }
main { padding-bottom: 32px; }

.preview-banner { background: var(--maize); color: #00274C; text-align: center; font-weight: 600; font-size: .9rem; padding: 6px 16px; }

header.site { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line);
               box-shadow: 0 1px 0 rgba(0,0,0,.02); }
@supports (backdrop-filter: blur(6px)) {
  header.site { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
header.site .wrap { max-width: 1040px; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 20px; padding-top: 11px; padding-bottom: 9px; }
.brand { font: 700 1.1rem "Source Serif 4", Georgia, serif; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
header nav { display: flex; gap: 16px; font-size: .95rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
             -webkit-overflow-scrolling: touch; min-width: 0; }
header nav::-webkit-scrollbar { display: none; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover, header nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--maize); }
html { scroll-padding-top: 60px; }

.hero { padding-top: 48px; }
.role { font-weight: 600; margin: 0; }
.org { color: var(--muted); margin: 0 0 20px; }
.intro p { margin: 0 0 12px; }
.links { margin-top: 18px; font-weight: 600; }
h2.section { font-size: 1.45rem; margin: 48px 0 16px; padding-top: 8px; border-top: 1px solid var(--line); }

.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
        text-decoration: none; color: inherit; background: var(--bg); transition: border-color .15s; }
.card:hover { border-color: var(--maize); }
.card-media { background: var(--media-bg); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 12px 16px 16px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: .97rem; }
.card .more { font-weight: 600; font-size: .92rem; }

.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }

.pubs { padding-left: 22px; margin: 0 0 12px; }
.pubs li { margin-bottom: 12px; }
.pubs .ti { font-weight: 600; }
.pubs .au, .pubs .ve { color: var(--muted); }
.pubs strong { color: var(--ink); }
.doi { font-size: .9rem; word-break: break-all; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: var(--maize); color: #00274C;
       font: 600 .72rem/1.6 "Source Sans 3", system-ui, sans-serif; letter-spacing: .02em; vertical-align: middle; }

.area-head { padding-top: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.mission { font-size: 1.12rem; }
.mission p { margin: 0 0 12px; }
.toc { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .95rem; }

.hl { padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.hl h2 { font-size: 1.55rem; margin: 0 0 10px; }
.hl h2 a { color: inherit; text-decoration: none; }
.hl h2 a:hover { text-decoration: underline; text-decoration-color: var(--maize); }
.hl .lead { max-width: 720px; }
.media-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 18px 0; }
@media (min-width: 720px) { .media-grid { grid-template-columns: 1fr 1fr; } .media-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .media-grid figure.wide { grid-column: 1 / -1; } }
figure { margin: 0; }
figure video, figure img { display: block; width: 100%; height: auto; background: var(--media-bg); border-radius: 4px; border: 1px solid var(--line); }
figure.wide video, figure.wide img { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; }
figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.physics { background: var(--panel); border-left: 3px solid var(--maize); padding: 12px 16px; margin: 16px 0; max-width: 720px; font-size: .97rem; }
.physics h4 { margin: 0 0 6px; font-size: 1rem; }
.physics p { margin: 0 0 8px; }
.physics .eq { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; overflow-x: auto; white-space: nowrap; padding: 4px 0; }
.hl-meta { font-size: .92rem; color: var(--muted); }

video.loop { cursor: pointer; }
.code-line { font-size: .93rem; color: var(--muted); margin: 4px 0 0; }
.badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 3px; background: var(--navy); color: #fff;
         font: 600 .72rem/1.6 "Source Sans 3", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
@media (prefers-color-scheme: dark) { .badge { background: var(--maize); color: var(--navy); } }

footer.site { margin-top: 56px; background: var(--navy); color: #DCE3EC; border-top: 4px solid var(--maize); font-size: .92rem; }
footer.site .banner { max-width: 1040px; display: grid; grid-template-columns: 1fr; gap: 20px 32px; padding-top: 28px; padding-bottom: 20px; }
@media (min-width: 760px) { footer.site .banner { grid-template-columns: 1.1fr 1fr 1fr; } footer.site .b-id { grid-column: 1 / -1; } }
@media (min-width: 1000px) { footer.site .banner { grid-template-columns: 1fr 1.25fr 1.25fr 1.1fr; } footer.site .b-id { grid-column: auto; } }
footer.site p { margin: 0 0 4px; }
footer.site a { color: #fff; text-decoration-color: var(--maize); }
.b-name { font: 700 1.25rem "Source Serif 4", Georgia, serif; color: var(--maize); }
.b-role { color: #fff; }
.b-links { margin-top: 8px !important; }
.b-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--maize); margin-bottom: 6px !important; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 3px 0; line-height: 1.4; border-bottom: 1px solid rgba(255,255,255,.12); }
footer.site li:last-child { border-bottom: 0; }
footer.site .b-foot { max-width: 1040px; padding-top: 10px; padding-bottom: 22px; font-size: .8rem; color: #9FB0C4; border-top: 1px solid rgba(255,255,255,.12); }
.small { font-size: .85rem; }

.flow { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; grid-template-columns: 1fr; gap: 8px; counter-reset: none; }
@media (min-width: 560px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; align-content: start;
           padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--maize); border-radius: 4px; background: var(--panel); }
.flow li:last-child { border-left-color: var(--navy); background: var(--bg); }
@media (prefers-color-scheme: dark) { .flow li:last-child { border-left-color: var(--maize); } }
.st-n { grid-row: 1 / span 2; font: 700 1.05rem "Source Serif 4", Georgia, serif; color: var(--muted); }
.st-t { font-weight: 700; }
.st-d { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.wf-links { font-size: .93rem; }
