:root {
    --rv-bg: #050908;
    --rv-panel: #0a100e;
    --rv-panel-2: #0d1512;
    --rv-ink: #edf7f1;
    --rv-muted: #839189;
    --rv-line: rgba(205, 255, 226, 0.13);
    --rv-line-strong: rgba(205, 255, 226, 0.24);
    --rv-green: #a9ffcb;
    --rv-green-strong: #50f598;
    --rv-amber: #f4c96b;
    --rv-red: #ff6b62;
    --rv-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --rv-sans: "Space Grotesk", Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--rv-bg);
}

body {
    margin: 0;
    color: var(--rv-ink);
    background:
        radial-gradient(circle at 72% 8%, rgba(47, 150, 94, 0.09), transparent 28rem),
        linear-gradient(180deg, #050908 0%, #07100c 56%, #050807 100%);
    font-family: var(--rv-sans);
    min-width: 320px;
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

::selection {
    color: #021107;
    background: var(--rv-green);
}

.rv-noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.12;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(225, 255, 236, 0.035) 4px),
        repeating-linear-gradient(90deg, rgba(225, 255, 236, 0.012) 0, transparent 1px, transparent 7px);
    mix-blend-mode: screen;
}

.rv-nav {
    position: relative;
    z-index: 10;
    min-height: 86px;
    padding: 0 clamp(22px, 4vw, 68px);
    border-bottom: 1px solid var(--rv-line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(5, 9, 8, 0.72);
    backdrop-filter: blur(18px);
}

.rv-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rv-line-strong);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
}

.rv-mark span {
    color: var(--rv-green-strong);
}

.rv-nav__status,
.rv-footer > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--rv-muted);
    font: 500 0.68rem/1 var(--rv-mono);
    letter-spacing: 0.13em;
}

.rv-status-light {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--rv-green-strong);
    box-shadow: 0 0 12px rgba(80, 245, 152, 0.9);
    animation: rv-status 2s ease-in-out infinite;
}

.rv-nav__back {
    justify-self: end;
    color: #b9c7bf;
    text-decoration: none;
    font: 500 0.72rem/1 var(--rv-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.rv-nav__back:hover {
    color: var(--rv-green);
}

.rv-hero--compact {
    position: relative;
    padding: clamp(24px, 3.5vw, 42px) clamp(16px, 4vw, 68px) 48px;
    display: block;
    overflow: hidden;
}

.rv-hero__header {
    max-width: 1500px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: end;
}

.rv-hero__title-block .rv-eyebrow {
    margin-bottom: 8px;
}

.rv-hero__title-block h1 {
    margin: 0;
    font-size: clamp(3.2rem, 6.5vw, 6.2rem);
    line-height: 0.82;
    letter-spacing: -0.07em;
    font-weight: 700;
}

.rv-hero__title-block h1 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(211, 255, 227, 0.72);
}

.rv-hero__info-block {
    display: grid;
    gap: 14px;
}

.rv-hero__lead {
    margin: 0;
    color: #aab8b0;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    line-height: 1.5;
    letter-spacing: -0.015em;
}

.rv-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rv-badge {
    padding: 6px 12px;
    border: 1px solid rgba(205, 255, 226, 0.18);
    border-radius: 4px;
    color: #a9ffcb;
    background: rgba(169, 255, 203, 0.05);
    font: 500 0.65rem/1 var(--rv-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rv-badge b {
    color: #64748b;
    margin-right: 5px;
    font-weight: 500;
}

.rv-viewer {
    max-width: 1500px;
    margin: 0 auto;
    border: 1px solid rgba(205, 255, 226, 0.22);
    border-radius: 8px;
    background: #030605;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(80, 245, 152, 0.04);
    overflow: hidden;
}

.rv-viewer__topbar {
    min-height: 52px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--rv-line);
    background: #0b110f;
}

.rv-viewer__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aebdb5;
    font: 500 0.65rem/1 var(--rv-mono);
    letter-spacing: 0.12em;
}

.rv-viewer__modes {
    display: flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--rv-line);
    background: #060a08;
}

.rv-viewer__modes button {
    min-height: 30px;
    padding: 0 13px;
    border: 0;
    color: #75847c;
    background: transparent;
    cursor: pointer;
    font: 500 0.61rem/1 var(--rv-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rv-viewer__modes button:hover {
    color: var(--rv-ink);
}

.rv-viewer__modes button.is-active {
    color: #071009;
    background: var(--rv-green);
}

.rv-viewer__fps {
    justify-self: end;
    color: #6e7c74;
    font: 500 0.65rem/1 var(--rv-mono);
}

.rv-viewer__model {
    color: #718078;
    font: 500 0.58rem/1 var(--rv-mono);
    letter-spacing: 0.11em;
}

.rv-sim__views {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    /* Height comes from .rv-stage's aspect ratio; the tracker column stretches
       to match. A fixed min-height here only reintroduces letterboxing. */
    min-height: 360px;
}

.rv-sim__panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #050908;
}

.rv-sim__panel--hud {
    border-right: 1px solid var(--rv-line);
}

.rv-sim__panel canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.rv-sim__panel-head {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(214, 255, 230, 0.68);
    background: linear-gradient(180deg, rgba(4, 8, 6, 0.92), transparent);
    pointer-events: none;
    font: 500 0.58rem/1 var(--rv-mono);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rv-sim__panel-head span:last-child {
    color: rgba(169, 255, 203, 0.44);
}

.legend-key {
    position: absolute;
    z-index: 4;
    left: 18px;
    bottom: 17px;
    padding: 8px 10px;
    display: flex;
    gap: 13px;
    border: 1px solid rgba(205, 255, 226, 0.12);
    color: rgba(222, 243, 230, 0.64);
    background: rgba(5, 9, 8, 0.7);
    backdrop-filter: blur(8px);
    font: 500 0.52rem/1 var(--rv-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lk-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lk-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.lk-dot--cyan { background: #22d3ee; }
.lk-dot--red { background: #ff6b62; }
.lk-dot--amber { background: #f4c96b; }
.lk-dot--green { background: #50f598; }

/* Lifted clear of the transport bar below it. */
.legend-key--raised {
    bottom: 62px;
}

/* ---- recorded-pass stage -------------------------------------------- */

/* The stage carries the clip's own aspect ratio, so the panel is exactly as
   tall as the footage. Sizing the panel independently left ~120px of dead
   letterbox above and below the video. */
.rv-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1152 / 648;
    background: #050908;
}

.rv-stage video,
.rv-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* contain, so the overlay module's fit calculation lands on the same pixels
   the browser paints the video onto. */
.rv-stage video {
    object-fit: contain;
}

.rv-stage canvas {
    z-index: 2;
}

.rv-transport {
    position: absolute;
    z-index: 5;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 11px;
    border: 1px solid rgba(205, 255, 226, 0.14);
    background: rgba(5, 9, 8, 0.78);
    backdrop-filter: blur(8px);
}

.rv-play {
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(205, 255, 226, 0.22);
    color: var(--rv-green);
    background: rgba(80, 245, 152, 0.07);
    cursor: pointer;
    font-size: 0.62rem;
    line-height: 1;
}

.rv-play:hover {
    border-color: rgba(169, 255, 203, 0.55);
    background: rgba(80, 245, 152, 0.16);
}

.rv-scrub {
    flex: 1;
    min-width: 0;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 2px;
    background: rgba(205, 255, 226, 0.16);
    cursor: pointer;
}

.rv-scrub::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--rv-green);
    cursor: pointer;
}

.rv-scrub::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: var(--rv-green);
    cursor: pointer;
}

.rv-clock {
    flex: none;
    color: rgba(169, 255, 203, 0.62);
    font: 500 0.54rem/1 var(--rv-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.tool.is-on {
    color: var(--rv-green);
    border-color: rgba(169, 255, 203, 0.42);
    background: rgba(80, 245, 152, 0.1);
}

.rv-provenance {
    max-width: 78ch;
    margin: 20px auto 0;
    color: #6d7c73;
    text-align: center;
    font: 400 0.68rem/1.65 var(--rv-mono);
}

.rv-provenance code {
    color: #98a8a0;
    font-size: 0.95em;
}

.toolbar {
    position: absolute;
    z-index: 5;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tool {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(205, 255, 226, 0.18);
    color: #b6c5bd;
    background: rgba(5, 9, 8, 0.82);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font: 500 0.56rem/1 var(--rv-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool:hover {
    color: var(--rv-green);
    border-color: rgba(169, 255, 203, 0.5);
}

.tool--clear {
    margin-left: auto;
    color: #ff8e87;
}

.rv-sim__telemetry {
    display: grid;
    grid-template-columns: 1.35fr 0.72fr 1fr 0.9fr;
    min-height: 178px;
    border-top: 1px solid var(--rv-line);
}

.rv-sim__telemetry > article {
    position: relative;
    min-width: 0;
    padding: 22px 20px;
    border-right: 1px solid var(--rv-line);
    overflow: hidden;
}

.rv-sim__telemetry > article:last-child {
    border-right: 0;
}

.rv-sim__telemetry article > span:first-child {
    display: block;
    margin-bottom: 16px;
    color: #6d7c73;
    font: 500 0.58rem/1 var(--rv-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rv-sim__telemetry article > strong {
    display: block;
    color: var(--rv-green);
    font: 500 clamp(1.35rem, 2.4vw, 2.2rem)/1 var(--rv-mono);
    font-variant-numeric: tabular-nums;
}

.rv-sim__telemetry strong small {
    margin-left: 4px;
    color: #748279;
    font-size: 0.68rem;
}

.rv-sim__telemetry p {
    margin: 8px 0 0;
    color: #7b8a81;
    font: 400 0.62rem/1.45 var(--rv-mono);
}

.rv-sim__telemetry small {
    color: #6d7c73;
    font: 400 0.56rem/1.4 var(--rv-mono);
}

.rv-sim__telemetry small b {
    color: #a9b8b0;
    font-weight: 500;
}

.sparkline {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 13px;
    width: calc(100% - 36px);
    height: 42px;
}

.rv-sim__pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 13px;
}

.rv-sim__pipeline b,
.rv-sim__apollo > span {
    padding: 4px 6px;
    border: 1px solid rgba(169, 255, 203, 0.16);
    color: #92a199;
    background: rgba(169, 255, 203, 0.035);
    font: 500 0.48rem/1 var(--rv-mono);
    letter-spacing: 0.05em;
}

.rv-sim__pipeline i {
    color: rgba(169, 255, 203, 0.42);
    font: normal 0.6rem/1 var(--rv-mono);
}

.rv-sim__apollo {
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.rv-sim__apollo .rule-chip.ok {
    color: var(--rv-green);
    border-color: rgba(169, 255, 203, 0.35);
}

.rv-sim__apollo .rule-chip.warn {
    color: var(--rv-amber);
    border-color: rgba(244, 201, 107, 0.35);
}

.rv-sim__apollo .rule-chip.err {
    color: var(--rv-red);
    border-color: rgba(255, 107, 98, 0.35);
}

.det-list {
    max-height: 105px;
    display: grid;
    gap: 5px;
    overflow: auto;
}

.det {
    padding: 5px 6px;
    display: grid;
    grid-template-columns: 9px 1fr auto auto;
    gap: 6px;
    align-items: center;
    border-left: 1px solid #22d3ee;
    color: #a8b7af;
    background: rgba(255, 255, 255, 0.025);
    font: 400 0.55rem/1 var(--rv-mono);
}

.det .swatch {
    width: 6px;
    height: 6px;
}

.det .conf {
    color: #66766d;
}

.rv-sim__decision > strong {
    color: var(--rv-green-strong) !important;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem) !important;
}

.rv-sim__decision > small {
    position: absolute;
    left: 20px;
    bottom: 18px;
}

.rv-canvas-wrap {
    position: relative;
    min-height: 360px;
    aspect-ratio: 16 / 8.3;
    overflow: hidden;
    background: #0b100e;
}

#retrovision-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.rv-canvas-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 6, 5, 0.7), transparent 12%, transparent 88%, rgba(3, 6, 5, 0.7)),
        repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(181, 255, 210, 0.018) 4px);
}

.rv-canvas-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(169, 255, 203, 0.3);
    pointer-events: none;
}

.rv-canvas-reticle::before,
.rv-canvas-reticle::after {
    content: "";
    position: absolute;
    background: rgba(169, 255, 203, 0.4);
}

.rv-canvas-reticle::before {
    left: 50%;
    top: -8px;
    bottom: -8px;
    width: 1px;
}

.rv-canvas-reticle::after {
    top: 50%;
    left: -8px;
    right: -8px;
    height: 1px;
}

.rv-canvas-reticle span {
    position: absolute;
    inset: 5px;
    background: #07100d;
}

.rv-canvas-readout {
    position: absolute;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 5px;
    color: rgba(214, 255, 230, 0.7);
    font: 500 0.58rem/1 var(--rv-mono);
    letter-spacing: 0.12em;
}

.rv-canvas-readout span {
    color: rgba(214, 255, 230, 0.38);
}

.rv-canvas-readout--left {
    left: 24px;
}

.rv-canvas-readout--right {
    right: 24px;
    text-align: right;
}

.rv-telemetry {
    min-height: 112px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rv-line);
}

.rv-telemetry > div {
    padding: 23px 25px;
    display: grid;
    gap: 11px;
    border-right: 1px solid var(--rv-line);
}

.rv-telemetry > div:last-child {
    border-right: 0;
}

.rv-telemetry span {
    color: #69786f;
    font: 500 0.6rem/1 var(--rv-mono);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rv-telemetry strong {
    color: #d8e5dd;
    font: 500 clamp(1.25rem, 2vw, 1.9rem)/1 var(--rv-mono);
    font-variant-numeric: tabular-nums;
}

.rv-telemetry strong b {
    font: inherit;
}

.rv-telemetry strong small {
    color: #6f7e75;
    font-size: 0.72rem;
    font-weight: 500;
}

.rv-telemetry__decision strong {
    color: var(--rv-green);
    font-size: clamp(0.85rem, 1.25vw, 1.08rem);
    letter-spacing: 0.06em;
}

.rv-telemetry__decision strong i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--rv-green-strong);
    box-shadow: 0 0 12px rgba(80, 245, 152, 0.7);
}

.rv-statement {
    padding: clamp(100px, 13vw, 210px) clamp(22px, 8vw, 132px);
    border-top: 1px solid var(--rv-line);
}

.rv-statement blockquote {
    max-width: 1200px;
    margin: 0;
    font-size: clamp(3rem, 7.4vw, 8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 500;
}

.rv-statement blockquote span {
    display: block;
    color: #5e6d65;
}

.rv-statement__copy {
    max-width: 720px;
    margin: 64px 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    color: #909e96;
    line-height: 1.7;
}

.rv-architecture {
    padding: clamp(88px, 10vw, 150px) clamp(16px, 4vw, 68px);
    border-top: 1px solid var(--rv-line);
    background: #0a100e;
}

.rv-section-head--architecture {
    margin-bottom: 60px;
}

.rv-section-head--architecture h2 {
    font-size: clamp(2.8rem, 5.2vw, 5.4rem);
}

.rv-system-flow {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 88px 1fr 88px 1fr;
    align-items: stretch;
}

.rv-system-card {
    position: relative;
    min-height: 360px;
    padding: 30px;
    border: 1px solid var(--rv-line-strong);
    background: linear-gradient(145deg, rgba(15, 24, 20, 0.9), rgba(7, 12, 10, 0.95));
    overflow: hidden;
}

.rv-system-card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(169, 255, 203, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(169, 255, 203, 0.025), 0 0 0 56px rgba(169, 255, 203, 0.018);
}

.rv-system-card__num {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #405047;
    font: 500 0.7rem/1 var(--rv-mono);
}

.rv-system-card__label {
    margin: 0 0 72px;
    color: var(--rv-green);
    font: 500 0.63rem/1 var(--rv-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rv-system-card h3 {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    letter-spacing: -0.04em;
    font-weight: 500;
}

.rv-system-card > p:not(.rv-system-card__label) {
    max-width: 34ch;
    margin: 0;
    color: #85938b;
    line-height: 1.65;
}

.rv-system-connector {
    position: relative;
    display: grid;
    place-items: center;
}

.rv-system-connector::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--rv-line-strong);
}

.rv-system-connector::after {
    content: "";
    position: absolute;
    right: 4px;
    top: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--rv-green);
    border-right: 1px solid var(--rv-green);
    transform: rotate(45deg);
}

.rv-system-connector span {
    position: relative;
    z-index: 1;
    padding: 5px;
    color: #65736b;
    background: #0a100e;
    font: 500 0.54rem/1 var(--rv-mono);
    letter-spacing: 0.12em;
}

.rv-signal {
    position: absolute;
    left: 30px;
    bottom: 32px;
    display: flex;
    gap: 8px;
    align-items: end;
}

.rv-signal i {
    width: 3px;
    height: 12px;
    background: var(--rv-green);
}

.rv-signal i:nth-child(2) { height: 22px; }
.rv-signal i:nth-child(3) { height: 16px; }
.rv-signal i:nth-child(4) { height: 30px; }
.rv-signal i:nth-child(5) { height: 20px; }

.rv-code-line {
    position: absolute;
    left: 30px;
    bottom: 32px;
    color: #809087;
    font: 500 0.68rem/1 var(--rv-mono);
}

.rv-mini-display {
    position: absolute;
    left: 30px;
    bottom: 30px;
    width: 88px;
    height: 54px;
    border: 1px solid var(--rv-line-strong);
    background: #040705;
    overflow: hidden;
}

.rv-mini-display span {
    position: absolute;
    left: 42px;
    top: 10px;
    bottom: 0;
    width: 1px;
    background: var(--rv-green);
}

.rv-mini-display i {
    position: absolute;
    bottom: -2px;
    width: 1px;
    height: 46px;
    background: rgba(169, 255, 203, 0.45);
    transform-origin: bottom;
}

.rv-mini-display i:nth-child(2) { left: 15px; transform: rotate(21deg); }
.rv-mini-display i:nth-child(3) { left: 43px; }
.rv-mini-display i:nth-child(4) { right: 15px; transform: rotate(-21deg); }

.rv-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rv-line);
    border-bottom: 1px solid var(--rv-line);
}

.rv-principles article {
    min-height: 370px;
    padding: clamp(34px, 5vw, 76px);
    border-right: 1px solid var(--rv-line);
    background: #060a08;
}

.rv-principles article:last-child {
    border-right: 0;
}

.rv-principles span {
    color: var(--rv-green);
    font: 500 0.6rem/1 var(--rv-mono);
    letter-spacing: 0.14em;
}

.rv-principles h3 {
    margin: 112px 0 18px;
    font-size: clamp(1.8rem, 3vw, 3.3rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.rv-principles p {
    max-width: 39ch;
    margin: 0;
    color: #7f8d85;
    line-height: 1.7;
}

.rv-footer {
    min-height: 124px;
    padding: 0 clamp(22px, 4vw, 68px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rv-footer a {
    color: #a7b5ad;
    text-decoration: none;
    font: 500 0.67rem/1 var(--rv-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rv-footer a:hover {
    color: var(--rv-green);
}

@keyframes rv-status {
    50% { opacity: 0.45; }
}

@media (max-width: 980px) {
    .rv-hero {
        grid-template-columns: 1fr;
    }

    .rv-section-head {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rv-section-head > p {
        max-width: 650px;
    }

    .rv-system-flow {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rv-system-connector {
        display: none;
    }

    .rv-system-card {
        min-height: 290px;
    }

    .rv-principles article {
        padding: 42px 28px;
    }

    .rv-sim__views {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .rv-sim__panel {
        min-height: 540px;
    }

    .rv-sim__panel--hud {
        /* Stacked, the HUD panel is sized by the clip's aspect ratio alone --
           a min-height here would only add letterbox back. */
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--rv-line);
    }

    .rv-sim__panel--tracker {
        min-height: 460px;
    }

    .rv-sim__telemetry {
        grid-template-columns: 1fr 1fr;
    }

    .rv-sim__telemetry > article {
        min-height: 165px;
        border-bottom: 1px solid var(--rv-line);
    }

    .rv-sim__telemetry > article:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .rv-nav {
        min-height: 72px;
        grid-template-columns: 1fr 1fr;
    }

    .rv-nav__status {
        display: none;
    }

    .rv-hero {
        min-height: auto;
        padding-top: 86px;
    }

    /* The header stayed a two-column grid at every width, so the oversized
       title ran straight under the lead paragraph and badges. */
    .rv-hero__header {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .rv-hero h1 {
        font-size: clamp(3.9rem, 21vw, 6.6rem);
    }

    .rv-hero h1 span {
        margin-left: 0;
    }

    .rv-hero__lead {
        margin-top: 42px;
    }

    .rv-hero__facts {
        margin-top: 54px;
    }

    .rv-hero__index {
        display: none;
    }

    .rv-viewer__topbar {
        padding: 12px;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .rv-viewer__identity {
        display: none;
    }

    .rv-viewer__model {
        max-width: 220px;
        line-height: 1.4;
    }

    .rv-viewer__modes {
        justify-self: start;
    }

    .rv-canvas-wrap {
        min-height: 400px;
        aspect-ratio: 4 / 5;
    }

    .rv-sim__panel {
        min-height: 470px;
    }

    .rv-sim__panel--hud {
        min-height: 0;
    }

    /* At this width the clip is only ~190px tall; the legend and the transport
       bar together would cover half of it. The transport is the one you need. */
    .legend-key {
        display: none;
    }

    .rv-sim__panel--tracker {
        min-height: 420px;
    }

    .rv-telemetry {
        grid-template-columns: 1fr 1fr;
    }

    .rv-telemetry > div:nth-child(2) {
        border-right: 0;
    }

    .rv-telemetry > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--rv-line);
    }

    .rv-statement__copy {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rv-principles {
        grid-template-columns: 1fr;
    }

    .rv-principles article {
        min-height: 300px;
        border-right: 0;
        border-bottom: 1px solid var(--rv-line);
    }

    .rv-principles article:last-child {
        border-bottom: 0;
    }

    .rv-principles h3 {
        margin-top: 76px;
    }
}

@media (max-width: 480px) {
    .rv-nav__back {
        font-size: 0.62rem;
    }

    .rv-hero__facts {
        gap: 12px;
    }

    .rv-hero__facts dd {
        font-size: 0.75rem;
    }

    .rv-viewer__modes button {
        padding: 0 9px;
    }

    .rv-canvas-readout {
        display: none;
    }

    .rv-telemetry > div {
        padding: 18px;
    }

    .rv-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rv-status-light {
        animation: none;
    }
}
