@font-face {
  font-family: "WTM Sans";
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page-ink: #171717;
  --page-muted: #505050;
  --page-line: #e5e7eb;
  --reader: #c55a11;
  --writer: #7a49eb;
  --memory: #629ed3;
  --content-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; }
body { margin: 0; background: #fff; color: var(--page-ink); font-family: "WTM Sans", Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
.skip-link { position: absolute; left: 20px; top: 12px; padding: 10px 14px; background: #fff; color: #111; transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid #555; outline-offset: 5px; }
.paper-header { max-width: 1008px; margin: 0 auto; padding: 48px 24px 64px; text-align: center; }
.paper-header h1 { margin: 0; font-size: clamp(32px, 3.65vw, 48px); line-height: 1.15; font-weight: 650; letter-spacing: -.028em; text-wrap: balance; }
.no-wrap { white-space: nowrap; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 9px; margin-top: 28px; font-size: 20px; line-height: 1.5; }
.authors > span { white-space: nowrap; }
sup { margin-left: 2px; font-size: .65em; line-height: 0; vertical-align: super; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 22px; margin-top: 12px; color: var(--page-muted); font-size: 18px; line-height: 1.6; }
.affiliations sup { margin-right: 3px; }
.resources { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 28px; }
.resource-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 18px; border-radius: 24px; background: #363636; color: #fff; font-size: 16px; line-height: 1.4; text-decoration: none; }
.resource-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resource-link[href]:hover { background: #111; }
.resource-link[aria-disabled="true"] { background: #595959; cursor: default; }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 27px; row-gap: 2px; margin-top: 24px; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--page-muted); font-size: 16px; text-decoration: none; text-underline-offset: 5px; }
.section-nav a:hover { color: var(--page-ink); text-decoration: underline; }
.hero-section { width: 100%; max-width: 1408px; margin: 0 auto; }
#hero-frame { display: block; width: 100%; height: 850px; border: 0; }
.abstract-section { max-width: var(--content-width); margin: 0 auto; padding: 48px 24px; }
.abstract-section h2, .content-section h2 { margin: 0 0 24px; text-align: center; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.abstract-section p, .planning-copy p, .takeaways-list p { margin: 0; color: #383838; font-size: 16px; line-height: 1.5; }
.content-section { max-width: var(--content-width); margin: 0 auto; padding: 48px 24px; }
.routing-question, .routing-intuition { max-width: 1152px; margin: 0 auto 24px; text-align: center; font-size: 22px; line-height: 1.45; letter-spacing: -.012em; text-wrap: balance; }
.routing-question { color: var(--page-muted); font-weight: 400; }
.routing-intuition strong { font-weight: 600; }
.routing-figure { margin: 44px 0 0; }
.routing-circuit { display: grid; grid-template-columns: minmax(200px, .8fr) 176px minmax(140px, 1fr) 252px; grid-template-rows: 88px 160px 132px 160px 148px; column-gap: 20px; align-items: center; max-width: 1120px; margin: 0 auto; }
.routing-circuit h3 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.25; }
.routing-circuit p { margin: 7px 0 0; color: var(--page-muted); font-size: 18px; line-height: 1.4; }
.route-step-label { grid-area: 2 / 1; align-self: center; }
.route-step-label h3 { color: #ad4e0f; }
.route-step-write { grid-area: 4 / 1; }
.route-step-write h3 { color: var(--writer); }
.route-input { border: 1px solid #d9dee5; border-radius: 12px; background: #f8f9fb; text-align: center; font-size: 23px; line-height: 1.25; }
.route-input sub { font-size: .65em; }
.route-pose { grid-area: 1 / 2; position: relative; align-self: start; display: flex; justify-content: center; align-items: center; gap: 6px; height: 60px; }
.route-pose::after { content: ""; position: absolute; top: calc(100% + 1px); left: calc(50% - 1px); width: 2px; height: 17px; background: #8b919a; }
.route-pose::before { content: ""; position: absolute; top: calc(100% + 17px); left: calc(50% - 5px); border: 5px solid transparent; border-top: 7px solid #8b919a; }
.route-processor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; align-self: stretch; border: 1px solid; border-radius: 14px; font-size: 28px; font-weight: 600; }
.route-processor svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.route-reader { grid-area: 2 / 2; color: #ad4e0f; background: #fff8f1; border-color: #e9c2a5; }
.route-writer { grid-area: 4 / 2; color: var(--writer); background: #f8f5ff; border-color: #d3c2f4; }
.route-bank { padding: 12px 14px; border: 1px solid #cbdced; border-radius: 14px; background: #f5f9fd; text-align: center; }
.route-current { grid-area: 2 / 4; --slot-accent: var(--reader); }
.route-updated { grid-area: 4 / 4; --slot-accent: var(--writer); }
.route-bank h3 { font-size: 22px; }
.route-bank p { font-size: 16px; }
.route-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 12px 0 10px; }
.route-slots i { position: relative; height: 14px; border: 1px solid #cbd7e3; border-radius: 3px; background: #edf2f7; }
.route-slots i:nth-child(8), .route-slots i:nth-child(9), .route-slots i:nth-child(14) { border-color: var(--slot-accent); background: var(--slot-accent); }
.route-slots i:nth-child(8)::after, .route-slots i:nth-child(9)::after, .route-slots i:nth-child(14)::after { content: ""; position: absolute; left: 3px; bottom: 3px; width: calc((100% - 6px) * var(--slot-weight, 1)); height: 3px; border-radius: 1px; background: #fff; }
.route-slots i:nth-child(9) { --slot-weight: .35; }
.route-slots i:nth-child(14) { --slot-weight: .6; }
.route-link { position: relative; height: 2px; margin: 0 10px; color: #8b919a; background: currentColor; }
.route-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.route-link > span { position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); color: var(--page-muted); font-size: 18px; white-space: nowrap; }
.route-read-link { grid-area: 2 / 3; color: var(--reader); background: none; border-top: 2px dashed currentColor; }
.route-read-link::after { top: -6px; right: auto; left: -1px; border: 5px solid transparent; border-right: 7px solid currentColor; border-left: 0; }
.route-input-link { grid-area: 5 / 2; align-self: start; justify-self: center; width: 2px; height: 24px; margin: 6px 0; }
.route-input-link::after { top: -1px; right: -4px; border: 5px solid transparent; border-bottom: 7px solid currentColor; border-top: 0; }
.route-write-link { grid-area: 4 / 3; color: var(--writer); }
.route-shared { grid-area: 3 / 2 / 4 / 5; position: relative; align-self: stretch; display: flex; align-items: center; }
.route-definitions { position: absolute; }
.route-transfer { position: absolute; top: 0; left: 0; width: 176px; height: 100%; overflow: visible; }
.route-attention-path { fill: none; stroke: url(#route-attention-color); stroke-width: 7px; vector-effect: non-scaling-stroke; }
.route-attention-tip { fill: var(--writer); }
.route-shared-copy { margin: 0 0 0 216px; }
.route-shared-copy h3 { font-size: 25px; }
.route-observation { grid-area: 5 / 2; align-self: end; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 100px; padding: 12px 8px; }
.route-input-plus { color: #737d8c; font-size: 20px; line-height: 1; }
.routing-figure figcaption { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--page-muted); font-size: 18px; line-height: 1.5; }
.planning-section { border-top: 1px solid var(--page-line); }
.planning-section h2 { margin-bottom: 32px; }
.planning-layout { margin: 0 auto; }
.planning-copy { max-width: 1200px; margin: 0 auto 40px; }
.planning-copy p + p { margin-top: 20px; }
.planning-question { max-width: 1152px; margin: 0 auto 24px; text-align: center; color: var(--page-ink); font-size: 22px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.planning-example { margin: 0 auto 52px; }
.planning-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.planning-view { min-width: 0; text-align: center; }
.planning-view img { display: block; width: 100%; height: auto; border: 1px solid #dedede; border-radius: 4px; }
.planning-view span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.4; }
.path-view img { border-color: #becfc5; }
.path-view span { color: #087f5b; font-weight: 600; }
.planning-example figcaption { max-width: 800px; margin: 18px auto 0; text-align: center; color: var(--page-muted); font-size: 16px; line-height: 1.5; }
.planning-result strong { color: #1b4e78; font-weight: 650; }
.results-table-wrap { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bbc3ce #f5f6f8; }
.results-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.results-table caption { margin-bottom: 18px; text-align: left; font-size: 22px; font-weight: 600; line-height: 1.35; }
.results-table th, .results-table td { padding: 11px 12px; text-align: right; white-space: nowrap; }
.results-table th:first-child { padding-left: 15px; text-align: left; }
.results-table thead { border-top: 2px solid #343434; border-bottom: 1px solid #c8c8c8; }
.results-table thead th { font-weight: 600; }
.results-table tbody th { font-weight: 400; }
.results-table .table-group th { padding-top: 16px; padding-bottom: 5px; color: var(--page-muted); font-size: 16px; font-weight: 400; }
.results-table .ivp-column { background: #f5f7fa; }
.results-table .ours-row { background: #edf5fc; border-bottom: 2px solid #343434; color: #1b4e78; font-weight: 650; }
.results-table .ours-row th { font-weight: 650; }
.results-table .ours-row .ivp-column { background: #dfedf9; }
.table-caption { max-width: 800px; margin: 16px 0 0; color: var(--page-muted); font-size: 16px; line-height: 1.5; }
.takeaways-section { padding-top: 68px; padding-bottom: 116px; }
.takeaways-section h2 { margin-bottom: 40px; }
.takeaways-list { margin: 0 auto; }
.takeaways-list article { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding: 25px 0; border-top: 1px solid var(--page-line); }
.takeaways-list h3 { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
@media (max-width: 1000px) {
  .takeaways-list article { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .paper-header { padding: 40px 20px 48px; }
  .paper-header h1 { font-size: clamp(28px, 4.5vw, 34px); line-height: 1.22; }
  .authors { margin-top: 24px; column-gap: 15px; row-gap: 6px; font-size: 19px; }
  .affiliations { margin-top: 14px; font-size: 16px; }
  .affiliations > span { flex-basis: 100%; }
  .resources { gap: 8px; margin-top: 24px; }
  .resource-link { padding: 9px 16px; font-size: 16px; }
  .section-nav { column-gap: 20px; margin-top: 18px; }
  .section-nav a { font-size: 16px; }
  .abstract-section { padding: 48px 24px 45px; }
  .abstract-section h2, .content-section h2 { margin-bottom: 26px; font-size: 30px; }
  .abstract-section p, .planning-copy p, .takeaways-list p { font-size: 16px; line-height: 1.5; }
  .content-section { padding: 48px 24px; }
  .routing-question, .routing-intuition { font-size: 20px; line-height: 1.45; }
  .routing-figure { margin-top: 36px; }
  .routing-figure figcaption { text-align: left; font-size: 17px; }
  .planning-section h2 { margin-bottom: 30px; }
  .planning-question { font-size: 20px; }
  .planning-example { margin-bottom: 36px; }
  .planning-example-grid { gap: 10px; }
  .planning-view span { margin-top: 8px; font-size: 15px; }
  .planning-example figcaption { text-align: left; font-size: 16px; }
  .takeaways-list article { grid-template-columns: 1fr; gap: 12px; }
  .takeaways-list h3 { font-size: 24px; }
  .takeaways-section { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .planning-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .path-view { grid-column: 1 / -1; width: 100%; max-width: 420px; margin: 0 auto; }
  .planning-view span { font-size: 16px; }
  .results-table { table-layout: fixed; font-size: 16px; }
  .results-table thead th:first-child, .results-table tr[data-method] th { width: 180px; }
  .results-table #metric-ivp { width: 70px; }
  .results-table #metric-latency { width: 116px; }
  .results-table th, .results-table td { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 1100px) {
  .routing-circuit { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-rows: 104px 176px 144px 104px 176px 148px; column-gap: 0; max-width: 560px; }
  .route-step-label { grid-area: 1 / 3; }
  .route-step-label h3 { font-size: 22px; }
  .route-step-label p { font-size: 17px; }
  .route-step-write { grid-area: 4 / 3; }
  .route-pose { grid-area: 1 / 1; align-self: end; margin-bottom: 32px; }
  .route-reader { grid-area: 2 / 1; }
  .route-read-link { grid-area: 2 / 2; margin: 0 7px; }
  .route-read-link > span { font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; }
  .route-current { grid-area: 2 / 3; }
  .route-shared { grid-area: 3 / 1 / 5 / 4; }
  .route-transfer { width: calc((100% - 52px) / 2); }
  .route-shared-copy { align-self: start; width: calc((100% - 52px) / 2 + 44px); margin: 18px 0 0 calc((100% + 52px) / 2 - 44px); }
  .route-shared-copy h3 { font-size: 23px; }
  .route-shared-copy p { font-size: 18px; }
  .route-observation { grid-area: 6 / 1; font-size: 21px; }
  .route-input-link { grid-area: 6 / 1; }
  .route-writer { grid-area: 5 / 1; }
  .route-write-link { grid-area: 5 / 2; margin: 0 7px; }
  .route-write-link > span { font-size: 14px; }
  .route-updated { grid-area: 5 / 3; }
}
@media (max-width: 480px) {
  .routing-circuit { grid-template-rows: 128px 184px 160px 140px 184px 170px; }
  .route-bank { padding: 12px 9px; }
  .route-bank h3 { font-size: 20px; }
  .route-bank p { font-size: 15px; }
  .route-slots { gap: 4px; }
  .route-slots i { height: 12px; }
  .route-processor { font-size: 25px; }
  .route-observation { font-size: 19px; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .animate-route.route-running .route-attention-path { animation: route-trace 1.2s ease-out both; }
  .animate-route.route-running .route-attention-tip { animation: route-tip .2s 1s both; }
}
@keyframes route-trace { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes route-tip { from { opacity: 0; } to { opacity: 1; } }
