/* CPSLab site styles. Colours and type are set once here as variables. */
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --ink: #0E1A2B; --muted: #56627A; --line: #D6DCE5; --line-strong: #9AA6B8;
  --accent: #C8102E; --accent-ink: #FFFFFF; --award: #8A5A00; --award-bg: #FFF4D6; --area: #56627A;
  --display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; --body: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B121D; --surface: #121B29; --ink: #E7ECF3; --muted: #9BA7BB; --line: #243044; --line-strong: #4A5870; --accent: #FF5C70; --accent-ink: #1A0508; --award: #FFD479; --award-bg: #3A2C08; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 600 clamp(2.1rem, 4.4vw, 3.5rem)/1.04 var(--display); letter-spacing: -.012em; }
h2 { font: 600 1.6rem/1.15 var(--display); margin-bottom: 1rem; }
h3 { font: 600 1.125rem/1.3 var(--body); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.prose { max-width: 68ch; } .prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 60ch; margin-top: 1rem; }
.empty { color: var(--muted); }
.count, .venue, .crumb, .role, .result-count { font-size: .9rem; color: var(--muted); }

/* header and footer */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.2; }
.brand strong { font: 700 1.35rem var(--display); letter-spacing: .01em; }
.brand-sub { color: var(--muted); font-size: .9rem; }
.brand-mark { display: grid; gap: 3px; width: 26px; } .brand-mark i { display: block; height: 5px; background: var(--accent); }
.brand-mark i:nth-child(1) { width: 60%; } .brand-mark i:nth-child(2) { width: 100%; margin-left: 20%; } .brand-mark i:nth-child(3) { width: 45%; margin-left: 10%; background: var(--ink); }
.site-head nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.site-head nav a { display: block; padding: 18px 12px; text-decoration: none; font-weight: 500; font-size: .98rem; border-bottom: 3px solid transparent; }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; font-size: .92rem; color: var(--muted); }
.foot-row { display: flex; gap: 48px; flex-wrap: wrap; } .foot-row strong { color: var(--ink); }
.foot-links { margin-left: auto; display: flex; gap: 20px; align-items: flex-start; }

/* shared blocks */
.band { padding: 56px 0; } .band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.area-head, .paper-head { border-top: 5px solid var(--area); }
.crumb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.4rem 0 0; } .actions.small { margin-top: .6rem; }
.btn { display: inline-block; font: 500 .95rem var(--body); padding: 9px 16px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(.9); color: var(--accent-ink); }
.btn.danger { border-color: var(--accent); color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.more { font-weight: 500; }
.area-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.area-tag::before { content: ""; width: 10px; height: 10px; background: var(--area); }
.kind, .award { font-size: .8rem; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.award { border-color: transparent; background: var(--award-bg); color: var(--award); font-weight: 600; }
.award.big { font-size: .95rem; padding: 4px 10px; }

/* home */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-figure { margin: 0; }
.hero-schedule { width: 100%; height: auto; display: block; }
.hero-schedule .grid { stroke: var(--line); stroke-width: 1; }
.hero-schedule .axis { stroke: var(--ink); stroke-width: 1.5; }
.hero-schedule .release { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hero-schedule .lane { font: 500 12px var(--body); fill: var(--muted); }
.hero-schedule .now { stroke: var(--accent); stroke-width: 2; opacity: 0; }
.hero-schedule .job { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-schedule .job { animation: run .45s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-schedule .now { animation: sweep 1.5s linear .05s both; }
  @keyframes run { from { transform: scaleX(0); } }
  @keyframes sweep { 0% { transform: translateX(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(480px); opacity: 0; } }
}
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.areas a, .cards a { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--area); text-decoration: none; color: var(--ink); }
.areas a:hover, .cards a:hover { border-color: var(--ink); border-top-color: var(--area); color: var(--ink); }
.areas p, .cards p { color: var(--muted); font-size: .97rem; margin: .5rem 0 1rem; flex: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 40px; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .cards img { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; }
.recog li, .news li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.recog a { display: block; margin-top: 4px; } .recog .where { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.news time { display: block; font-size: .85rem; color: var(--muted); } .news.long li { padding: 20px 0; }
.mission { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.sponsors-band { padding-top: 0; }
.sponsors { display: flex; flex-wrap: wrap; gap: 12px; }
.sponsors a { display: flex; align-items: center; justify-content: center; min-width: 150px; height: 72px; padding: 10px 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font: 600 1.15rem var(--display); color: var(--muted); }
.sponsors img { max-height: 48px; width: auto; }

/* publication lists */
.pubs { display: grid; gap: 2px; }
.pub { padding: 14px 16px 12px 18px; border-left: 3px solid var(--area); background: var(--surface); }
.band.alt .pub { background: var(--bg); }
.pub-title { font-weight: 600; font-size: 1.06rem; line-height: 1.35; text-decoration: none; }
.pub-authors { margin: 3px 0 6px; font-size: .95rem; color: var(--muted); } .pub-authors .member, .authors .member { color: var(--ink); text-decoration: none; font-weight: 500; }
.pub-authors .member:hover, .authors .member:hover { color: var(--accent); }
.pub-meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-meta .venue { font: 600 .95rem var(--display); color: var(--ink); letter-spacing: .01em; }
.pub-area { margin-left: auto; font-size: .85rem; color: var(--muted); }
.year { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.year-label { font: 600 2.1rem/1 var(--display); color: var(--line-strong); position: sticky; top: 76px; align-self: start; margin: 10px 0 0; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .7fr); gap: 14px; margin-bottom: 32px; align-items: end; }
.filters label span, .form label > span { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 9px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
.result-count { grid-column: 1 / -1; margin: 0; min-height: 1.4em; }
.area-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 28px 0 20px 20px; border-left: 4px solid var(--area); margin-bottom: 20px; background: var(--surface); }
.area-row h2 { margin-bottom: 6px; } .area-row h2 a { text-decoration: none; } .latest { font-size: .95rem; }
.lede-prose { font-size: 1.12rem; color: var(--muted); margin-top: 1rem; }

/* paper page */
.paper-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 24ch; max-width: min(100%, 34ch); }
.authors { font-size: 1.12rem; margin: 1rem 0 .3rem; color: var(--muted); }
.venue-line { margin: 0; } .venue-line .kind { margin-left: 8px; } .venue-name { font-weight: 600; }
.awards { margin: 1rem 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.paper-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; }
.paper-main section { margin-bottom: 44px; }
.abstract { max-width: 70ch; font-size: 1.08rem; line-height: 1.65; }
.key-figure { margin: 0 0 40px; background: #FFFFFF; border: 1px solid var(--line); padding: 20px; }
.key-figure .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.key-figure img { display: block; margin: 0 auto; max-height: 460px; width: auto; }
.key-figure figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid #D6DCE5; font-size: .92rem; color: #56627A; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.tabs button { font: 500 .93rem var(--body); padding: 8px 14px; border: 1px solid var(--line); border-bottom: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 4px 4px 0 0; }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cite-panel pre { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 0; font: 400 .86rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; }
.facts { margin: 0 0 36px; font-size: .95rem; } .facts dt { font-size: .85rem; color: var(--muted); margin-top: 14px; } .facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.paper-side h2 { font-size: 1.25rem; } .related li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.4; } .related .venue { display: block; margin-top: 2px; }
dialog#zoom-dialog { border: 0; padding: 16px; max-width: 96vw; max-height: 96vh; background: #FFFFFF; } dialog#zoom-dialog::backdrop { background: rgba(8, 14, 24, .8); }
dialog#zoom-dialog img { display: block; max-width: 92vw; max-height: 82vh; } dialog#zoom-dialog form { text-align: right; margin-bottom: 10px; } dialog#zoom-dialog .btn { color: #0E1A2B; border-color: #0E1A2B; }

/* people and contact */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 44px; } .people.solo { grid-template-columns: 1fr; }
.people li { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; } .people li:target { border-color: var(--accent); }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font: 600 1.4rem var(--display); color: var(--muted); }
.role { margin: 2px 0 8px; } .plinks { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; font-size: .92rem; } .people .prose { font-size: .97rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

@media (max-width: 860px) {
  .hero-grid, .split, .mission, .paper-body, .area-row, .contact, .filters { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding: 40px 0; } .band { padding: 40px 0; }
  .year { grid-template-columns: minmax(0, 1fr); gap: 4px; } .year-label { position: static; font-size: 1.6rem; }
  .site-head { position: static; } .site-head nav a { padding: 10px 10px; } .brand-sub { display: none; }
  .area-row { padding: 20px 16px; } .pub-area { margin-left: 0; } .foot-links { margin-left: 0; }
}

/* ---- dark "blueprint" surfaces: hero, page headers, footer ---- */
.dark { --bg: #0A1524; --surface: #0A1524; --ink: #F2F6FB; --muted: #AEBBCD; --line: #22344F; --line-strong: #51668A; --accent: #FF4D63; --accent-ink: #14060A; color: var(--ink); }
.hero.dark, .page-head.dark {
  border-bottom: 0; position: relative; isolation: isolate;
  background-color: #0A1524;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(55% 90% at 88% 0%, rgba(200, 16, 46, .42), transparent 62%), radial-gradient(45% 80% at 0% 100%, rgba(15, 123, 108, .32), transparent 62%),
    linear-gradient(rgba(10, 21, 36, .82), rgba(10, 21, 36, .9)), var(--photo, none);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px, auto, auto, auto, cover;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0, 0 0, center;
}
.page-head.area-head.dark, .page-head.paper-head.dark {
  border-top: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(60% 120% at 92% 0%, color-mix(in srgb, var(--area) 75%, transparent), transparent 65%), radial-gradient(40% 80% at 0% 100%, color-mix(in srgb, var(--area) 35%, transparent), transparent 62%),
    linear-gradient(rgba(10, 21, 36, .8), rgba(10, 21, 36, .9)), var(--photo, none);
}
.page-head.dark::after, .hero.dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--area, #C8102E), color-mix(in srgb, var(--area, #C8102E) 30%, transparent)); }
.page-head.dark:not(.area-head):not(.paper-head), .hero.dark { --area: #C8102E; }
.hero.dark { padding: 76px 0 68px; }
.page-head.dark { padding: 52px 0 44px; }
.dark .btn:hover { background: var(--ink); color: #0A1524; }
.dark .btn.primary { background: #C8102E; border-color: #C8102E; color: #fff; } .dark .btn.primary:hover { background: #E0193A; color: #fff; }
.dark a:hover { color: #fff; }
.dark .area-tag { color: var(--ink); } .dark .area-tag::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.dark .authors .member, .dark .pub-authors .member { color: #fff; }
.hero-figure { padding: 22px 22px 14px; background: rgba(8, 16, 28, .72); border: 1px solid #2A3E5C; border-radius: 6px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.hero.dark .job { filter: saturate(1.25) brightness(1.4); }
.hero.dark .hero-schedule .grid { stroke: #1D2E47; }
.head-icon { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .35em; vertical-align: -.22em; background: var(--area); border-radius: 6px; color: #fff; } .head-icon .area-icon { width: .8em; height: .8em; }

/* numbers strip */
.numbers { background: #C8102E; color: #fff; }
.numbers ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers li { padding: 20px 20px 18px 0; font-size: .98rem; line-height: 1.3; display: flex; align-items: baseline; gap: 10px; }
.numbers li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .28); }
.numbers strong { font: 600 2.4rem/1 var(--display); }

/* section headings and cards with more presence */
.band h2, .paper-main h2 { position: relative; padding-top: 14px; } .band h2::before, .paper-main h2::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 4px; background: var(--accent); }
.paper-main h2::before { background: var(--area); }
.areas a { padding: 0 0 16px; border: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 26px -18px rgba(14, 26, 43, .45); transition: transform .15s, box-shadow .15s; }
.areas a:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 18px 34px -18px rgba(14, 26, 43, .55); }
.areas h3, .areas p, .areas .count { padding: 0 20px; } .areas h3 { margin-top: 16px; }
.areas .count { color: var(--area); font-weight: 600; }
.area-art { display: flex; align-items: flex-end; height: 108px; padding: 16px 20px; color: #fff; position: relative; overflow: hidden;
  background-color: var(--area);
  background-image: linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px), linear-gradient(120deg, transparent 35%, rgba(0, 0, 0, .32));
  background-size: 22px 22px, 22px 22px, auto; }
.area-art.has-photo { background-image: linear-gradient(120deg, color-mix(in srgb, var(--area) 88%, transparent), color-mix(in srgb, var(--area) 45%, transparent)), var(--photo); background-size: cover; background-position: center; }
.area-art .area-icon { width: 52px; height: 52px; }
.area-art::after { content: ""; position: absolute; right: -18px; bottom: -34px; width: 150px; height: 150px; border: 22px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.area-art.small { display: inline-grid; place-items: center; height: 52px; width: 52px; padding: 0; border-radius: 6px; margin-bottom: 12px; } .area-art.small .area-icon { width: 30px; height: 30px; } .area-art.small::after { display: none; }
.area-row { border-left-width: 6px; border-radius: 0 6px 6px 0; box-shadow: 0 10px 26px -20px rgba(14, 26, 43, .45); padding-right: 24px; }
.area-row h2 { padding-top: 0; } .area-row h2::before { display: none; }
.cards a { border-radius: 6px; box-shadow: 0 10px 26px -20px rgba(14, 26, 43, .45); }
.pub { transition: border-left-width .12s, padding-left .12s; } .pub:hover { border-left-width: 7px; padding-left: 14px; }
.sponsors a { border-radius: 6px; transition: border-color .15s, color .15s; } .sponsors a:hover { border-color: var(--accent); color: var(--ink); }
.key-figure { border-radius: 6px; box-shadow: 0 16px 40px -26px rgba(14, 26, 43, .5); border-top: 4px solid var(--area); }
.people li { border-radius: 6px; } span.avatar { background: linear-gradient(135deg, #14253D, #2A4468); color: #fff; border: 0; }
.site-foot.dark { background: #0A1524; border-top: 4px solid #C8102E; margin-top: 0; } .site-foot.dark strong { color: #fff; }
main > .band:last-child { padding-bottom: 72px; }
@media (max-width: 860px) { .numbers ul { grid-template-columns: 1fr 1fr; } .numbers li, .numbers li + li { padding: 14px 12px 12px 0; border-left: 0; } .numbers strong { font-size: 1.8rem; } .hero.dark { padding: 44px 0; } }
@media (prefers-reduced-motion: reduce) { .areas a, .pub { transition: none; } }

/* ---- home hero: full-width, animated signals or background video ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero.dark { padding: 0; min-height: min(78vh, 680px); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 21, 36, .94) 0%, rgba(10, 21, 36, .78) 42%, rgba(10, 21, 36, .15) 100%), linear-gradient(0deg, rgba(10, 21, 36, .6), transparent 40%); }
.hero.has-video::before { background: linear-gradient(90deg, rgba(10, 21, 36, .9) 0%, rgba(10, 21, 36, .62) 50%, rgba(10, 21, 36, .3) 100%); }
.hero-inner { padding-top: 88px; padding-bottom: 92px; width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 4.9vw, 4rem); line-height: 1.02; max-width: 22ch; letter-spacing: -.02em; }
.rotator { display: block; margin-top: .1em; min-height: 2.1em; max-width: 20ch; color: #FF5A6E; }
.rot-word { display: inline-block; }
.rot-word.out { opacity: 0; transform: translateY(-.25em); } .rot-word.in { opacity: 0; transform: translateY(.3em); }
@media (prefers-reduced-motion: no-preference) { .rot-word { display: inline-block; transition: opacity .35s, transform .35s; } }
.hero .lede { color: #C6D1E0; font-size: 1.25rem; max-width: 54ch; margin-top: 1.4rem; }
.hero .actions { margin-top: 2rem; } .hero .btn { padding: 12px 20px; font-size: 1rem; }
.hero-pause { position: absolute; right: 20px; bottom: 16px; font: 500 .82rem var(--body); color: #C6D1E0; background: rgba(10, 21, 36, .6); border: 1px solid #51668A; border-radius: 4px; padding: 5px 10px; cursor: pointer; }
@media (max-width: 860px) { .hero.dark { min-height: 0; } .hero-inner { padding-top: 52px; padding-bottom: 56px; } .rotator { min-height: 2.1em; } }

/* ---- funding: grant timelines ---- */
.gantt { position: relative; padding: 34px 0 10px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.gantt-axis { position: absolute; inset: 0; } .gantt-axis span { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 8px 0 0 6px; font: 600 .82rem var(--display); color: var(--muted); }
.gantt-row { position: relative; display: block; height: 62px; text-decoration: none; }
.gantt-bar { position: absolute; top: 8px; height: 30px; padding: 0 10px; display: flex; align-items: center; background: var(--area); color: #fff; font: 600 .85rem var(--body); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-bar.done { background: color-mix(in srgb, var(--area) 45%, var(--surface)); color: var(--ink); }
.gantt-row:hover .gantt-bar { filter: brightness(1.12); }
.gantt-dot { position: absolute; top: 41px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); z-index: 1; }
a.gantt-dot:hover, a.gantt-dot:focus-visible { transform: scale(1.5); border-color: var(--accent); }
.gantt-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--accent); z-index: 2; pointer-events: none; } .gantt-now b { position: absolute; bottom: 2px; left: 5px; font: 600 .72rem var(--body); color: var(--accent); white-space: nowrap; }
.help-note { font-size: .88rem; color: var(--muted); margin: 6px 0 36px; }
.grant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.grant-list a { display: flex; flex-direction: column; height: 100%; padding: 18px 20px 16px; background: var(--surface); border-left: 6px solid var(--area); border-radius: 0 6px 6px 0; text-decoration: none; color: var(--ink); box-shadow: 0 10px 26px -20px rgba(14, 26, 43, .45); }
.grant-list a:hover { color: var(--ink); box-shadow: 0 16px 30px -18px rgba(14, 26, 43, .6); } .grant-list p { color: var(--muted); font-size: .95rem; margin: .5rem 0 1rem; flex: 1; } .grant-list .crumb { flex: 0; margin: 0 0 8px; }
.grant-list strong { color: var(--ink); font: 600 1rem var(--display); letter-spacing: .01em; }
.st-active { border-color: #2B8A3E; color: #2B8A3E; } .dark .st-active { border-color: #5BD778; color: #5BD778; } .st-upcoming { border-color: var(--accent); color: var(--accent); }
.grant-title { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 30ch; }
.events { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line-strong); margin-left: 6px; }
.events li { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 7px 0 7px 20px; font-size: .96rem; line-height: 1.4; }
.events li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.events .ev-mile::before { background: var(--area); border-color: var(--area); border-radius: 2px; } .events .ev-fund::before { border-color: var(--line-strong); width: 8px; height: 8px; left: -5px; top: 15px; }
.events .ev-mile span { font-weight: 600; } .events .ev-fund { color: var(--muted); } .events .future { opacity: .6; }
.events time { font: 600 .88rem var(--display); color: var(--muted); padding-top: 2px; }
h3.sub { margin: 28px 0 10px; } .plain-pubs li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.prose.abstract p { font-size: 1.05rem; }

/* ---- affiliated institutions ---- */
.affil { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.affil a { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.affil a:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); } .affil p { color: var(--muted); font-size: .95rem; margin: .4rem 0 0; } .affil h3 { margin-top: 8px; }
.affil-logo { display: flex; align-items: center; height: 64px; margin-bottom: 14px; font: 700 1.5rem var(--display); color: var(--ink); letter-spacing: .01em; } .affil-logo img { max-height: 56px; max-width: 200px; width: auto; }
.affil-logo.big { justify-content: center; height: 150px; margin: 0; padding: 20px; background: #fff; color: #0E1A2B; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-size: 1.7rem; } .affil-logo.big img { max-height: 110px; max-width: 100%; }
.affil-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; } .affil-row:first-of-type { border-top: 0; padding-top: 0; }
.affil-row h2 { padding-top: 0; } .affil-row h2::before { display: none; } .affil-row h3 { margin: 18px 0 6px; }
@media (max-width: 860px) { .affil-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } .events li { grid-template-columns: 70px minmax(0, 1fr); } .site-head nav a { padding: 8px 8px; font-size: .92rem; } }

.band.alt + .sponsors-band { padding-top: 56px; }

/* ---- artifacts ---- */
.art-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.art-grid a { display: flex; flex-direction: column; height: 100%; padding: 18px 20px 16px; background: var(--surface); border-radius: 6px; border-top: 4px solid var(--area); text-decoration: none; color: var(--ink); box-shadow: 0 10px 26px -20px rgba(14, 26, 43, .45); transition: transform .15s; }
.art-grid a:hover { transform: translateY(-3px); color: var(--ink); } .art-grid p { color: var(--muted); font-size: .95rem; margin: .4rem 0 1rem; flex: 1; }
.art-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.art-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--area); color: #fff; flex: none; } .art-ic .area-icon { width: 24px; height: 24px; }
.art-grid .count { font-family: var(--mono); font-size: .8rem; }
.art-list li { border-top: 1px solid var(--line); } .art-list a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; text-decoration: none; color: var(--ink); line-height: 1.5; }
.art-list a:hover strong { color: var(--accent); } .art-list .kind { margin-left: 4px; }
@media (max-width: 1400px) { .brand-sub { display: none; } }
@media (max-width: 1100px) { .site-head nav a { padding: 18px 8px; font-size: .92rem; } }

/* ---- person profiles ---- */
.person-top { display: flex; gap: 32px; align-items: center; }
.avatar.big { width: 148px; height: 148px; font-size: 3rem; border: 3px solid rgba(255, 255, 255, .25); }
.person-head h1 { font-size: clamp(2rem, 4vw, 3rem); } .person-head .venue-line { margin-top: 6px; }
.people h3 a { text-decoration: none; } .people h3 a:hover { color: var(--accent); }
.flash ul { list-style: disc; padding-left: 1.2em; margin: 6px 0 12px; }
@media (max-width: 700px) { .person-top { flex-direction: column; align-items: flex-start; gap: 16px; } .avatar.big { width: 104px; height: 104px; font-size: 2.2rem; } }

/* ---- funding: other grants and gifts ---- */
.other-h { margin-top: 56px; }
.fund-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 26px -20px rgba(14, 26, 43, .45); font-size: .96rem; }
.fund-table th { text-align: left; font-size: .84rem; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line-strong); }
.fund-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.fund-table tr:last-child td { border-bottom: 0; }
.fund-table td.when { white-space: nowrap; font: 600 .95rem var(--display); border-left: 5px solid var(--area); }
.fund-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .fund-table thead { display: none; } .fund-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); border-left: 5px solid var(--area); } .fund-table td, .fund-table td.when { display: block; border: 0; padding: 2px 14px; text-align: left; } }
