/* VIZ / HV Electronics — the engineering pit wall.
   Quiet graphite, warm white, one signal orange. Existing markup and tools stay intact. */

@font-face {
  font-family: "VIZ Barlow Condensed";
  src: url("/assets/viz/barlow-condensed-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "VIZ DM Sans";
  src: url("/assets/viz/dm-sans-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 1000; font-display: swap;
}
@font-face {
  font-family: "VIZ IBM Plex Mono";
  src: url("/assets/viz/ibm-plex-mono-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 700; font-display: swap;
}
:root {
  color-scheme: dark;
  --bg-void: #0d0f10;
  --bg-main: #131617;
  --bg-panel: #191c1e;
  --bg-card: #1c1f21;
  --bg-elevated: #24282a;
  --bg-input: #111415;
  --border-subtle: #343a3c;
  --border-grid: #303638;
  --border-strong: #626a6d;
  --border-orange: #ff5a2a;
  --border-cyan: #626a6d;
  --text-primary: #f2f1eb;
  --text-secondary: #c0c4c3;
  --text-muted: #9da5a6;
  --accent-orange: #ff5a2a;
  --accent-amber: #ff5a2a;
  --accent-amber-bright: #ff8b67;
  --accent-volt: #ff5a2a;
  --accent-cyan: #d1d7d5;
  --accent-emerald: #d1d7d5;
  --accent-red: #ff8b67;
  --font-display: "VIZ Barlow Condensed", "Arial Narrow", sans-serif;
  --font-condensed: var(--font-display);
  --font-sans: "VIZ DM Sans", sans-serif;
  --font-mono: "VIZ IBM Plex Mono", monospace;
  --container-max: 1800px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg-void); color: var(--text-primary); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.7; scroll-padding-top: 10rem;
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
body { margin: 0; background: var(--bg-main); color: var(--text-primary); }
::selection { background: var(--accent-orange); color: var(--bg-void); }
a { color: var(--text-primary); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-amber-bright); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 5px; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
img, svg, video { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-primary); font-weight: 600; }
code, pre { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; }
code { color: #e1e2dc; }
pre { white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid var(--border-subtle); }
ul, ol { padding-inline-start: 1.4rem; }
li + li { margin-top: .35rem; }
.widescreen-shell { width: min(calc(100% - 64px), var(--container-max)); margin-inline: auto; }
.hero-grid > *, .kpi-mini-grid > *, .tracks-grid > *, .catalog-grid > *,
.collections-matrix > *, .footer-grid > *, .workbench-pane > *, .form-grid > *,
.wb-readout-row > *, .track-metrics > *, .header-inner > *, .section-header > * { min-width: 0; }

/* A compact feed, followed by a clear masthead rather than a bank of buttons. */
.telemetry-ribbon { background: var(--bg-void); border-bottom: 1px solid #292e30; padding-block: 10px; }
.telemetry-ribbon-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; }
.ribbon-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; min-width: 0; }
.telemetry-ribbon, .ribbon-group .status-pill {
  color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; line-height: 1.6; letter-spacing: .015em;
}
.ribbon-group > span { overflow-wrap: anywhere; }
.telemetry-ribbon strong { color: #c7cecc; font-weight: 400; }
.telemetry-ribbon a { color: #c7cecc; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px; border: 0; border-radius: 2px; background: #272c2e;
  color: #d4d8d6; font: 400 10px/1.6 var(--font-mono); letter-spacing: .035em;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.telemetry-ribbon .status-pill { background: transparent; padding: 0; color: #d6dad7; }
.status-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--accent-orange); }
.site-header { position: relative; z-index: 20; background: #131617; border-bottom: 1px solid var(--border-grid); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-block: 25px; }
.brand-cluster { display: flex; align-items: center; gap: 15px; flex: 0 1 410px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 55px; height: 55px; flex: 0 0 55px;
  background: var(--accent-orange); color: #121516; font: 700 33px/1 var(--font-display); letter-spacing: -.035em;
}
.brand-titles { display: flex; flex-direction: column; min-width: 0; }
.brand-name { color: var(--text-primary); font: 600 27px/1.06 var(--font-display); letter-spacing: .025em; text-transform: uppercase; }
.brand-sub { margin-top: 7px; color: var(--text-muted); font: 400 9px/1.6 var(--font-mono); letter-spacing: .025em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 760px; flex-wrap: wrap; gap: 5px 23px; }
.nav-link {
  position: relative; display: inline-block; padding: 7px 0; border-bottom: 1px solid transparent;
  color: #bcc2c0; font: 500 12px/1.55 var(--font-sans); text-decoration: none; white-space: normal;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); border-bottom-color: var(--accent-orange); }
.nav-link-highlight { color: #e4a08a; }

/* Long original titles keep their full wording; the image owns its own column. */
.hero-console { position: relative; padding-block: clamp(44px, 4.5vw, 82px); border-bottom: 1px solid var(--border-grid); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 4.2vw, 76px); }
.hero-console .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  margin: 0 0 24px; padding: 0 0 0 13px; border: 0; border-left: 2px solid var(--accent-orange);
  background: transparent; color: var(--text-muted); font: 400 10px/1.8 var(--font-mono);
  letter-spacing: .075em; text-transform: uppercase; overflow-wrap: anywhere;
}
/* Error templates carry a legacy yellow inline badge. Keep the single signal colour. */
.eyebrow-badge[style] { background: transparent !important; color: #ff8b67 !important; border-left-color: var(--accent-orange) !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
h1 {
  max-width: 30ch; margin: 0 0 28px; font-size: clamp(3.1rem, 4.7vw, 5.5rem);
  line-height: 1.02; letter-spacing: -.012em; text-transform: uppercase;
}
.hero-grid h1 { max-width: 24ch; }
h2 { margin: 0 0 24px; font-size: clamp(2rem, 2.8vw, 3.3rem); line-height: 1.12; letter-spacing: -.005em; }
h3 { margin: 0 0 16px; font-size: clamp(1.6rem, 1.9vw, 2.1rem); line-height: 1.16; letter-spacing: .005em; }
h3 a { text-decoration: none; }
h4 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.2; }
.lead-copy { max-width: 76ch; margin: 0 0 28px; font-size: clamp(15px, 1.08vw, 18px); line-height: 1.8; color: var(--text-secondary); }
.hero-console > .widescreen-shell > .lead-copy { max-width: 90ch; }
.answer-capsule { margin: 26px 0; padding: 21px 0 0; border: 0; border-top: 1px solid var(--border-subtle); background: transparent; }
.answer-capsule-label { display: block; margin-bottom: 9px; color: #ff8b67; font: 400 10px/1.7 var(--font-mono); letter-spacing: .055em; text-transform: uppercase; }
.answer-capsule p { color: var(--text-secondary); font-size: 13px; line-height: 1.85; }
.answer-capsule a, .lead-copy a { text-decoration-color: #6e7778; }
.btn-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; min-height: 45px;
  padding: 12px 19px; border: 1px solid var(--border-strong); border-radius: 2px; background: transparent;
  color: var(--text-primary); font: 600 12px/1.55 var(--font-sans); text-align: center; text-decoration: none;
  overflow-wrap: anywhere; cursor: pointer; transition: transform .18s ease;
}
.btn:hover { color: var(--text-primary); border-color: #a9b1b0; transform: translateY(-2px); }
.btn-amber { background: var(--accent-orange); border-color: var(--accent-orange); color: #131617 !important; }
.btn-amber:hover { background: #ff7d56; border-color: #ff7d56; color: #131617 !important; }
.btn-cyan { color: var(--text-primary) !important; background: #24292b; border-color: #454d50; }
.btn-cyan:hover { background: #303638; }
.btn-ghost { color: #c8cecc !important; border-color: #454c4e; }
.telemetry-summary-box { position: relative; display: flex; flex-direction: column; gap: 0; background: transparent; border: 0; padding: 0; }
.hero-console .telemetry-summary-box::before {
  content: ""; display: block; width: 100%; aspect-ratio: 1.5; flex: 0 0 auto;
  margin-bottom: 26px; background: #252a2b url("/assets/viz/hv-hero-1280.webp") center / cover no-repeat;
}
.telemetry-box-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.telemetry-box-header > div { min-width: 0; }
.telemetry-box-header h2 { font-size: 25px !important; line-height: 1.15; margin-top: 8px !important; }
.telemetry-box-header > h2 { margin-top: 0 !important; }
.kpi-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.kpi-tile { padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.kpi-tile-label, .kpi-tile-sub { display: block; font: 400 10px/1.65 var(--font-mono); color: var(--text-muted); }
.kpi-tile-label { text-transform: uppercase; letter-spacing: .035em; }
.kpi-tile-val { display: block; margin-block: 5px; font: 500 clamp(24px, 2.1vw, 36px)/1.18 var(--font-display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.kpi-tile:first-child .kpi-tile-val { color: var(--accent-orange); }
.telemetry-summary-box > div[style] { gap: 12px 24px; flex-wrap: wrap; color: var(--text-muted); font-size: 10px !important; line-height: 1.8; }
.telemetry-summary-box .spec-table { font-size: 12px; }
.telemetry-summary-box .spec-table th { width: 37%; font-size: 10px; background: transparent; }
.telemetry-summary-box .spec-table th, .telemetry-summary-box .spec-table td { padding: 15px 10px 15px 0; }

/* Large section intervals do the work that neon borders used to do. */
.section-block { padding-block: clamp(48px, 5.2vw, 92px); border-bottom: 1px solid var(--border-grid); }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 38px; margin-bottom: 32px; }
.section-header > div { flex: 1 1 650px; }
.section-header .eyebrow-badge { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 0; max-width: 36ch; }
.section-header > .btn { flex-shrink: 0; }
.section-block > .widescreen-shell > h2 { max-width: 48ch; margin-bottom: 32px; }
.tracks-grid, .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.track-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 28px; background: var(--bg-card); border-top: 1px solid #535c5e;
  transition: transform .2s ease;
}
.track-card:hover { transform: translateY(-3px); }
.track-card.archived-circuit { background: #181b1c; border-top-color: var(--accent-orange); }
.track-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.track-head h3 { margin-bottom: 6px; }
.track-region { color: var(--text-muted); font: 400 10px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .045em; overflow-wrap: anywhere; }
.track-region[style], .archived-circuit .status-pill[style] { color: #ff9d7d !important; background: transparent !important; border-color: transparent !important; }
.rad-gauge-strip { margin-bottom: 22px; }
.rad-gauge-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 9px; color: var(--text-muted); font: 400 10px/1.65 var(--font-mono); }
.rad-gauge-bar { height: 3px; background: #373e40; }
.rad-gauge-fill { height: 100%; max-width: 100%; background: var(--accent-orange); }
.track-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 10px; margin-bottom: 20px; }
.metric-cell { display: flex; flex-direction: column; gap: 5px; }
.metric-label { color: var(--text-muted); font: 400 10px/1.7 var(--font-mono); text-transform: uppercase; overflow-wrap: anywhere; }
.metric-value { color: var(--text-primary); font: 500 27px/1.15 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value.rad-good { color: var(--text-primary); }
.metric-value.rad-warn { color: #ff9d7d; }
.track-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; border-top: 1px solid var(--border-subtle); padding-top: 16px; color: var(--text-muted); font: 400 10px/1.6 var(--font-mono); }

/* The interactive console retains its existing tab state and calculations. */
.workbench-container { background: var(--bg-panel); border-top: 2px solid var(--accent-orange); scroll-margin-top: 30px; }
.workbench-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 20px; border-bottom: 1px solid #42494c; background: #191d1f; }
.wb-tab {
  flex: 1 1 250px; min-width: 0; padding: 20px 18px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #abb3b3; text-align: left; cursor: pointer;
  font: 500 13px/1.6 var(--font-sans); overflow-wrap: anywhere;
}
.wb-tab:hover { color: var(--text-primary); background: #23282a; }
.wb-tab.active { border-bottom-color: var(--accent-orange); background: #252b2d; color: var(--text-primary); }
/* This is the original tab visibility contract, not editorial content removal. */
.workbench-pane { display: none; padding: clamp(20px, 2.3vw, 40px); }
.workbench-pane.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 3.8vw, 65px); align-items: start; }
.wb-controls, .wb-outputs { padding: 0; background: transparent; border: 0; min-width: 0; }
.wb-controls h3, .wb-outputs h3 { max-width: 38ch; }
.wb-controls h2, .wb-outputs h2 { margin-bottom: 24px; font-size: clamp(29px, 2.5vw, 42px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.form-field.full-span { grid-column: 1 / -1; }
.form-field label { color: #bdc6c3; font: 400 10px/1.7 var(--font-mono); letter-spacing: .025em; text-transform: uppercase; }
input, select, textarea { min-width: 0; max-width: 100%; accent-color: var(--accent-orange); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 47px; padding: 11px 12px;
  border: 1px solid #535d60; border-radius: 2px; background: var(--bg-input); color: var(--text-primary);
  font: 400 13px/1.65 var(--font-mono);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent-orange); outline-offset: 2px; border-color: var(--accent-orange); }
::placeholder { color: #8b9595; opacity: 1; }
option { background: var(--bg-input); color: var(--text-primary); }
.wb-readout-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.wb-readout { min-width: 0; background: transparent; border: 0; border-top: 1px solid #50595b; padding: 16px 0 0; }
.wb-readout-label { display: block; color: var(--text-muted); font: 400 10px/1.65 var(--font-mono); text-transform: uppercase; letter-spacing: .025em; }
.wb-readout-val { display: block; margin-top: 9px; color: var(--text-primary); font: 500 clamp(24px, 2.05vw, 34px)/1.2 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wb-readout:first-child .wb-readout-val { color: #ff8b67; }
.svg-chart-frame { margin-bottom: 24px; padding: 16px; background: var(--bg-input); }
.svg-chart-frame svg { display: block; width: 100%; height: auto; aspect-ratio: 520 / 190; }
.svg-chart-frame svg rect[fill="#080b10"] { fill: var(--bg-input); }
.svg-chart-frame svg [stroke="#D4FF00"], .svg-chart-frame svg [stroke="#00F0FF"] { stroke: var(--accent-orange); }
.svg-chart-frame svg text[fill="#D4FF00"], .svg-chart-frame svg text[fill="#00F0FF"] { fill: #ff9d7d; }
.workbench-container > div[style] { background: #15191b !important; }
.formula-box { margin: 24px 0; padding: 18px 20px; border-left: 2px solid #626c6d; background: var(--bg-input); color: #cdd5d0; font: 400 12px/1.85 var(--font-mono); overflow-wrap: anywhere; }

/* Reference data stays readable even when a source value is an unbroken code. */
.table-wrap { width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #697373 var(--bg-input); background: transparent; border-top: 1px solid #596264; }
table.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--text-secondary); font-size: 13px; line-height: 1.75; }
table.spec-table th, table.spec-table td { padding: 20px; border-bottom: 1px solid var(--border-grid); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.spec-table th { background: #1c2224; color: #e3e7e2; font: 400 10px/1.8 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
table.spec-table tbody tr:hover { background: #1c2223; }
.mono-cell { color: #dde1db; font-family: var(--font-mono); font-size: .94em; }
.spec-table strong { font-weight: 500; }

/* Editorial product references: one surface, generous spacing, no nested frames. */
.catalog-card { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 30px; background: var(--bg-card); border: 0; transition: transform .2s ease; }
.catalog-card:hover { transform: translateY(-3px); }
.catalog-card h3 { font-size: 29px; }
.catalog-card h3 a { color: var(--text-primary); }
.catalog-card h3 a:hover { color: #ff9d7d; }
.catalog-card > div > div[style*="display:flex"] { flex-wrap: wrap; align-items: flex-start !important; gap: 12px 18px !important; }
.catalog-card div[style*="border:1px solid var(--border-subtle)"] { border: 0 !important; border-radius: 0 !important; background: #15191a !important; padding: 16px !important; }
.price-tag-archive { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; max-width: 100%; padding: 6px 0; background: transparent; border: 0; color: #ff9d7d; font: 400 12px/1.6 var(--font-mono); }
.price-reg-strike { text-decoration: line-through; color: var(--text-muted); font-size: 10px; }
.collections-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.collection-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 25px 0; border: 0; border-top: 1px solid #4a5355; background: transparent; }
.collection-tile h3, .collection-tile h3[style] { font-size: 24px !important; line-height: 1.2; }
.collection-tile:hover { border-top-color: var(--accent-orange); }
.collection-tile .btn { align-self: flex-start; }
.section-block > .widescreen-shell > .wb-controls { max-width: 1120px !important; }
.section-block > .widescreen-shell > .wb-controls > p { max-width: 80ch; color: var(--text-secondary); font-size: 16px; line-height: 1.9; }
.section-block > .widescreen-shell > .wb-controls > h2:not(:first-child) { margin-top: 48px; }
.wb-controls > div[style*="line-height:1.68"] { line-height: 1.9 !important; font-size: 15px !important; }
.wb-outputs > div[style*="border:1px solid var(--border-subtle)"] { border: 0 !important; border-radius: 0 !important; padding: 24px !important; }

.site-footer { padding-block: clamp(48px, 5vw, 90px) 28px; background: var(--bg-void); color: var(--text-muted); font-size: 13px; line-height: 1.85; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-title { margin-bottom: 24px; color: var(--text-primary); font: 500 23px/1.2 var(--font-display); }
.footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0; }
.footer-links a { color: #aeb6b5; font-size: 12px; line-height: 1.8; text-decoration: none; }
.footer-links a:hover { color: #ff9d7d; }
.site-footer p[style*="color:#94a3b8"] { color: #a8b1af !important; }
.site-footer p[style*="color:#cbd5e1"] { color: #b5bfbb !important; }
.disclaimer-banner { border-top: 1px solid #353c3e; padding-top: 24px; color: #959f9f; font-size: 11px; line-height: 1.9; }
.disclaimer-banner strong { color: #bbc3c0; font-weight: 500; }
.disclaimer-banner a { color: #d3d9d4; }

/* One restrained entrance; interactive motion changes only transform/opacity. */
@keyframes viz-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-console .hero-grid > :first-child { animation: viz-arrive .6s ease both; }
  .hero-console .telemetry-summary-box { animation: viz-arrive .7s .08s ease both; }
}
@media (min-width: 1800px) {
  .hero-console .telemetry-summary-box::before { background-image: url("/assets/viz/hv-hero-1536.webp"); }
}
@media (max-width: 1279px) {
  .header-inner { flex-wrap: wrap; gap: 24px; }
  .brand-cluster { flex-basis: 100%; }
  .main-nav { justify-content: flex-start; flex-basis: 100%; gap: 5px 24px; }
  .hero-grid { gap: 34px; }
  .hero-console .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  h1 { font-size: clamp(48px, 5.2vw, 68px); }
  .tracks-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collections-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-pane.active { grid-template-columns: minmax(0, 1fr); }
  .workbench-pane .wb-outputs { border-top: 1px solid var(--border-subtle); padding-top: 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .kpi-mini-grid { gap: 0 18px; }
}
@media (max-width: 959px) {
  .hero-grid, .hero-console .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .hero-grid h1 { max-width: 28ch; }
  .hero-console .lead-copy { max-width: 75ch; }
  .telemetry-summary-box { max-width: 100%; }
  .telemetry-box-header h2 { font-size: 28px !important; }
  .kpi-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .kpi-tile-val { font-size: 34px; }
  .section-header > .btn { flex-shrink: 1; }
  .collections-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card, .track-card { padding: 24px; }
  .telemetry-ribbon-inner { gap: 8px; }
  /* Keep the image in the first mobile screen without moving any HTML. */
  .hero-console .hero-grid:has(> .telemetry-summary-box)::before {
    content: ""; display: block; width: 100%; aspect-ratio: 1.5;
    background: url("/assets/viz/hv-hero-1280.webp") center / cover no-repeat;
  }
  .hero-console .hero-grid > .telemetry-summary-box::before { content: none; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 24px; }
  .widescreen-shell { width: min(calc(100% - 36px), var(--container-max)); }
  .telemetry-ribbon { padding: 9px 18px; overflow-x: auto; scrollbar-width: thin; }
  .telemetry-ribbon-inner { width: max-content; min-width: 100%; margin: 0; flex-wrap: nowrap; gap: 26px; }
  .ribbon-group { flex-wrap: nowrap; flex-shrink: 0; gap: 18px; }
  .ribbon-group > span, .ribbon-group > a { white-space: nowrap; }
  .header-inner { padding-block: 18px 0; gap: 14px; }
  .brand-cluster { gap: 12px; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; font-size: 29px; }
  .brand-name { font-size: 25px; }
  .brand-sub { font-size: 8px; line-height: 1.65; letter-spacing: 0; }
  .main-nav { display: flex; flex-wrap: nowrap; width: 100%; justify-content: flex-start; gap: 23px; align-items: stretch; overflow-x: auto; scrollbar-width: thin; padding-bottom: 12px; }
  .nav-link { display: flex; align-items: center; flex: 0 0 auto; min-height: 40px; font-size: 11px; padding-block: 8px; white-space: nowrap; }
  .hero-console { padding-block: 40px; }
  .eyebrow-badge { margin-bottom: 23px; font-size: 9px; line-height: 1.85; letter-spacing: .045em; }
  h1 { margin-bottom: 24px; font-size: clamp(43px, 11.5vw, 62px); line-height: 1.04; letter-spacing: -.008em; }
  h2 { font-size: 32px; }
  h3 { font-size: 27px; }
  .lead-copy { font-size: 15px; line-height: 1.8; }
  .answer-capsule { margin-block: 24px; }
  .answer-capsule p { font-size: 13px; line-height: 1.85; }
  .answer-capsule-label { font-size: 9px; }
  .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .btn { min-height: 46px; padding: 13px 16px; }
  .hero-console .hero-grid:has(> .telemetry-summary-box)::before { background-image: url("/assets/viz/hv-hero-768.webp"); }
  .telemetry-box-header { gap: 14px; }
  .telemetry-box-header h2 { font-size: 26px !important; }
  .kpi-mini-grid { gap: 0 18px; }
  .kpi-tile { padding-block: 16px; }
  .kpi-tile-val { font-size: 29px; }
  .kpi-tile-label, .kpi-tile-sub { font-size: 9px; }
  .section-block { padding-block: 44px; }
  .section-header { gap: 24px; margin-bottom: 28px; }
  .section-header .btn { width: 100%; }
  .tracks-grid, .catalog-grid, .collections-matrix { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .catalog-card, .track-card { padding: 24px 21px; }
  .catalog-card h3 { font-size: 28px; }
  .collection-tile { padding-block: 24px; }
  .track-metrics { gap: 16px 10px; }
  .metric-value { font-size: 25px; }
  .metric-label { font-size: 9px; }
  .workbench-tabs { padding: 0 16px; }
  .wb-tab { flex-basis: 100%; padding: 16px 8px; font-size: 12px; border-bottom: 1px solid #384144; }
  .wb-tab.active { border-bottom: 2px solid var(--accent-orange); }
  .workbench-pane { padding: 25px 18px; }
  .workbench-pane.active { gap: 30px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-field label { font-size: 10px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 12px; }
  .wb-readout-row { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .wb-readout-val { font-size: 32px; }
  .svg-chart-frame { padding: 6px; }
  .formula-box { padding: 15px; font-size: 11px; }
  .table-wrap .spec-table { min-width: 580px; }
  table.spec-table th, table.spec-table td { padding: 15px 13px; }
  .telemetry-summary-box .spec-table { table-layout: fixed; }
  .telemetry-summary-box .spec-table th, .telemetry-summary-box .spec-table td { padding: 14px 10px 14px 0; font-size: 11px; }
  .telemetry-summary-box .spec-table th { font-size: 9px; }
  .section-block > .widescreen-shell > .wb-controls > p { font-size: 15px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; margin-bottom: 40px; }
  .footer-title { margin-bottom: 17px; font-size: 25px; }
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 13px; }
  .disclaimer-banner { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
