:root {
  --bg-void: #0d0b09;
  --bg-ledger: #16120f;
  --bg-inset: #1e1813;
  --bg-hover: #251e18;
  --ink-parchment: #ede3d0;
  --ink-body: #d3c7b4;
  --ink-ash: #9d8f7b;
  --brass: #c89b4b;
  --brass-soft: rgba(200, 155, 75, 0.22);
  --brass-line: rgba(200, 155, 75, 0.14);
  --crimson: #a82824;
  --crimson-bright: #cf3b35;
  --crimson-wash: rgba(168, 40, 36, 0.16);
  --fresh: #6ea87a;
  --fresh-wash: rgba(110, 168, 122, 0.14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-void);
  color: var(--ink-parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink-body);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 3.75rem;
  isolation: isolate;
  border-bottom: 1px solid var(--brass-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.04) saturate(0.95);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 11, 9, 0.42) 0%, rgba(13, 11, 9, 0.62) 48%, rgba(13, 11, 9, 0.96) 92%, #0d0b09 100%),
    linear-gradient(90deg, rgba(13, 11, 9, 0.88) 0%, rgba(13, 11, 9, 0.52) 55%, rgba(13, 11, 9, 0.12) 100%);
}

.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0;
  z-index: 2;
}

.hero-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-parchment);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-star {
  color: var(--brass);
  font-size: 1.1rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-links a {
  text-decoration: none;
  color: var(--ink-body);
  font-weight: 500;
  transition: color 150ms ease;
}

.topbar-links a:hover {
  color: var(--brass);
}

.hero-content {
  max-width: 720px;
}

.hero-dedication {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.78rem;
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-sm);
  background: rgba(13, 11, 9, 0.68);
  color: var(--brass);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: var(--ink-parchment);
}

.hero-lead {
  margin: 0 0 1.85rem;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--crimson);
  border-color: var(--crimson-bright);
  color: #fff8f0;
}

.btn-primary:hover {
  background: var(--crimson-bright);
}

.btn-ledger {
  background: rgba(22, 18, 15, 0.82);
  border-color: var(--brass-soft);
  color: var(--ink-parchment);
}

.btn-ledger:hover {
  border-color: var(--brass);
  background: var(--bg-inset);
}

/* ==================== MACHINE TELEMETRY PLATE ==================== */
.telemetry-section {
  background: var(--bg-ledger);
  border-bottom: 1px solid var(--brass-line);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.telemetry-cell {
  padding: 1.35rem 1.2rem;
  border-right: 1px solid var(--brass-line);
}

.telemetry-cell:last-child {
  border-right: 0;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-parchment);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.telemetry-label {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: var(--ink-ash);
  line-height: 1.38;
}

/* ==================== SECTION HEADERS ==================== */
.band {
  padding: 4.25rem 0;
  border-bottom: 1px solid var(--brass-line);
}

.band-ledger {
  background: var(--bg-ledger);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--brass-soft);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-parchment);
}

.section-head p {
  margin: 0.45rem 0 0;
  max-width: 64ch;
  color: var(--ink-ash);
  font-size: 1.02rem;
}

/* ==================== LIVE PROOF GALLERY ==================== */
.proof-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.proof-stack {
  display: grid;
  gap: 1.25rem;
}

.proof-figure {
  position: relative;
  margin: 0;
  background: var(--bg-ledger);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proof-trigger {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-align: left;
}

.proof-figure--main .proof-trigger {
  height: 100%;
  min-height: 360px;
}

.proof-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.proof-trigger:hover img {
  transform: scale(1.02);
}

.proof-zoom-pill {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(13, 11, 9, 0.78);
  border: 1px solid var(--brass-soft);
  color: var(--ink-parchment);
  font-size: 0.82rem;
  font-weight: 600;
}

.proof-caption {
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--brass-line);
}

.proof-caption strong {
  display: block;
  color: var(--ink-parchment);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.proof-caption span {
  display: block;
  color: var(--ink-ash);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ==================== VIDEO THEATER ==================== */
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass-line);
  background: var(--bg-inset);
  color: var(--ink-body);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.chip:hover {
  border-color: var(--brass);
  color: var(--ink-parchment);
}

.chip.is-active {
  background: var(--crimson);
  border-color: var(--crimson-bright);
  color: #fff8f0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.video-card {
  background: var(--bg-void);
  border: 1px solid var(--brass-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #080706;
  overflow: hidden;
}

.video-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter 200ms ease, transform 280ms ease;
}

.video-thumb-btn:hover img {
  filter: brightness(1);
  transform: scale(1.025);
}

.play-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(168, 40, 36, 0.92);
  border: 2px solid rgba(237, 227, 208, 0.72);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  transition: transform 160ms ease, background-color 160ms ease;
}

.video-thumb-btn:hover .play-seal {
  transform: translate(-50%, -50%) scale(1.07);
  background: var(--crimson-bright);
}

.play-seal svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: #fff8f0;
}

.video-channel-tag {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(13, 11, 9, 0.82);
  color: var(--ink-parchment);
  font-size: 0.76rem;
  font-weight: 600;
}

.video-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.video-mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.video-mod-name {
  color: var(--brass);
  font-weight: 600;
}

.video-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-parchment);
}

.video-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-ash);
  flex: 1;
}

.video-foot {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.link-subtle {
  color: var(--ink-parchment);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 1px;
}

.link-subtle:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

/* ==================== STICKY CATALOG NAV & CONTROLS ==================== */
.catalog-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 11, 9, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brass-soft);
  padding: 0.9rem 0;
}

.controls-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.search-wrap {
  position: relative;
  flex: 1 1 300px;
}

.search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-ash);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.66rem 2.3rem 0.66rem 2.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass-soft);
  background: var(--bg-inset);
  color: var(--ink-parchment);
  font: inherit;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: var(--ink-ash);
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-ash);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.search-clear[hidden] {
  display: none;
}

.search-clear:hover {
  color: var(--ink-parchment);
  background: var(--bg-hover);
}

.mode-group {
  display: inline-flex;
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  padding: 2px;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--ink-body);
  padding: 0.46rem 0.85rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.mode-btn.is-active {
  background: var(--crimson);
  color: #fff8f0;
}

.mode-btn[data-mode="fresh"].is-active {
  background: #2f5e3b;
  color: #eef9f0;
}

.result-counter {
  font-size: 0.88rem;
  color: var(--ink-ash);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cat-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass-line);
  background: var(--bg-ledger);
  color: var(--ink-body);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--brass);
  color: var(--ink-parchment);
}

.cat-tab.is-active {
  background: var(--brass);
  border-color: var(--brass);
  color: #16100a;
}

.cat-tab-count {
  font-size: 0.78rem;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

/* ==================== MOD CATALOG ==================== */
.catalog-body {
  padding: 2.5rem 0 4.5rem;
}

.cat-group {
  margin-bottom: 3.25rem;
}

.cat-group:last-child {
  margin-bottom: 0;
}

.cat-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--brass-soft);
}

.cat-group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--ink-parchment);
}

.cat-group-sub {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-ash);
}

.cat-group-count {
  font-size: 0.86rem;
  color: var(--brass);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.mod-card {
  position: relative;
  background: var(--bg-ledger);
  border: 1px solid var(--brass-line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mod-card.is-featured {
  border-left: 3px solid var(--crimson-bright);
  background: linear-gradient(135deg, rgba(168, 40, 36, 0.08) 0%, var(--bg-ledger) 42%);
}

.mod-card.is-fresh {
  border-color: rgba(110, 168, 122, 0.35);
}

.mod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.mod-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink-parchment);
}

.mod-nexus-id {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
  text-decoration: none;
  padding: 0.14rem 0.48rem;
  border-radius: 3px;
  border: 1px solid var(--brass-soft);
  background: rgba(200, 155, 75, 0.07);
  font-variant-numeric: tabular-nums;
}

.mod-nexus-id:hover {
  background: var(--brass);
  color: #16100a;
}

.mod-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.52;
  color: var(--ink-body);
  flex: 1;
}

.mod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(200, 155, 75, 0.09);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-inset);
  color: var(--ink-ash);
  border: 1px solid var(--brass-line);
}

.badge--featured {
  background: var(--crimson-wash);
  border-color: rgba(207, 59, 53, 0.4);
  color: #f3b5b2;
}

.badge--fresh {
  background: var(--fresh-wash);
  border-color: rgba(110, 168, 122, 0.45);
  color: #b4e2bd;
}

.badge--dotnet {
  background: rgba(200, 155, 75, 0.14);
  border-color: rgba(200, 155, 75, 0.35);
  color: #ebd09b;
}

.mod-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  font-size: 0.82rem;
}

.btn-inline-video {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 1px solid rgba(207, 59, 53, 0.45);
  background: var(--crimson-wash);
  color: #f7c7c4;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-inline-video:hover {
  background: var(--crimson);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-ledger);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--ink-parchment);
}

.empty-state p {
  margin: 0 0 1.25rem;
  color: var(--ink-ash);
}

/* ==================== 4-PHASE CAMPAIGN ROADMAP ==================== */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.phase-card {
  background: var(--bg-void);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brass);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--brass-line);
}

.phase-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink-parchment);
}

.phase-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-body);
  flex: 1;
}

.phase-highlights {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0 0;
  list-style: none;
  border-top: 1px solid var(--brass-line);
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-ash);
}

.phase-highlights li::before {
  content: "▪ ";
  color: var(--crimson-bright);
}

/* ==================== ENGINEERING FOOTER ==================== */
.engineering-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.eng-box {
  background: var(--bg-ledger);
  border: 1px solid var(--brass-line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.25rem;
}

.eng-box h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink-parchment);
}

.eng-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-ash);
  line-height: 1.55;
}

.site-footer {
  padding: 2.25rem 0 3rem;
  font-size: 0.88rem;
  color: var(--ink-ash);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==================== MODAL (VIDEO & LIGHTBOX) ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 6, 5, 0.88);
  backdrop-filter: blur(6px);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  width: min(100%, 980px);
  background: var(--bg-ledger);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--brass-line);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink-parchment);
}

.modal-close {
  border: 1px solid var(--brass-soft);
  background: var(--bg-inset);
  color: var(--ink-parchment);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.modal-close:hover {
  border-color: var(--brass);
}

.modal-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-frame-wrap iframe,
.modal-frame-wrap img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.modal-foot {
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-ash);
  border-top: 1px solid var(--brass-line);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .telemetry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .telemetry-cell {
    border-bottom: 1px solid var(--brass-line);
  }
  .video-grid,
  .mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cat-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .hero {
    min-height: 76vh;
    padding: 5.5rem 0 2.5rem;
  }
  .topbar-links {
    display: none;
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telemetry-cell {
    padding: 1rem 0.85rem;
  }
  .video-grid,
  .mod-grid,
  .phases-grid,
  .engineering-strip {
    grid-template-columns: 1fr;
  }
  .controls-top {
    flex-direction: column;
    align-items: stretch;
  }
  .mode-group {
    width: 100%;
    justify-content: space-between;
  }
  .mode-btn {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
