/* Presentation for the real-data example; the original prototype keeps its theme. */
@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;
  --canvas: #fff;
  --surface: #f7f7f7;
  --ink: #111;
  --muted: #606060;
  --line: #d5d5d5;
  --writer: #7a49eb;
  --memory: #629ed3;
  --reader: #c55a11;
  --path: #087f5b;
  --query: var(--reader);
}
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; }
body { font-family: "WTM Sans", Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline-color: #555; }
.page { max-width: 1408px; padding: 32px 24px 24px; }
.page-header { display: block; margin: 0 0 38px; text-align: center; }
.hero-embedded .page-header { display: none; }
.hero-embedded .page { padding-top: 0; }
.hero-embedded { overflow-y: hidden; }
h1 { margin: 0; font-size: clamp(28px, 2.6vw, 44px); font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: 16px; }
.hero { border: 0; border-radius: 0; background: var(--canvas); }
.stage-viewport { scrollbar-color: #aaa #f5f5f5; }
.hero-stage {
  grid-template-columns: minmax(220px, 22fr) minmax(112px, 10fr) minmax(148px, 14fr) minmax(112px, 10fr) minmax(0, 44fr);
  grid-template-rows: minmax(156px, auto) minmax(280px, auto);
  column-gap: 18px;
  row-gap: 22px;
  min-width: 0;
  padding: 20px 20px 26px;
}
.write-flight-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.write-flight-layer[hidden] { display: none; }
.write-flight { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.write-image-copy { display: block; border: 2px solid var(--writer); border-radius: 8px; object-fit: contain; background: #fff; box-shadow: 0 4px 14px #17212b26; }
.write-pose-copy { opacity: 1; }
.observation.input-selected { outline: 2px solid var(--writer); outline-offset: 3px; }
.camera.current.input-selected .glyph { box-shadow: 0 0 0 3px #087f5b38; }
.hero-stage > .writer { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .write-flight-layer { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.scene-module { grid-area: 1 / 1 / 2 / 3; width: 100%; max-width: 400px; }
.input-module { width: 100%; max-width: 240px; }
.scene-module h2 { margin-bottom: 12px; }
.map { overflow: hidden; border-color: var(--line); border-radius: 4px; background: var(--surface); }
.map > img { border-radius: 3px; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map.has-floorplan > img { object-fit: fill; }
.route-halo, .route-full, .route-written { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-halo { stroke: #fff; stroke-width: 8; }
.route-full { stroke: #52655d; stroke-width: 3; stroke-dasharray: 5 7; opacity: .95; }
.route-written { stroke: var(--path); stroke-width: 4.5; }
.route-point { fill: #fff; stroke: #52655d; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.route-point.written { fill: var(--path); stroke: #fff; stroke-width: 3; opacity: 1; }
.camera { width: 40px; height: 44px; color: #666; }
.camera .glyph { left: 12px; top: 12px; width: 16px; height: 20px; border-width: 2.5px; background: #fff; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 1px 1px #17212b70); }
.camera .glyph::before { top: -13px; left: 0; border-right-width: 5px; border-left-width: 5px; border-bottom-width: 8px; }
.camera .id { top: 39px; padding: 2px 6px; border: 1px solid #cbd5e1; border-radius: 4px; color: var(--ink); background: #fff; box-shadow: 0 1px 3px #17212b26; font-size: 15px; text-shadow: none; }
.camera.current { color: var(--path); opacity: 1; filter: none; }
.camera.query { color: var(--query); }
.camera.query .glyph { width: 14px; height: 18px; left: 13px; top: 13px; }
.map-legend { justify-content: start; flex-wrap: wrap; gap: 5px 20px; font-size: 14px; }
.map-legend i { width: 8px; height: 8px; }
.observed-key { background: var(--path); }
.query-key { border-color: var(--query); }
.module-heading { margin-bottom: 12px; }
.module-heading > span { font-size: 15px; }
.observation { aspect-ratio: 1; border-color: var(--line); border-radius: 8px; overflow: hidden; }
.observation > img { border-radius: 7px; }
.keyframes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.keyframe { min-width: 0; padding: 3px; border: 1.5px solid transparent; border-radius: 7px; background: transparent; color: #626b67; cursor: pointer; }
.keyframe img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 4px; object-fit: contain; opacity: .5; }
.keyframe span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.keyframe.seen img { opacity: 1; }
.keyframe.current { border-color: var(--path); background: #f0f7f3; color: var(--path); }
.keyframe:hover { background: #edf3ef; }
.input-empty { font-size: 15px; }
.empty-camera, .empty-camera::after { border-color: #777; }
.processor { flex-direction: column; gap: 14px; height: 160px; padding: 18px 10px; border-width: 1.5px; border-top-width: 3px; border-radius: 14px; color: #17212b; background: #fff; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; }
.processor-icon { width: 40px; height: 40px; fill: none; stroke: var(--module-color); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.processor::before, .processor::after, .memory-module::before, .memory-module::after { content: ''; position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border: 1.5px solid var(--module-color); border-radius: 50%; background: #fff; }
.processor::before, .memory-module::before { left: -5px; }
.processor::after, .memory-module::after { right: -5px; }
.writer { --module-color: var(--writer); border-color: #d1bef2; background: #faf7ff; }
.reader { --module-color: var(--reader); border-color: #dfba9f; background: #fff8f2; }
.writer.active { color: #17212b; border-color: var(--writer); background: #f0e8ff; box-shadow: 0 0 0 2px #7a49eb14, 0 4px 22px #7a49eb32; }
.reader.active { color: #17212b; border-color: #e46a12; background: #ffeddf; box-shadow: 0 0 0 2px #ff933d18, 0 4px 22px #ff933d38; }
.memory-module { --module-color: var(--memory); padding: 18px 12px; border-width: 1.5px; border-top-width: 3px; border-color: #b2cce5; border-radius: 16px; background: #f0f6fc; }
.memory-module.active { border-color: #3b91d9; background: #eaf4ff; box-shadow: 0 0 0 1px #45a6ff20, 0 0 16px #45a6ff30; }
.memory-module h2 { margin: 0 auto 14px; color: #17212b; font-size: 20px; line-height: 1.3; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 10px; border: 1px solid #d9e6f3; border-radius: 8px; background: #fff; }
.slot { position: relative; height: 14px; border-radius: 3px; background: #e4edf6; opacity: 1; }
.slot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--memory); opacity: var(--slot-strength, .06); }
.slot.updating { background: #e4edf6; box-shadow: none; }
.slot.updating::before { background: #2e94e5; opacity: 1; box-shadow: 0 0 8px #45a6ff60; }
.query-module { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 124px; padding: 16px 8px; border-color: #e1c9b8; border-radius: 12px; background: #fffbf7; }
.query-module h2 { color: #17212b; font-size: 20px; }
.query-list { flex-wrap: wrap; gap: 6px; margin-top: 0; color: #7c4b2b; font-size: 16px; }
.query-list span { padding: 3px 5px; border-radius: 4px; background: #f7ece2; white-space: nowrap; }
.query-module.active { border-color: #e46a12; background: #fff0e4; box-shadow: 0 0 10px #ff933d24; }
.output-region { position: relative; z-index: 1; grid-area: 1 / 5 / 3 / 6; align-self: end; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-lead { margin: 0 20px 28px; color: var(--ink); font-size: 20px; line-height: 1.5; text-align: center; text-wrap: balance; }
.hero-lead > span { display: block; margin-top: 4px; }
.hero-lead strong { font-weight: 600; }
.lead-writer { color: var(--writer); }
.lead-reader { color: #ad4e0f; }
.output-module { width: 100%; padding: 16px 12px; border: 1px solid #e5e5e5; border-radius: 10px; background: #f5f5f5; }
.matrix-head, .result-row { grid-template-columns: 44px repeat(var(--output-columns, 3), minmax(0, 1fr)) 112px; gap: 10px; }
.matrix-head { align-items: end; min-height: 24px; margin-bottom: 14px; font-size: 16px; }
.matrix-head > div { white-space: nowrap; }
.matrix-head .column-label-long, .matrix-head .column-label-short { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.matrix-head .column-label-long { display: inline; }
.matrix-head .column-label-short { display: none; }
.matrix-head .wtm-heading { color: var(--ink); }
.result-rows { gap: 16px; }
.query-label { align-self: center; padding: 0; color: var(--muted); font-size: 15px; }
.baseline-note { grid-column: -2 / -1; grid-row: 1; align-self: center; padding-left: 10px; border-left: 2px solid #d8c9b7; color: #74685b; font-size: 14px; line-height: 1.4; }
.baseline-note strong { display: block; margin-bottom: 5px; color: #786048; font-size: 15px; font-weight: 600; }
.baseline-note span { display: block; }
.baseline-note.pending { visibility: hidden; }
.wtm-insight { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--reader); border-radius: 0 6px 6px 0; background: #fff; }
.wtm-insight h3 { margin: 0 0 8px; color: #ad4e0f; font-size: 18px; font-weight: 600; line-height: 1.3; }
.wtm-insight p { margin: 0; color: #383838; font-size: 16px; line-height: 1.5; }
.wtm-insight strong { font-weight: 600; }
.view-image { aspect-ratio: 1; height: auto; border-color: var(--line); border-radius: 3px; }
.view-image.pred { border-color: #aaa; }
.view-blank { padding: 6px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.view-blank::before { border-color: #999; }
.connection path { stroke-width: 1.6; opacity: .6; }
.connection.active path { stroke-width: 2; opacity: 1; }
.connection.active circle { filter: drop-shadow(0 0 3px currentColor); }
.playback { padding: 16px 0 0; border-color: var(--line); border-radius: 0; background: #fff; }
#phase-description { display: grid; place-items: center; min-height: 86px; max-width: 960px; margin: 0 auto 18px; padding: 14px 20px; border: 1px solid #d8e7f5; border-radius: 14px; color: var(--ink); background: #edf5fc; font-size: 20px; font-weight: 500; line-height: 1.4; text-align: center; text-wrap: balance; }
.phase-action { font-weight: 700; }
.phase-action.move { color: var(--path); }
.phase-action.write { color: var(--writer); }
.phase-action.read { color: var(--reader); }
.status-line { min-height: 20px; }
#phase-label { color: var(--muted); font-size: 16px; font-weight: 400; }
.clock { font-size: 15px; }
#scrub::-webkit-slider-runnable-track { background: #d5d5d5; }
#scrub::-moz-range-track { background: #d5d5d5; }
#scrub::-webkit-slider-thumb { background: #444; }
#scrub::-moz-range-thumb { background: #444; }
.timeline-marks i { height: 8px; top: 15px; background: #999; }
.button, .speed-control select { min-height: 44px; border-color: #ccc; border-radius: 4px; color: var(--ink); background: #fff; font-size: 16px; }
.speed-control { font-size: 15px; }
.button.primary { color: #fff; border-color: #333; background: #333; }
.button:hover { border-color: #888; background: #f2f2f2; }
.button.primary:hover { border-color: #111; background: #111; }
.failure { padding: 30px; color: #922b21; }
@media (max-width: 1759px) {
  .matrix-head, .result-row { grid-template-columns: 44px repeat(var(--output-columns, 3), minmax(0, 1fr)); }
  .baseline-note { grid-column: -3 / -1; grid-row: 2; justify-self: end; max-width: 100%; padding-left: 7px; }
  .baseline-note strong { margin: 0; font-size: 14px; }
  .baseline-note span { display: none; }
}
@media (max-width: 760px) {
  .page { padding: 24px 14px; }
  .page-header { margin-bottom: 24px; }
  h1 { max-width: none; font-size: 28px; }
  .hero-stage { padding: 24px 20px 32px; }
  .status-line { flex-wrap: wrap; gap: 8px; }
  .clock { margin-left: auto; }
  .playback { padding: 14px 0 0; }
  #phase-description { min-height: 114px; padding: 14px 16px; font-size: 20px; }
}
@media (max-width: 1279px) {
  .hero-stage { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 28px 18px; padding: 20px 2px 28px; }
  .output-region { display: contents; }
  .hero-lead { margin-left: 2px; margin-right: 2px; }
  .scene-module { grid-area: 1 / 1 / 2 / -1; max-width: 760px; width: 100%; }
  .input-module { grid-area: 2 / 1 / 3 / 3; width: 100%; max-width: 360px; align-self: start; }
  .query-module { grid-area: 2 / 3 / 3 / 4; align-self: end; justify-self: center; width: 100%; max-width: 220px; }
  .writer { grid-area: 3 / 1 / 4 / 2; }
  .memory-module { grid-area: 3 / 2 / 4 / 3; width: 100%; max-width: 200px; padding: 22px 12px; justify-self: center; }
  .reader { grid-area: 3 / 3 / 4 / 4; }
  .processor { width: 100%; max-width: 160px; height: 160px; justify-self: center; }
  .output-module { grid-area: 4 / 1 / 5 / -1; }
  .writer::before { left: calc(50% - 4px); top: -5px; }
  .reader::after { left: calc(50% - 4px); top: auto; bottom: -5px; }
  #map-query { display: none; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .hero-stage { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 18px; }
  .scene-module { grid-area: 1 / 1 / 2 / 6; align-self: start; }
  .input-module { grid-area: 1 / 6 / 2 / 10; max-width: none; }
  .query-module { grid-area: 1 / 10 / 2 / 13; align-self: end; }
  .writer { grid-area: 2 / 1 / 3 / 5; }
  .memory-module { grid-area: 2 / 5 / 3 / 9; }
  .reader { grid-area: 2 / 10 / 3 / 13; }
  .output-module { grid-area: 3 / 1 / 4 / -1; max-width: 1100px; justify-self: center; }
  .keyframes { gap: 4px; }
}
@media (max-width: 600px) {
  .hero-stage { column-gap: 14px; }
  .hero-lead { font-size: 20px; }
  .module-heading { flex-wrap: wrap; gap: 4px; }
  .module-heading > span { font-size: 14px; }
  .keyframes { gap: 4px; }
  .processor { height: 136px; padding: 18px 6px; gap: 14px; font-size: 23px; }
  .processor-icon { width: 38px; height: 38px; }
  .memory-module { padding: 16px 6px; }
  .memory-module h2 { margin-bottom: 14px; font-size: 20px; }
  .slots { gap: 4px; padding: 10px 6px; }
  .slot { height: 10px; }
  .query-module { gap: 12px; min-height: 144px; padding: 16px 6px; }
  .query-module h2 { font-size: 20px; line-height: 1.25; }
  .query-list { gap: 5px; font-size: 15px; }
  .query-list span { padding: 2px 4px; }
  .output-module { padding: 18px 10px; }
  .matrix-head, .result-row { grid-template-columns: 32px repeat(var(--output-columns, 3), minmax(0, 1fr)); gap: 6px; }
  .matrix-head { font-size: 15px; }
  .matrix-head .column-label-long { display: none; }
  .matrix-head .column-label-short { display: inline; }
  .query-label { font-size: 14px; }
  .wtm-insight { padding: 14px 12px; }
  .wtm-insight h3 { font-size: 20px; }
  .wtm-insight p { font-size: 16px; }
  .view-blank { padding: 3px; font-size: 12px; }
}
@media (max-width: 360px) {
  .memory-module h2 { font-size: 17px; }
  .query-module h2 { font-size: 18px; }
  .processor { font-size: 21px; }
  .matrix-head { font-size: 14px; }
}
