/* Here2Win Slot Telemetry Lab (here2wingames.ca) — Visual System: 3D Telemetry Lab */
:root {
  --bg-chassis: #0C0E12;
  --bg-plate: #13171E;
  --bg-well: #080A0E;
  --bg-cap: #1D232F;
  --ink-hi: #ECEFF4;
  --ink-mid: #98A2B3;
  --ink-lo: #667085;
  --etch: rgba(236, 239, 244, 0.09);
  --etch-hi: rgba(236, 239, 244, 0.22);
  --volt: #C8FF2E;
  --volt-dim: rgba(200, 255, 46, 0.12);
  --amber: #FF6B1A;
  --amber-dim: rgba(255, 107, 26, 0.14);
  --cyan: #38BDF8;
  --cyan-dim: rgba(56, 189, 248, 0.13);

  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;

  --gutter: clamp(1rem, 2.4vw, 2.75rem);
  --container: min(92vw, 1680px);
  --ceiling: 1920px;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg-chassis);
  color: var(--ink-hi);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  background: var(--bg-chassis);
  color: var(--ink-hi);
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
}

/* Bead-blasted anodized titanium micro-grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
section { scroll-margin-top: 74px; }
.shell { width: var(--container); max-width: calc(var(--ceiling) - 3rem); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Sticky Top Hardware Rail */
.lab-rail {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--etch);
}
.lab-rail-inner {
  width: var(--container);
  max-width: calc(var(--ceiling) - 3rem);
  margin-inline: auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink-hi);
  min-width: 0;
  flex-shrink: 1;
}
.lab-badge {
  padding: 0.24rem 0.5rem;
  border-radius: 6px;
  background: var(--volt);
  color: #090B0E;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.lab-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-right: 0.06em;
  white-space: nowrap;
}
.lab-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.lab-nav a {
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mid);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease-snap);
  white-space: nowrap;
}
.lab-nav a:hover,
.lab-nav a[aria-current="page"] {
  color: var(--volt);
  border-color: var(--etch-hi);
  background: var(--bg-plate);
}
.rpm-readout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-mid);
  padding: 0.36rem 0.7rem;
  border-radius: 8px;
  background: var(--bg-well);
  border: 1px solid var(--etch);
  white-space: nowrap;
}
.rpm-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.68rem;
  border-radius: 8px;
  border: 1px solid var(--etch-hi);
  background: var(--bg-plate);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--etch);
  background: #0E1117;
  padding: 1rem var(--gutter) 1.35rem;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.mobile-drawer a {
  display: block;
  padding: 0.68rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-plate);
  border: 1px solid var(--etch);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-hi);
  text-decoration: none;
}
.mobile-drawer a:hover { border-color: var(--volt); color: var(--volt); }

/* Breadcrumbs */
.crumb-bar {
  border-bottom: 1px solid var(--etch);
  background: rgba(8, 10, 14, 0.65);
  padding: 0.65rem 0;
}
.crumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-lo);
}
.crumb-list a {
  color: var(--ink-mid);
  text-decoration: none;
}
.crumb-list a:hover { color: var(--volt); text-decoration: underline; }
.crumb-sep { color: var(--ink-lo); }
.crumb-cur { color: var(--volt); }

/* Etch labels & Safe Syne 800 Display Headings (zero glyph clipping!) */
.etch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--volt);
}
.cockpit-h1 {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.1vw, 3.95rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink-hi);
  padding-right: 0.08em;
  overflow-wrap: break-word;
}
.cockpit-h1 span {
  color: var(--volt);
  display: block;
}
.page-h1 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.75vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink-hi);
  padding-right: 0.08em;
  overflow-wrap: break-word;
}
.sec-h2 {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.38rem, 2.3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: var(--ink-hi);
  padding-right: 0.06em;
  overflow-wrap: break-word;
}
.card-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-hi);
  padding-right: 0.05em;
}

/* Home Split Hardware Cockpit (centered at 1920px ceiling) */
.cockpit-band {
  border-bottom: 1px solid var(--etch);
  background: var(--bg-chassis);
}
.cockpit {
  max-width: var(--ceiling);
  margin-inline: auto;
  min-height: calc(88svh - 66px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.cockpit-left {
  grid-column: 1 / span 6;
  padding: clamp(2.2rem, 4.5vw, 4.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border-right: 1px solid var(--etch);
}
.cockpit-lead {
  margin-top: 1.2rem;
  color: var(--ink-mid);
  font-size: clamp(0.98rem, 1.08vw, 1.12rem);
  max-width: 58ch;
  line-height: 1.65;
}
.cockpit-lead a, .prose p a {
  color: var(--volt);
  text-decoration: underline;
  text-decoration-color: rgba(200, 255, 46, 0.45);
  text-underline-offset: 3px;
  font-weight: 500;
}
.cockpit-lead a:hover, .prose p a:hover {
  text-decoration-color: var(--volt);
}

/* Volatility Mode Selector */
.mode-console {
  padding: 1.2rem;
  border-radius: 16px;
  background: var(--bg-plate);
  border: 1px solid var(--etch);
}
.mode-console-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-lo);
  margin-bottom: 0.75rem;
}
.vol-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.vol-btn {
  padding: 0.8rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--etch);
  background: var(--bg-well);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s var(--ease-snap);
}
.vol-btn:hover { border-color: var(--etch-hi); color: var(--ink-hi); }
.vol-btn[aria-pressed="true"] {
  background: var(--volt-dim);
  border-color: var(--volt);
  color: var(--ink-hi);
}
.vol-btn[data-vol="extreme"][aria-pressed="true"] {
  background: var(--amber-dim);
  border-color: var(--amber);
}
.vol-btn strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
  color: inherit;
}

/* Right Cockpit 3D Stage */
.cockpit-stage {
  grid-column: 7 / span 6;
  position: relative;
  background: radial-gradient(circle at 50% 48%, #181E29 0%, #090B0E 78%);
  min-height: 480px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.stage-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  mix-blend-mode: screen;
  pointer-events: none;
}
#gyro-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  cursor: grab;
}
#gyro-3d:active { cursor: grabbing; }
.corner-reticle {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-mid);
  pointer-events: none;
  padding: 0.4rem 0.62rem;
  background: rgba(8, 10, 14, 0.76);
  border: 1px solid var(--etch);
  border-radius: 6px;
}
.ret-tl { top: 16px; left: 16px; }
.ret-tr { top: 16px; right: 16px; color: var(--volt); }
.ret-bl { bottom: 16px; left: 16px; }
.ret-br { bottom: 16px; right: 16px; }

/* Inner Page Hero Split */
.hero-split-section {
  padding: clamp(2.4rem, 4.5vw, 4rem) 0;
  border-bottom: 1px solid var(--etch);
}
.hero-split-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  align-items: center;
}
.hero-copy-col { grid-column: 1 / span 6; }
.hero-visual-col { grid-column: 7 / span 6; }
.blueprint-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--etch-hi);
  background: var(--bg-plate);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.blueprint-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* KPI Strip & Spotlight Hardware Cards */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.kpi-cell {
  padding: 0.88rem 1rem;
  border-radius: 12px;
  background: var(--bg-plate);
  border: 1px solid var(--etch);
}
.kpi-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ink-lo);
  text-transform: uppercase;
}
.kpi-cell strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.12rem;
  color: var(--ink-hi);
  font-variant-numeric: tabular-nums;
}

.lab-section {
  padding: clamp(3.4rem, 5.5vw, 5.6rem) 0;
  border-bottom: 1px solid var(--etch);
}
.sec-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Bento Simulator & Oscilloscope */
.sim-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4rem;
}
.sim-controls {
  grid-column: 1 / span 5;
  background: var(--bg-plate);
  border: 1px solid var(--etch);
  border-radius: 18px;
  padding: clamp(1.3rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}
.sim-oscilloscope {
  grid-column: 6 / span 7;
  background: var(--bg-well);
  border: 1px solid var(--etch);
  border-radius: 18px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}
.slider-group { display: flex; flex-direction: column; gap: 0.4rem; }
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-mid);
}
.slider-val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--volt);
}
input[type="range"].hw-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--bg-well);
  border: 1px solid var(--etch);
  outline: none;
}
input[type="range"].hw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--volt);
  border: 2px solid #090B0E;
  cursor: pointer;
}
select.hw-select, input[type="search"].hw-input, input[type="number"].hw-input {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--etch-hi);
  background: var(--bg-well);
  color: var(--ink-hi);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}
select.hw-select:focus, input.hw-input:focus { border-color: var(--volt); }

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--etch);
}
.preset-chip {
  border: 1px solid var(--etch);
  background: var(--bg-well);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover, .preset-chip[aria-pressed="true"] {
  border-color: var(--volt);
  color: var(--ink-hi);
  background: var(--volt-dim);
}
.reseed-btn {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--volt);
  background: var(--volt);
  color: #090B0E;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}
.reseed-btn:hover { filter: brightness(1.06); }
.reseed-btn:active { transform: scale(0.98); }

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  background: #06080B;
  border: 1px solid var(--etch);
  overflow: hidden;
}
.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.osc-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-mid);
}

/* Horizontal Pinned Specimen Deck */
.deck-pin-wrap {
  border-bottom: 1px solid var(--etch);
  padding: clamp(3.2rem, 5.5vw, 5rem) 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0C0E12 0%, #10141C 100%);
}
.deck-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.85rem;
}
.deck-progress-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--volt);
}
.deck-bar-outer {
  width: 140px;
  height: 4px;
  background: var(--etch);
  border-radius: 99px;
  overflow: hidden;
}
.deck-bar-inner {
  height: 100%;
  width: calc(max(0.14, var(--deck-progress, 0.14)) * 100%);
  background: var(--volt);
}
.specimen-rail-viewport {
  max-width: var(--ceiling);
  margin-inline: auto;
  overflow: hidden;
}
.specimen-track {
  display: flex;
  gap: 1.35rem;
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.spec-card {
  width: min(410px, 84vw);
  flex-shrink: 0;
  background: var(--bg-plate);
  border: 1px solid var(--etch);
  border-radius: 18px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.spec-card-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--etch);
  aspect-ratio: 16 / 9;
}
.spec-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.spec-id { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-lo); }
.rtp-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.18rem 0.52rem;
  border-radius: 6px;
  background: var(--volt-dim);
  color: var(--volt);
  border: 1px solid rgba(200, 255, 46, 0.3);
}
.rtp-pill.is-warn {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(255, 107, 26, 0.35);
}
.spec-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--etch);
  font-family: var(--font-mono);
}
.spec-kpis small { display: block; font-size: 0.64rem; color: var(--ink-lo); }
.spec-kpis strong { font-size: 0.92rem; color: var(--ink-hi); }
.spec-actions { display: flex; gap: 0.5rem; }
.spec-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--etch-hi);
  background: var(--bg-cap);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-decoration: none;
  cursor: pointer;
}
.spec-btn:hover { background: var(--volt); color: #090B0E; border-color: var(--volt); }

/* Spotlight Grid & Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.hw-card {
  position: relative;
  background: var(--bg-plate);
  border-radius: 16px;
  border: 1px solid var(--etch);
  padding: 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}
.hw-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(200, 255, 46, 0.11), transparent 45%);
  pointer-events: none;
}
.hw-card p { color: var(--ink-mid); font-size: 0.94rem; }
.hw-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--volt);
  text-decoration: none;
}
.hw-card-link:hover { text-decoration: underline; }

/* Prose & Analytical Columns */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.prose-main { grid-column: 1 / span 7; }
.prose-side { grid-column: 8 / span 5; }
.prose p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}
.prose p strong { color: var(--ink-hi); }
.prose ul {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.55rem;
}
.prose li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-mid);
  font-size: 0.95rem;
}
.prose li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--volt);
}

/* Filter Toolbar & Calibration Table */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.flt-btn {
  padding: 0.45rem 0.82rem;
  border-radius: 8px;
  border: 1px solid var(--etch);
  background: var(--bg-plate);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  cursor: pointer;
}
.flt-btn[aria-pressed="true"] {
  background: var(--volt);
  color: #090B0E;
  border-color: var(--volt);
  font-weight: 700;
}
.table-shell {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--etch);
  border-radius: 16px;
  overflow-x: auto;
  background: var(--bg-plate);
  -webkit-overflow-scrolling: touch;
}
table.rtp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.rtp-table th, .rtp-table td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--etch);
  font-size: 0.88rem;
}
.rtp-table th {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-lo);
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  background: var(--bg-well);
  white-space: nowrap;
}
.rtp-table th:hover { color: var(--volt); }
.rtp-table tr:last-child td { border-bottom: 0; }
.rtp-table tbody tr:hover { background: rgba(200, 255, 46, 0.04); }
.rtp-table a.slot-row-link {
  color: var(--volt);
  text-decoration: none;
  font-weight: 600;
}
.rtp-table a.slot-row-link:hover { text-decoration: underline; }
.bar-gauge {
  display: inline-block;
  width: 64px;
  height: 6px;
  border-radius: 99px;
  background: var(--bg-well);
  overflow: hidden;
  vertical-align: middle;
  margin-right: 0.45rem;
}
.bar-gauge > i {
  display: block;
  height: 100%;
  background: var(--volt);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
}
details.faq-item {
  background: var(--bg-plate);
  border: 1px solid var(--etch);
  border-radius: 14px;
  padding: 1.05rem 1.25rem;
}
details.faq-item[open] { border-color: var(--etch-hi); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-hi);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--volt);
  font-size: 1.15rem;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
.faq-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--etch);
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Structured Footer */
.lab-footer {
  border-top: 1px solid var(--etch);
  padding: 3rem 0 3.5rem;
  background: var(--bg-well);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--etch);
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--volt);
  margin-bottom: 0.85rem;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.86rem;
  color: var(--ink-mid);
  text-decoration: none;
}
.footer-links a:hover { color: var(--volt); text-decoration: underline; }
.footer-meta {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-lo);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .lab-nav, .rpm-readout { display: none; }
  .nav-toggle { display: inline-flex; }
  .cockpit-left, .cockpit-stage,
  .hero-copy-col, .hero-visual-col,
  .sim-controls, .sim-oscilloscope,
  .prose-main, .prose-side { grid-column: 1 / -1; }
  .cockpit-left { border-right: 0; border-bottom: 1px solid var(--etch); }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen-rail-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .spec-card { scroll-snap-align: start; }
}

@media (max-width: 680px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vol-switches, .card-grid-3, .card-grid-4, .footer-grid, .mobile-drawer-grid {
    grid-template-columns: 1fr;
  }
  .cockpit-stage, #gyro-3d { min-height: 360px; }
  .canvas-wrap { height: 240px; }
  .lab-brand { gap: 0.5rem; }
  .lab-brand-name {
    font-size: 0.70rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    white-space: normal;
    max-width: 165px;
  }
  .nav-toggle {
    padding: 0.38rem 0.56rem;
    font-size: 0.67rem;
  }
  .cockpit-h1 { font-size: clamp(1.48rem, 6.4vw, 1.95rem); }
  .page-h1 { font-size: clamp(1.36rem, 5.8vw, 1.85rem); }
  .sec-h2 { font-size: clamp(1.22rem, 5.1vw, 1.6rem); }
}
