:root {
  --paper: #f3f0e7;
  --ink: #263e35;
  --muted: #637065;
  --line: #cbd0c1;
  --green: #355d4c;
  --pale: #e7e9da;
  --a: #438671;
  --b: #a184a4;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
main { max-width: 1720px; margin: auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, select, input { font: inherit; color: inherit; }
button, select { border: 1px solid var(--line); background: transparent; padding: 6px 10px; border-radius: 2px; cursor: pointer; }
button:hover, select:hover { background: var(--pale); }
button:disabled { opacity: .38; cursor: default; }
button.active { background: var(--green); color: var(--paper); border-color: var(--green); }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input { accent-color: var(--green); }
input[type="checkbox"] { width: 13px; height: 13px; margin: 0 6px 0 0; vertical-align: -2px; }
input[type="range"] { width: 100%; min-width: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 13px; font-weight: 600; }
p { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Masthead and camera console. */
.masthead { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand h1 { font: 600 34px/1 var(--serif); letter-spacing: -1.5px; }
.brand-light { font-weight: 400; }
.brand-pigeon { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.brand small { font: 11px/1.45 var(--sans); margin-left: 18px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); }
nav { display: flex; gap: 24px; font-size: 12px; }
nav a:last-child { text-decoration: underline; text-underline-offset: 4px; }
.flight-deck { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
.view-column, .rig-column { min-width: 0; }
.view-options { border-top: 2px solid var(--ink); }
.view-controls { display: flex; align-items: center; gap: 12px; min-height: 52px; flex-wrap: wrap; padding: 8px 0; }
.view-controls #view-mode { order: -1; width: 196px; max-width: 100%; font-size: 12px; border-color: var(--ink); }
.segmented { display: flex; gap: 0; }
.segmented button { font-size: 11px; padding: 6px 10px; border-radius: 0; }
.segmented button + button { margin-left: -1px; }
#snapshot { margin-left: auto; font-size: 11px; border: 0; padding-right: 0; }
.viewport { position: relative; background: #17221f; overflow: hidden; }
.viewport canvas { display: block; width: 100%; aspect-ratio: 16/9; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.view-hud, .view-bottom { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff9e9; font: 9px var(--mono); pointer-events: none; text-shadow: 0 1px 4px #0009; }
.view-hud { top: 15px; }
.view-bottom { bottom: 12px; }
.view-bottom button { pointer-events: auto; border: 1px solid #fff5; color: inherit; padding: 1px 7px; background: #16261f44; font-size: 18px; }
.viewport:fullscreen { display: flex; align-items: center; justify-content: center; background: #111; }
.viewport:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
.flight-strip { padding-top: 16px; }
.transport { display: flex; align-items: center; gap: 12px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green); border-color: var(--green); color: var(--paper); min-width: 102px; height: 40px; padding: 0 16px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.play-icon { width: 12px; height: 14px; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.is-playing .play-icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.play-button:hover { background: #234638; }
.restart-button { border: 0; font-size: 23px; padding: 0 3px; }
.time-readout { min-width: 100px; font-family: var(--mono); }
.time-readout > span { display: block; color: var(--muted); font: 10px var(--sans); text-transform: lowercase; }
.time-readout strong { font-size: 13px; font-weight: 400; white-space: nowrap; }
.transport #timeline { flex: 1; }
.transport select { font-size: 11px; padding: 4px; }
.phases { display: flex; justify-content: space-between; gap: 4px; padding: 12px 0 16px; }
.phases button { font-size: 10px; border: 0; padding: 0 2px 3px; color: var(--muted); white-space: nowrap; }
.phases button.active { background: transparent; border-bottom: 1px solid var(--green); color: var(--ink); border-radius: 0; }
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; padding: 14px 0; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: center; }
.telemetry > div > span { display: block; font-size: 10px; color: var(--muted); }
.telemetry strong { font: 400 21px var(--mono); white-space: nowrap; }
.telemetry small { font-size: 11px; }
.flight-plot { height: 38px; overflow: hidden; }
.flight-plot canvas { width: 100%; height: 38px; }
.view-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 13px 0 5px; font-size: 11px; }
.view-presets button { border: 0; border-bottom: 1px solid var(--line); padding: 0; border-radius: 0; }
.view-presets label { margin-left: auto; white-space: nowrap; }
.view-note { font-size: 10px; margin-top: 7px; }
#error { padding: 15px; border: 1px solid #ba5743; color: #8d382c; margin-top: 10px; }

/* The drawing occupies the margin beside the footage. */
.rig-column { border-top: 2px solid var(--ink); }
.panel-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2 { font-size: 12px; font-weight: 500; }
.airframe-key { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.airframe-key svg { display: block; width: 100%; height: 178px; }
.rig-surface { position: relative; overflow: hidden; }
#rig { display: block; width: 100%; height: 310px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.rig-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; flex-wrap: wrap; font-size: 10px; }
.rig-toolbar .segmented button { font-size: 10px; padding: 4px 6px; }
.rig-toolbar label { white-space: nowrap; }
.rig-caption { display: flex; gap: 12px; font-size: 10px; padding: 8px 0; }
.rig-caption > span:last-child { margin-left: auto; color: var(--muted); }
#rig-description { font: 10px/1.5 var(--mono); }
.eye-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.eye-dot.a { background: var(--a); }
.eye-dot.b { background: var(--b); }
.eye-dot.overlap { background: #b19c50; }
.rig-options { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 10px; font-size: 11px; }
.rig-options summary { cursor: pointer; }
.rig-settings { display: grid; gap: 10px; padding: 12px 0; }
.rig-settings label { display: block; font-size: 11px; color: var(--muted); }
.rig-settings select { width: 100%; display: block; color: var(--ink); margin-top: 4px; font-size: 11px; }

/* Camera source images and the ground reconstruction. */
.imaging { padding: 44px 0 38px; }
.section-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.section-intro p, .hardware-status { font-size: 11px; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 22px; align-items: start; }
.sensor-card, .panorama-card { min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; min-height: 24px; margin-bottom: 8px; }
.card-top .mono { color: var(--muted); font-size: 10px; }
.eye-label { font-weight: 600; }
.text-button { border: 0; padding: 0; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.sensor-image { position: relative; background: #19211e; overflow: hidden; }
.sensor-image canvas { display: block; width: 100%; aspect-ratio: 1; }
.pixel-marker { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #f9f7eb; stroke-width: .5; filter: drop-shadow(0 0 2px #000); }
#stitched { display: block; width: 100%; aspect-ratio: 2; background: #17221d; }
.card-actions { display: flex; justify-content: space-between; gap: 5px; padding: 9px 0; }
.card-actions button { font-size: 10px; padding: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.panorama-card > label { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.panorama-card select { font-size: 10px; flex: 1; min-width: 0; padding: 5px; }
#seam-description { font-size: 10px; margin-top: 6px; }
.inspection-toggle { font-size: 10px; padding-top: 12px; color: var(--muted); }
.chain-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; padding-top: 10px; flex-wrap: wrap; }
#capture-detail { font-family: var(--mono); }

.hardware { border-top: 1px solid var(--ink); padding: 26px 0 36px; }
.hardware-lanes { display: grid; grid-template-columns: 5fr 3fr; gap: 32px; padding-top: 12px; }
.hardware-lanes h3 { font-size: 11px; font-weight: 400; color: var(--muted); margin-bottom: 18px; }
.hardware-chain { list-style: none; display: flex; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hardware-chain li { position: relative; flex: 1; min-width: 0; padding: 14px 12px 0 0; font-size: 12px; }
.hardware-chain li::before { content: ""; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; position: absolute; top: -3px; left: 0; }
.antenna-icon { display: block; width: 30px; height: 30px; margin: -7px 0 4px; color: var(--green); }
.antenna-node.receive .antenna-icon { transform: scaleX(-1); }
.hardware-chain small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }
.hardware-chain a { text-decoration: underline; text-underline-offset: 3px; }
.assumptions { border-top: 1px solid var(--line); font-size: 12px; }
.assumptions > details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.assumptions summary { cursor: pointer; font-size: 12px; }
.assumptions summary span { font-size: 11px; color: var(--muted); margin-left: 15px; }
.assumptions > details > p { margin: 12px 0; max-width: 700px; }
.assumptions > details > label { display: inline-block; width: 28%; margin: 12px 4% 12px 0; vertical-align: top; }
.assumptions output { float: right; color: var(--muted); }
.assumptions input[type="range"] { display: block; margin-top: 10px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; padding: 22px 0; }
.notes-grid h3 { margin-bottom: 12px; }
.notes-grid p { font-size: 11px; margin: 10px 0; }
.notes-grid a { font-size: 11px; text-decoration: underline; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; padding: 3px 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.diagnostics { font: 9px var(--mono); color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 25px 0 35px; color: var(--muted); font-size: 10px; }
.footer-brand { font: 18px var(--serif); color: var(--ink); }

@media (min-width: 1550px) {
  .flight-deck { grid-template-columns: minmax(0, 1fr) 330px; }
  #rig { height: 360px; }
  .airframe-key svg { height: 200px; }
}
@media (max-width: 1150px) {
  main { padding: 0 28px; }
  .flight-deck { grid-template-columns: minmax(0, 1fr) 245px; gap: 24px; }
  .brand small { display: none; }
  .view-controls { gap: 8px; }
  .view-controls #view-mode { width: 175px; }
  .segmented button { padding: 6px 7px; }
  #snapshot { margin-left: 0; }
  .telemetry { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .flight-plot { display: none; }
  .view-presets { gap: 10px; }
  .airframe-key svg { height: 155px; }
  #rig { height: 270px; }
  .rig-caption { gap: 8px; font-size: 9px; }
  .pipeline { gap: 16px; }
  .card-top { flex-wrap: wrap; }
  .hardware-lanes { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 850px) {
  main { padding: 0 22px; }
  .masthead { min-height: 96px; }
  .brand h1 { font-size: 30px; }
  nav { gap: 16px; }
  nav a:first-child { display: none; }
  .flight-deck { grid-template-columns: 1fr; gap: 28px; }
  #snapshot { margin-left: auto; }
  .rig-column { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
  .rig-column > .panel-heading { grid-column: 1/-1; }
  .airframe-key { grid-row: 2/6; margin: 0; border: 0; display: flex; align-items: center; }
  .airframe-key svg { height: 230px; }
  .rig-surface, .rig-caption, .rig-column > .small, .rig-options { grid-column: 2; }
  #rig { height: 270px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .panorama-card { grid-column: 1/-1; margin-top: 12px; }
  .notes-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  main { padding: 0 16px; }
  .masthead { min-height: 90px; gap: 10px; }
  .brand { gap: 9px; }
  .brand h1 { font-size: 28px; }
  .brand-pigeon { width: 38px; height: 38px; }
  nav { font-size: 11px; }
  nav a:not(:last-child) { display: none; }
  .view-controls { gap: 8px; padding: 10px 0; }
  .view-controls #view-mode { width: calc(100% - 95px); }
  #snapshot { order: -1; margin-left: auto; }
  .segmented button { font-size: 11px; padding: 5px 9px; }
  .view-hud, .view-bottom { left: 10px; right: 10px; font-size: 7px; }
  .view-hud { top: 10px; }
  .view-bottom { bottom: 8px; }
  .transport { gap: 8px; flex-wrap: wrap; }
  .transport #timeline { order: 5; flex-basis: 100%; margin: 8px 0 0; }
  .transport #rate { margin-left: auto; }
  .phases { padding-top: 8px; }
  .phases button { font-size: 9px; padding: 0 0 3px; }
  .telemetry { gap: 7px; padding: 12px 0; }
  .telemetry > div > span { font-size: 9px; }
  .telemetry strong { font-size: 17px; }
  .telemetry small { font-size: 9px; }
  .view-presets { gap: 10px 14px; }
  .view-presets label { margin-left: 0; }
  .rig-column { grid-template-columns: 1fr; gap: 0; }
  .airframe-key { grid-column: 1; grid-row: 2; justify-content: center; }
  .airframe-key svg { width: 280px; height: 174px; }
  .rig-surface, .rig-caption, .rig-column > .small, .rig-options { grid-column: 1; }
  #rig { height: 310px; }
  .imaging { padding-top: 32px; }
  .section-intro { gap: 12px; align-items: center; }
  .section-intro p, .hardware-status { font-size: 10px; text-align: right; max-width: 145px; }
  .card-top { font-size: 11px; }
  .card-top .mono { font-size: 9px; }
  .hardware-chain { flex-direction: column; border: 0; border-left: 1px solid var(--line); }
  .hardware-chain li { padding: 0 0 18px 15px; }
  .hardware-chain li:last-child { padding-bottom: 0; }
  .hardware-chain li::before { left: -3px; top: 7px; }
  .hardware-chain small { margin-top: 2px; }
  .assumptions summary span { display: block; margin: 4px 0 0 16px; }
  .assumptions > details > label { width: 100%; margin-right: 0; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
