/* ============================================================
   CABLESCOPE TDR — Industrial Brutalist / TE-Core Stylesheet
   ============================================================ */

/* --- CUSTOM FONTS --- */
/* Using Google Fonts: Geist Mono + Silkscreen (dot-matrix style) */

:root {
  --dead-grey: #E5E5E5;
  --signal-black: #1A1A1A;
  --warning-orange: #FF5C00;
  --mid-grey: #CCCCCC;
  --dark-grey: #999999;
  --light-grey: #F0F0F0;
  --grid-size: 20px;
  --border: 1px solid var(--signal-black);
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --font-dot: 'Silkscreen', 'Geist Mono', monospace;
  --snap-duration: 0.15s;
  --shadow-offset: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dead-grey);
  color: var(--signal-black);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- 20px GRID OVERLAY --- */
#grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(26,26,26,0.08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* --- SCANLINE TRANSITION --- */
.scanline {
  position: fixed;
  top: 0;
  left: -4px;
  width: 4px;
  height: 100vh;
  background: var(--warning-orange);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 12px var(--warning-orange), 0 0 30px rgba(255,92,0,0.3);
}

.scanline.active {
  opacity: 1;
  animation: scanline-sweep 0.4s cubic-bezier(0.25, 0, 0.25, 1) forwards;
}

@keyframes scanline-sweep {
  0% { left: -4px; opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100vw; opacity: 0; }
}

/* --- STATUS BAR (Top) --- */
#status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--signal-black);
  color: var(--dead-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 2px solid var(--warning-orange);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-family: var(--font-dot);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--warning-orange);
}

.status-divider {
  color: #555;
}

.status-tag {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}

.status-tag.blink {
  color: var(--warning-orange);
  animation: blink-pulse 1.5s ease-in-out infinite;
}

@keyframes blink-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.telemetry {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid #444;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* --- MAIN VIEWPORT --- */
#viewport {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  bottom: 48px;
  display: flex;
  z-index: 1;
}

/* --- TELEMETRY SIDEBAR --- */
#telemetry-panel {
  width: 140px;
  min-width: 140px;
  background: var(--signal-black);
  color: var(--dead-grey);
  border-right: var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  z-index: 10;
}

.tel-block {
  border: 1px solid #333;
  padding: 6px 8px;
}

.tel-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tel-value {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tel-value.accent {
  color: var(--warning-orange);
}

/* --- SLIDE CONTAINER --- */
#slide-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--snap-duration) ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-inner {
  width: 100%;
  height: 100%;
  padding: 30px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- SLIDE HEADERS --- */
.slide-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--signal-black);
  padding-bottom: 10px;
}

.slide-number {
  font-family: var(--font-dot);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--warning-orange);
  letter-spacing: -1px;
}

.slide-title {
  font-family: var(--font-dot);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* --- TITLE SLIDE --- */
.title-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.title-badge {
  font-size: 10px;
  letter-spacing: 3px;
  padding: 4px 16px;
  border: var(--border);
  text-transform: uppercase;
}

.title-main {
  font-family: var(--font-dot);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--signal-black);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--warning-orange);
}

.title-sub {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--warning-orange);
  text-transform: uppercase;
}

.title-desc {
  font-size: 13px;
  color: #666;
  max-width: 600px;
  line-height: 1.6;
}

.title-meta {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.meta-block {
  border: var(--border);
  padding: 8px 16px;
  text-align: left;
}

.meta-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 11px;
  font-weight: 600;
}

.title-visual {
  margin-top: 8px;
  border: var(--border);
  padding: 4px;
  background: var(--signal-black);
}

#title-waveform {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

.title-product {
  margin-top: 4px;
  max-width: 500px;
  border: var(--border);
  position: relative;
}

.title-product-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(0.8);
}

/* --- BODY TEXT --- */
.body-text {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 680px;
}

.highlight {
  color: var(--warning-orange);
  font-weight: 600;
}

/* --- TWO COLUMN LAYOUT --- */
.two-col {
  display: flex;
  gap: 30px;
  flex: 1;
}

.col-main {
  flex: 1.5;
}

.col-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- SPEC CARD --- */
.spec-card {
  border: var(--border);
  padding: 16px;
  background: var(--light-grey);
}

.spec-title {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px dashed #ccc;
}

.spec-row:last-child {
  border-bottom: none;
}

.accent {
  color: var(--warning-orange);
  font-weight: 600;
}

/* --- PROBLEM CARDS --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.problem-card {
  border: var(--border);
  padding: 20px;
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-card.solution-card {
  background: var(--signal-black);
  color: var(--dead-grey);
  border-color: var(--warning-orange);
}

.solution-card .highlight {
  color: var(--warning-orange);
}

.problem-icon {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--warning-orange);
}

.problem-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.problem-card p {
  font-size: 12px;
  line-height: 1.6;
  color: inherit;
}

/* --- DOMAIN --- */
.domain-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.domain-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.domain-card {
  border: var(--border);
  padding: 24px 40px;
  text-align: center;
  min-width: 400px;
}

.domain-card.primary {
  background: var(--signal-black);
  color: var(--dead-grey);
  border-width: 2px;
}

.domain-card.secondary {
  background: var(--light-grey);
}

.domain-tag {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--warning-orange);
  margin-bottom: 8px;
}

.domain-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.domain-code {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.domain-connector {
  display: flex;
  justify-content: center;
}

.domain-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 600px;
}

.keyword {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: var(--border);
  background: var(--light-grey);
  text-transform: uppercase;
}

/* --- LITERATURE SURVEY --- */
.lit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.lit-card {
  border: var(--border);
  padding: 16px;
  background: var(--light-grey);
  position: relative;
}

.lit-card:last-child {
  grid-column: span 2;
}

.lit-num {
  font-family: var(--font-dot);
  font-size: 28px;
  font-weight: 700;
  color: var(--warning-orange);
  position: absolute;
  top: 10px;
  right: 14px;
  opacity: 0.3;
}

.lit-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.lit-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.formula {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--signal-black);
  color: var(--warning-orange);
  border: var(--border);
  display: inline-block;
  letter-spacing: 1px;
}

/* --- METHODOLOGY --- */
.method-phases {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex: 1;
  margin-bottom: 16px;
}

.phase-card {
  flex: 1;
  border: var(--border);
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
}

.phase-header {
  background: var(--signal-black);
  color: var(--dead-grey);
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.phase-num {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--warning-orange);
  font-weight: 700;
}

.phase-name {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.phase-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.phase-item {
  font-size: 11px;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}

.bullet {
  color: var(--warning-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.phase-connector {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: var(--warning-orange);
  font-weight: 700;
}

.method-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: var(--border);
  background: var(--light-grey);
}

.flow-node {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border: var(--border);
  background: #fff;
  letter-spacing: 0.5px;
}

.flow-node.accent-bg {
  background: var(--warning-orange);
  color: #fff;
  border-color: var(--warning-orange);
}

.flow-arrow {
  color: var(--warning-orange);
  font-weight: 700;
  font-size: 16px;
}

/* --- SYSTEM MODEL --- */
.system-body {
  gap: 16px;
}

.system-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.system-images.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.blueprint-frame {
  border: var(--border);
  background: var(--light-grey);
  overflow: hidden;
  position: relative;
  max-height: 280px;
}

.blueprint-label {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 6px 12px;
  background: var(--signal-black);
  color: var(--warning-orange);
  font-weight: 700;
}

.blueprint-img {
  width: 100%;
  height: 100%;
  display: block;
  filter: contrast(1.1) saturate(0.7);
  object-fit: cover;
}


.circuit-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: var(--border);
  background: var(--light-grey);
  flex-wrap: wrap;
}

.stage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px 12px;
  border: var(--border);
  background: #fff;
}

.stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--warning-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-arrow {
  color: var(--warning-orange);
  font-weight: 700;
}

/* --- MODEL DETAIL CARDS (Slide 7) --- */
.model-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.model-card {
  border: var(--border);
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
}

.model-card-header {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 8px 12px;
  background: var(--signal-black);
  color: var(--warning-orange);
}

.model-card-body {
  padding: 14px;
  flex: 1;
}

.model-card-body p {
  font-size: 12px;
  line-height: 1.7;
  color: #555;
}

/* --- SHOWCASE SLIDES (Full-bleed image) --- */
.showcase-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-frame {
  border: var(--border);
  background: var(--signal-black);
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.showcase-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 8px 14px;
  background: var(--signal-black);
  color: var(--warning-orange);
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: calc(100vh - 180px);
  object-fit: contain;
}

/* --- COMPONENTS --- */
.comp-category {
  margin-bottom: 14px;
}

.comp-cat-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--warning-orange);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--signal-black);
}

.comp-item {
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comp-dot {
  width: 4px;
  height: 4px;
  background: var(--signal-black);
  display: inline-block;
  flex-shrink: 0;
  margin-top: 6px;
}

.pcb-showcase {
  border: var(--border);
  background: var(--signal-black);
  overflow: hidden;
}

.pcb-showcase.small {
  max-height: 200px;
  overflow: hidden;
}

.pcb-showcase.small .pcb-img {
  height: 100%;
  object-fit: cover;
}

.pcb-img {
  width: 100%;
  height: auto;
  display: block;
}

.pcb-label {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 6px 10px;
  color: var(--warning-orange);
  text-align: center;
  font-weight: 700;
}

/* --- APPLICATIONS --- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.app-card {
  border: var(--border);
  padding: 20px;
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--signal-black);
}

.app-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.app-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

/* --- BILL OF MATERIALS --- */
.bom-note {
  font-size: 10px;
  color: #888;
  margin-bottom: 12px;
  font-style: italic;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bom-table th {
  font-size: 10px;
  letter-spacing: 2px;
  text-align: left;
  padding: 8px 12px;
  background: var(--signal-black);
  color: var(--dead-grey);
  border: var(--border);
  font-weight: 600;
}

.bom-table td {
  padding: 8px 12px;
  border: var(--border);
  background: var(--light-grey);
}

.bom-table tbody tr:hover {
  background: rgba(255, 92, 0, 0.05);
}

.bom-table tfoot td {
  font-weight: 700;
  background: var(--signal-black);
  color: var(--dead-grey);
  border-color: var(--warning-orange);
}

.total-cost {
  color: var(--warning-orange) !important;
  font-size: 14px !important;
}

.cost-compare {
  border: var(--border);
  padding: 16px;
  background: var(--light-grey);
}

.compare-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-bar {
  height: 28px;
  border: var(--border);
  margin-bottom: 8px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 600;
}

.compare-bar.industry .bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(26,26,26,0.1) 4px,
    rgba(26,26,26,0.1) 8px
  );
}

.compare-bar.industry span {
  position: relative;
  z-index: 1;
}

.compare-bar.ours .bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2%;
  background: var(--warning-orange);
}

.compare-bar.ours span {
  position: relative;
  z-index: 1;
  color: var(--warning-orange);
}

.savings {
  font-size: 24px;
  font-weight: 700;
  color: var(--warning-orange);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 2px;
}

/* --- REFERENCES --- */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ref-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border: var(--border);
  background: var(--light-grey);
  align-items: baseline;
}

.ref-num {
  font-weight: 700;
  color: var(--warning-orange);
  font-size: 12px;
  flex-shrink: 0;
  width: 28px;
}

.ref-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.ref-footer {
  margin-top: auto;
  padding-top: 20px;
}

.end-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  border: 2px solid var(--signal-black);
  text-align: center;
}

.end-logo {
  font-family: var(--font-dot);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--warning-orange);
}

.end-text {
  font-size: 11px;
  letter-spacing: 3px;
  color: #888;
}

/* --- NAVIGATION BAR (Bottom) --- */
#nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--signal-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-top: 2px solid var(--warning-orange);
}

.nav-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dead-grey);
  background: transparent;
  border: 1px solid #555;
  padding: 6px 18px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--snap-duration) ease;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 rgba(255,92,0,0.3);
}

.nav-btn:hover {
  background: var(--warning-orange);
  color: var(--signal-black);
  border-color: var(--warning-orange);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 rgba(255,92,0,0.6);
}

.nav-btn:active {
  box-shadow: 0 0 0 transparent;
  transform: translate(var(--shadow-offset), var(--shadow-offset));
}

.nav-center {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
}

.slide-track {
  width: 100%;
  height: 4px;
  background: #333;
  border: 1px solid #555;
  position: relative;
  cursor: pointer;
}

.track-thumb {
  position: absolute;
  top: -4px;
  left: 0;
  width: 14px;
  height: 12px;
  background: var(--warning-orange);
  border: 1px solid var(--dead-grey);
  transition: left var(--snap-duration) ease;
}

.slide-pips {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 5px;
}

.pip {
  width: 6px;
  height: 6px;
  border: 1px solid #555;
  background: transparent;
  cursor: pointer;
  transition: all var(--snap-duration) ease;
}

.pip.active {
  background: var(--warning-orange);
  border-color: var(--warning-orange);
}

.pip:hover {
  border-color: var(--warning-orange);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--signal-black);
}
::-webkit-scrollbar-thumb {
  background: #555;
  border: 1px solid #333;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--warning-orange);
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 1200px) {
  #telemetry-panel {
    width: 120px;
    min-width: 120px;
  }
  .title-main {
    font-size: 56px;
    letter-spacing: 8px;
  }
}

@media (max-width: 900px) {
  #telemetry-panel {
    display: none;
  }
  .two-col {
    flex-direction: column;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .system-images {
    grid-template-columns: 1fr;
  }
  .lit-grid {
    grid-template-columns: 1fr;
  }
  .lit-card:last-child {
    grid-column: span 1;
  }
  .method-phases {
    flex-direction: column;
  }
  .phase-connector {
    transform: rotate(90deg);
  }
  .title-main {
    font-size: 40px;
    letter-spacing: 4px;
  }
  .system-images.three-col {
    grid-template-columns: 1fr;
  }
  .model-details {
    grid-template-columns: 1fr;
  }
}

/* --- CRT SCANLINE OVERLAY --- */
#slide-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
}

/* --- SELECTION --- */
::selection {
  background: var(--warning-orange);
  color: #fff;
}

/* --- SLIDE ENTRANCE ANIMATIONS --- */
.slide.active .slide-header {
  animation: slide-in-header 0.2s ease-out;
}

.slide.active .slide-body {
  animation: slide-in-body 0.25s ease-out;
}

@keyframes slide-in-header {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-body {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HOVER STATES --- */
.problem-card:hover,
.lit-card:hover,
.app-card:hover {
  border-color: var(--warning-orange);
  transition: border-color var(--snap-duration) ease;
}

.keyword:hover {
  background: var(--warning-orange);
  color: #fff;
  border-color: var(--warning-orange);
  transition: all var(--snap-duration) ease;
}

.spec-row:hover {
  background: rgba(255, 92, 0, 0.05);
}

.ref-item:hover {
  border-color: var(--warning-orange);
  transition: border-color var(--snap-duration) ease;
}

.stage:hover {
  border-color: var(--warning-orange);
  transition: border-color var(--snap-duration) ease;
}

/* --- FOCUS STYLES --- */
.nav-btn:focus-visible {
  outline: 2px solid var(--warning-orange);
  outline-offset: 2px;
}

/* --- PRINT --- */
@media print {
  #status-bar, #nav-bar, #telemetry-panel, #grid-overlay, .scanline { display: none; }
  .slide { position: relative; opacity: 1; visibility: visible; page-break-after: always; }
  #viewport { position: static; }
  #slide-container { position: static; }
}
