:root {
  --ink: #151618;
  --muted: #62666e;
  --subtle: #6b717b;
  --line: #e6e8ed;
  --soft: #f7f8fa;
  --paper: #ffffff;
  --accent: #1f6feb;
  --accent-soft: #eef4ff;
  --width: 1120px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, select { font: inherit; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
img, video { display: block; max-width: 100%; }
img { width: 100%; height: auto; }
svg { flex: 0 0 auto; }
sup, sub { line-height: 0; font-size: 0.7em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; border: 1px solid var(--accent); border-radius: 8px; padding: 10px 18px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); }
.nav-shell { width: min(var(--width), calc(100% - 64px)); min-height: 62px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -0.055em; }
.wordmark-dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--accent); }
.page-shell { width: min(var(--width), calc(100% - 64px)); margin: 0 auto; }
.hero { padding-top: 44px; text-align: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; line-height: 1.5; }
.hero > .eyebrow { display: inline-block; padding: 5px 12px; border: 1px solid #dce8ff; border-radius: 999px; background: var(--accent-soft); font-size: 11px; }
h1 { max-width: 940px; margin: 20px auto 0; font-size: clamp(1.8rem, 3.1vw, 2.65rem); line-height: 1.2; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.authors { max-width: 960px; margin: 24px auto 0; color: #50545b; font-size: 14px; font-weight: 600; line-height: 2; text-wrap: balance; }
.authors > span { display: inline-block; margin: 0 3px; white-space: nowrap; }
.authors sup { margin-left: 2px; color: var(--muted); font-weight: 500; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.hero-actions { margin-top: 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; min-width: 114px; padding: 9px 20px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 150ms ease, border-color 150ms ease; }
.button-primary { background: #2f3237; color: white; border-color: #2f3237; }
.button-primary:hover { background: #151618; border-color: #151618; }
.release-notes { margin-top: 19px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.release-notes strong { color: #454b55; font-weight: 700; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; background: var(--accent); border-radius: 50%; }
.section { margin-top: 80px; }
.hero + .section { margin-top: 44px; }
.overview-section { margin-top: 64px; }
.scroll-hint { display: none; }
.location-hint { margin-bottom: 12px; }
.section-heading { margin: 0 auto 28px; text-align: center; }
.section-heading h2, .citation-heading h2 { margin-top: 9px; font-size: clamp(1.7rem,3vw,2.1rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.25; text-wrap: balance; }
.section-heading > p:last-child:not(.eyebrow) { max-width: 720px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.75; text-wrap: balance; }
.figure-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.figure-link { display: block; border-radius: 8px; cursor: zoom-in; overflow: hidden; }
.figure-card figcaption { padding: 16px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.caption-label { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.teaser-card { width: min(980px,100%); margin: auto; padding: 20px; box-shadow: 0 8px 28px rgba(21,22,24,0.035); }
.teaser-card figcaption { padding: 18px 8px 2px; text-align: left; }
.metrics { max-width: 980px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; border-left: 1px solid var(--line); }
.metrics > div:first-child { border-left: 0; }
.metrics dt { color: var(--muted); font-size: 11px; }
.metrics dd { font-weight: 800; font-size: 30px; letter-spacing: -0.05em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metrics dd > span { font-size: 20px; margin-left: 3px; }
.location-grid, .chart-grid, .prediction-grid, .failure-grid { display: grid; gap: 20px; }
.location-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.media-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.media-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #17191d; }
.media-card figcaption { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 16px; color: #333841; font-weight: 600; font-size: 12px; }
.media-index { color: var(--subtle); font-size: 10px; font-weight: 500; letter-spacing: 0.05em; }
.behavior-browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.behavior-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.behavior-tabs button { padding: 10px 12px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 600; background: transparent; cursor: pointer; }
.behavior-tabs button:hover { color: var(--ink); background: #edeff3; }
.behavior-tabs button[aria-selected="true"] { color: var(--accent); border-color: #d6e4fc; background: white; box-shadow: 0 2px 6px rgba(16,36,65,0.03); }
.behavior-panel { padding: 24px; }
.behavior-panel + .behavior-panel { border-top: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.panel-heading h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.025em; }
.panel-heading > span { color: var(--subtle); font-size: 11px; white-space: nowrap; }
.behavior-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.behavior-example .figure-link { border: 1px solid var(--line); border-radius: 9px; background: white; }
.behavior-example img { aspect-ratio: 1 / 1; object-fit: contain; }
.behavior-example figcaption { margin-top: 8px; color: var(--subtle); font-size: 10px; text-align: center; }
.chart-grid, .prediction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.chart-grid { margin-bottom: 22px; }
.results-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 6px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; color: #363c46; font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
caption { padding: 0 0 16px; color: var(--ink); font-size: 13px; line-height: 1.6; text-align: left; font-weight: 700; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
thead th { background: var(--soft); color: #565e6b; font-size: 11px; font-weight: 700; white-space: normal; min-width: 72px; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: white; }
thead th:first-child { z-index: 2; background: var(--soft); }
#planning-results td:first-child:not([rowspan]) { position: static; }
#scenario-results td:first-child { max-width: 168px; white-space: normal; }
td strong { font-weight: 700; }
tbody tr:last-child > td { border-bottom: 0; }
.highlight-row { background: var(--accent-soft); }
.highlight-row td:first-child { background: var(--accent-soft); }
td[colspan]:first-child { background: var(--soft); }
td[colspan] { background: var(--soft); color: var(--ink); text-align: left; font-weight: 700; }
.table-note { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.table-note strong { color: #464d58; }
.inline-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
summary { cursor: pointer; font-weight: 700; color: #3b424e; }
.inline-details .details-body { padding-top: 14px; }
.inline-details p + p { margin-top: 7px; }
.subsection-heading { margin: 32px 0 18px; }
.subsection-heading h3, .figure-header h3 { font-size: 19px; line-height: 1.4; letter-spacing: -0.035em; }
.subsection-heading p, .figure-header p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.result-heading h4 { font-size: 14px; }
.result-heading > span { color: var(--subtle); font-size: 11px; }
.prediction-grid { gap: 26px; }
.prediction-grid th, .prediction-grid td { padding: 11px 9px; }
.detail-card { border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
.detail-card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 13px; }
.detail-card > summary::-webkit-details-marker { display: none; }
.detail-card summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.detail-sign { color: var(--subtle); font-size: 20px; font-weight: 400; transition: transform 160ms ease; }
.detail-card[open] .detail-sign { transform: rotate(45deg); }
.detail-card > .details-body { padding: 4px 22px 22px; }
.details-body > .table-scroll + .table-scroll { margin-top: 30px; }
.failure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.failure-grid .media-card video { aspect-ratio: 16 / 9; background: #fafbfc; }
.latent-card { margin-top: 28px; padding: 26px; }
.figure-header { margin-bottom: 22px; }
.latent-card .figure-link { max-width: 820px; margin: 0 auto; }
.latent-card figcaption { max-width: 920px; margin: auto; }
.usage-card { display: grid; grid-template-columns: minmax(0,0.65fr) minmax(0,1.35fr); gap: 44px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.partner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.partner .eyebrow { font-size: 10px; color: var(--subtle); }
.partner-name { color: var(--ink); font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.partner-name > span { font-size: 20px; color: var(--accent); }
.usage-copy h3 { font-size: 14px; }
.usage-copy p { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.85; }
.usage-copy h3:not(:first-child) { margin-top: 20px; }
.citation-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.copy-button { min-height: 40px; padding: 9px 15px; border: 1px solid #d7dde6; border-radius: 9px; background: white; color: #414956; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.copy-button:hover { color: var(--accent); border-color: var(--accent); }
.citation-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
pre { margin: 0; padding: 24px; overflow-x: auto; background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #465061; }
.copy-status { min-height: 22px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 40px; background: var(--soft); }
.footer-inner { width: min(820px,calc(100% - 48px)); margin: auto; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.9; }
.footer-inner p + p { margin-top: 8px; }
.footer-inner a { color: #525b69; }
@media (max-width: 1000px) {
  .hero { padding-top: 36px; }
  .location-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prediction-grid { grid-template-columns: 1fr; gap: 28px; }
  .authors { max-width: 790px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 110px; }
  .page-shell, .nav-shell { width: calc(100% - 36px); }
  .nav-shell { min-height: 82px; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 0; }
  .wordmark { font-size: 18px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; padding: 5px 0; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(1.5rem,5.8vw,1.75rem); line-height: 1.26; letter-spacing: -0.035em; margin-top: 14px; }
  .authors { font-size: 12px; line-height: 1.95; margin-top: 22px; }
  .authors > span { margin: 0 2px; }
  .affiliations { flex-direction: column; gap: 3px; font-size: 11px; margin-top: 13px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-width: 340px; margin: 22px auto 0; }
  .button { min-width: 0; padding: 10px 14px; font-size: 12px; }
  .release-notes { font-size: 10px; line-height: 1.8; max-width: 310px; margin: 16px auto 0; }
  .release-notes p + p { margin-top: 4px; }
  .section { margin-top: 54px; }
  .hero + .section { margin-top: 36px; }
  .overview-section { margin-top: 48px; }
  .scroll-hint { display: block; margin-bottom: 14px; color: var(--muted); font-size: 11px; text-align: center; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2, .citation-heading h2 { font-size: 26px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 13px; }
  .figure-card, .teaser-card { padding: 10px; border-radius: 12px; }
  .figure-card figcaption { padding: 13px 5px 3px; font-size: 12px; line-height: 1.8; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 24px; margin-top: 24px; }
  .metrics > div:nth-child(3) { border-left: 0; }
  .metrics dd { font-size: 27px; }
  .metrics dt { font-size: 10px; }
  .chart-grid, .failure-grid { grid-template-columns: 1fr; gap: 16px; }
  .location-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(100% - 24px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 10px; scrollbar-color: #c4ccd8 var(--soft); scrollbar-width: thin; }
  .location-grid > .media-card { scroll-snap-align: start; }
  .location-grid:focus-visible { outline-offset: 2px; }
  .media-card figcaption { min-height: 48px; }
  .behavior-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; gap: 5px; }
  .behavior-tabs button { font-size: 11px; padding: 9px 6px; }
  .behavior-panel { padding: 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .panel-heading h3 { font-size: 15px; }
  .behavior-grid { grid-template-columns: 1fr; gap: 20px; }
  .behavior-example { max-width: 360px; width: 100%; margin: auto; }
  .results-card { padding: 16px; border-radius: 12px; }
  .data-table { font-size: 12px; }
  th, td { padding: 10px; }
  thead th { font-size: 11px; }
  caption { font-size: 12px; }
  .detail-card > summary { padding: 16px; }
  .detail-card > .details-body { padding: 0 16px 16px; }
  .latent-card { padding: 16px; }
  .figure-header h3, .subsection-heading h3 { font-size: 18px; }
  .usage-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .partner { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .partner-name { font-size: 27px; }
  .citation-heading { align-items: center; }
  .copy-button { font-size: 11px; padding: 8px 10px; }
  pre { padding: 18px; }
  code { font-size: 11px; }
  .site-footer { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
