@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fcfdff;
  --panel: #fff;
  --wash: #f0f6ff;
  --stroke: #d5e1f2;
  --text: #14254b;
  --muted: #465b7b;
  --accent: #2458d3;
  --cyan: #007680;
  --violet: #6943b5;
  --pink: #a33f76;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: Geist, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
[aria-disabled="true"] { cursor: default; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.036em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 660; }
.shell { width: min(1150px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 9; padding: 8px 14px; background: var(--text); color: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 5; background: #f7faffed; border-bottom: 1px solid var(--stroke); backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 740; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 31px; height: 31px; background: linear-gradient(140deg, #096aaf, #3256da); border-radius: 9px; }
.brand-mark i { width: 2px; height: 10px; border-radius: 3px; background: white; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 13px; }
.brand-mark i:nth-child(4) { height: 6px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.nav-links a, .nav-paper { font-size: .87rem; color: var(--muted); }
.nav-paper { border: 1px solid #c5d5ef; border-radius: 8px; padding: 6px 11px; white-space: nowrap; background: var(--panel); }
.nav-paper span { color: var(--accent); }

.hero { isolation: isolate; position: relative; border-bottom: 1px solid var(--stroke); background: radial-gradient(ellipse at 90% 13%, #bef5ff 0, transparent 46%), radial-gradient(ellipse at 60% 105%, #f0e1ff 0, transparent 59%), linear-gradient(110deg, #fff, #eef5ff); }
.hero::before { position: absolute; content: ""; inset: 0; z-index: -1; background: radial-gradient(circle, #3e72bd35 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 32%, black); }
.hero::after { position: absolute; content: ""; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 82% 58%, #ffdcf891, transparent 62%); }
.motion-ready .hero::after { animation: aurora 8s ease-in-out infinite alternate; }
@keyframes aurora { from { opacity: .45; } to { opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(25px, 5vw, 60px); align-items: center; padding-block: clamp(55px, 8vw, 105px); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font: 650 .72rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #cbdcf6; border-radius: 99px; background: #ffffffc7; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #02949c; }
.hero h1 { font-size: clamp(2.5rem, 4.35vw, 4.4rem); line-height: 1.04; letter-spacing: -.06em; font-weight: 690; }
.hero h1 span { color: #1c4bc6; }
@supports (background-clip: text) {
  .hero h1 span { color: transparent; background: linear-gradient(110deg, #1646b5, #6245bb 67%, #87398c); background-clip: text; }
}
.subtitle { margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); font-weight: 540; }
.authors { margin-top: 24px; font-size: .93rem; font-weight: 630; }
.authors span { color: var(--accent); }
.affiliation { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; font-size: .86rem; font-weight: 650; line-height: 1.35; }
.primary { background: var(--accent); color: white; box-shadow: 0 5px 14px #2458d342; }
.primary:hover { background: #153fae; }
.secondary { background: var(--panel); border-color: #c5d5ef; color: var(--text); }
.secondary:hover { background: var(--wash); }
.hero-figure { min-width: 0; padding: 18px; border: 1px solid #bbd2f3; border-radius: 18px; background: var(--panel); box-shadow: 0 16px 45px #244d8520; }
.signal-header, .panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: start; }
.signal-header .dot { display: inline-block; margin-right: 4px; vertical-align: .08em; }
.hero-signal { display: block; width: 100%; height: auto; }
.signal-axes { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-weight: 600; }
.plain-control { border: 0; padding: 0; color: var(--accent); background: transparent; font-size: .77rem; font-weight: 650; }
.plain-control:hover { text-decoration: underline; }
.signal-playhead { visibility: hidden; }
.motion-ready .signal-playhead { visibility: visible; animation: playhead 5.6s linear infinite; }
.motion-ready .signal-ripple { transform-box: fill-box; transform-origin: center; animation: ripple 5.6s linear infinite; }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(440px); } }
@keyframes ripple { 0%, 43%, 67%, 100% { transform: scale(1); opacity: .8; } 58% { transform: scale(2.1); opacity: .08; } }
figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: .77rem; }

.section { padding-block: 60px; }
.section + .section { border-top: 1px solid var(--stroke); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; margin-bottom: 24px; }
.intro-grid > p, .section-heading > p:last-child:not(.eyebrow) { max-width: 70ch; color: var(--muted); }
.section-heading { margin-bottom: 23px; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 10px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--stroke); border-radius: 13px; color: var(--text); background: linear-gradient(145deg, color-mix(in srgb, var(--pillar) 11%, white), white 75%); transition: border-color .2s, transform .2s, box-shadow .2s; }
.pillar:hover { border-color: var(--pillar); text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 18px #244d851a; }
.cyan { --pillar: var(--cyan); }
.lavender { --pillar: var(--violet); }
.pink { --pillar: var(--pink); }
.pillar-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid color-mix(in srgb, var(--pillar) 32%, white); border-radius: 9px; color: var(--pillar); font-size: 1.25rem; }
.pillar-title { display: flex; justify-content: space-between; gap: 8px; font-size: 1.16rem; font-weight: 690; }
.pillar-title span { color: var(--pillar); }
.pillar > span:last-child, .challenges-grid p { color: var(--muted); font-size: .88rem; }
.abstract { margin-top: 16px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--wash); }
.abstract summary { cursor: pointer; padding: 12px 17px; font-size: .9rem; font-weight: 650; }
.abstract p { max-width: 90ch; padding: 0 17px 16px; color: var(--muted); }

.taxonomy-panel, .chart-panel, .citation-panel, .library-panel { border: 1px solid var(--stroke); border-radius: 14px; background: var(--panel); }
.taxonomy-panel, .chart-panel, .library-panel { padding: 18px; }
.taxonomy-panel img { width: 100%; max-height: 510px; object-fit: contain; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 6px; padding-bottom: 10px; border-bottom: 1px solid var(--stroke); margin-bottom: 15px; }
.tabs button, .segmented button { border: 0; padding: 6px 10px; border-radius: 6px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 650; }
.tabs button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--accent); color: white; }
.panel-head { margin-bottom: 14px; }
.panel-head p { color: var(--muted); font-size: .87rem; margin-top: 4px; }
.flow-preview { --lane: var(--cyan); display: grid; gap: 8px; background: var(--wash); padding: 12px; border-radius: 10px; }
.lane { display: grid; gap: 5px; grid-template-columns: minmax(84px, 1fr) minmax(0, 1fr) clamp(10px, 3vw, 30px) minmax(0, 1.3fr) clamp(10px, 3vw, 30px) minmax(0, 1fr); align-items: center; font-size: .84rem; }
.lane:nth-child(2) { --lane: var(--violet); }
.lane:nth-child(3) { --lane: var(--pink); }
.lane:nth-child(4) { --lane: var(--accent); }
.lane strong { color: var(--lane); }
.lane span { align-self: stretch; display: grid; place-items: center; text-align: center; padding: 8px 4px; border: 1px solid var(--stroke); border-radius: 7px; background: white; overflow-wrap: anywhere; }
.lane i { position: relative; height: 1px; background: var(--lane); }
.lane i::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-right: 1px solid var(--lane); border-top: 1px solid var(--lane); transform: rotate(45deg); }
.lane i::before { content: ''; position: absolute; width: 5px; height: 5px; top: -2px; border-radius: 50%; background: var(--lane); animation: flow 3.4s ease-in-out infinite; }
.lane:nth-child(2) i::before { animation-delay: -.6s; }
.lane:nth-child(3) i::before { animation-delay: -1.25s; }
.lane:nth-child(4) i::before { animation-delay: -1.9s; }
@keyframes flow { 0%, 15% { left: 0; opacity: 0; } 25% { opacity: 1; } 68% { left: calc(100% - 5px); opacity: 1; } 80%, 100% { left: calc(100% - 5px); opacity: 0; } }
.motion-paused .hero::after, .motion-paused .signal-playhead, .motion-paused .signal-ripple, .motion-paused .lane i::before { animation-play-state: paused; }
.chart-panel img { width: min(100%, 850px); margin-inline: auto; }
.chart-panel figcaption { border-top: 1px solid var(--stroke); padding-top: 10px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--wash); border-radius: 8px; white-space: nowrap; }
.chart-plot { display: grid; grid-template-columns: repeat(var(--year-count), minmax(0, 1fr)); gap: 4px; height: 232px; padding-bottom: 22px; background: repeating-linear-gradient(to top, transparent, transparent 49px, var(--stroke) 49px, var(--stroke) 50px) 0 -24px; }
.chart-bar { position: relative; display: flex; padding: 0 12%; flex-direction: column; justify-content: end; align-items: stretch; min-width: 0; border: 0; border-bottom: 1px solid #8ba7ce; border-radius: 6px 6px 0 0; background: transparent; }
.chart-bar[aria-pressed="true"], .chart-bar:hover { background: #dfeeff80; }
.chart-bar small { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font: .68rem var(--mono); color: var(--muted); }
.stack { display: flex; flex-direction: column-reverse; overflow: hidden; border-radius: 4px 4px 0 0; transform-origin: bottom; }
:root:not(.motion-paused) .stack { animation: stack-rise .4s ease-out both; }
@keyframes stack-rise { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
.stack i { background: var(--segment); }
.chart-legend { display: flex; gap: 1px 10px; flex-wrap: wrap; }
.chart-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; background: var(--segment); }
.challenges-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.challenges-grid article { padding: 19px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--wash); }
.challenges-grid h3 { margin-bottom: 7px; font-size: 1rem; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr .65fr; gap: 10px; }
.filters label { font-size: .8rem; color: var(--muted); font-weight: 650; min-width: 0; }
.filters :is(input, select) { display: block; width: 100%; padding: 8px; border: 1px solid #b5c8e4; border-radius: 7px; background: white; color: var(--text); }
#paper-count, .paper-results p, .reference-fallback { font-size: .82rem; color: var(--muted); }
#paper-count, .reference-fallback { margin-top: 10px; }
.paper-results { list-style: none; margin: 0 0 10px; padding: 0; }
.paper-results li { padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.citation-bar { display: flex; justify-content: space-between; padding: 11px 17px; border-bottom: 1px solid var(--stroke); font: .8rem var(--mono); }
.citation-panel pre { margin: 0; padding: 16px 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-panel code { color: var(--muted); font: .8rem/1.55 var(--mono); }

.index-page h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.year-links { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 20px; font-size: .9rem; }
.reference-group { margin-top: 32px; }
.reference-group h2 { font-size: 1.65rem; }
.reference-list { margin: 10px 0 0; padding-left: 23px; }
.reference-list li { padding: 8px 0 8px 6px; border-bottom: 1px solid var(--stroke); }
.reference-list p { color: var(--muted); font-size: .83rem; }
.reference-list a { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--stroke); background: var(--wash); }
.footer-inner { display: flex; gap: 14px; justify-content: space-between; padding-block: 20px; color: var(--muted); font-size: .8rem; }
dialog { width: min(1120px, 94vw); max-height: 92vh; padding: 15px; color: var(--text); background: white; border: 1px solid var(--stroke); border-radius: 14px; }
dialog::backdrop { background: #14254bb5; }
dialog img { width: 100%; max-height: 74vh; object-fit: contain; }
dialog h2 { font-size: 1.2rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 54px; flex-wrap: wrap; gap: 4px 10px; padding-block: 8px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; }
  .nav-links a, .nav-paper { font-size: .77rem; }
  .nav-paper { padding: 4px 8px; }
  .hero-grid, .intro-grid, .pillars, .challenges-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 36px; }
  .hero h1 { font-size: clamp(2.2rem, 8.2vw, 3.5rem); }
  .wide-only { display: none; }
  .intro-grid { gap: 12px; }
  .section { padding-block: 40px; }
  .taxonomy-panel, .chart-panel { padding: 12px; }
  .lane { font-size: .73rem; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1.3fr) 12px minmax(0, 1fr); }
  .lane strong { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .chart-bar:nth-child(even):not(:last-child):not([aria-pressed="true"]) small { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .signal-playhead { visibility: hidden; }
}
@media (forced-colors: active) {
  .hero h1 span { color: CanvasText; }
}
