/* ==========================================================================
   VIEWVILLAGELISTLM | TECHNICAL HARDWARE LAB STYLESHEET
   COLOR PALETTE: STRICTLY NO ORANGE. NO BLUE.
   Pristine White Studio Aesthetic with Transparent Surfaces,
   High-Precision Red Accents (#dc2626 / #ef4444 / #b91c1c),
   Laser Coral & Matrix Emerald.
   ========================================================================== */

:root {
  /* Clean White & Crisp Neutral Foundation */
  --bg-white: #ffffff;
  --bg-warm-light: #fafafa;
  --bg-surface: #f4f4f6;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f0f0f3;
  --bg-panel: #ffffff;
  --bg-panel-hover: #ffffff;

  /* Red & Transparent Precision Palette - Strictly NO Orange, NO Blue */
  --red-primary: #dc2626;
  --red-light: #ef4444;
  --red-dark: #b91c1c;
  --red-subtle: transparent;
  --red-tint: rgba(220, 38, 38, 0.07);
  --red-glow: rgba(220, 38, 38, 0.18);

  /* Aliased system variables mapped directly to Red and Transparent */
  --amber-gold: var(--red-primary);
  --amber-gold-light: var(--red-light);
  --amber-gold-dark: var(--red-dark);
  --amber-gold-subtle: transparent;
  --amber-glow: var(--red-glow);

  --electric-orange: var(--red-dark);
  --electric-orange-light: var(--red-light);
  --electric-orange-subtle: transparent;

  --laser-coral: #e11d48;
  --laser-coral-light: #fb7185;
  --laser-coral-subtle: transparent;
  --laser-coral-glow: rgba(225, 29, 72, 0.18);

  --matrix-emerald: #059669;
  --matrix-emerald-light: #10b981;
  --matrix-emerald-subtle: #ecfdf5;
  --matrix-emerald-glow: rgba(5, 150, 105, 0.18);

  /* High Contrast Typography - Deep Graphite & Charcoal */
  --text-primary: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --text-on-dark: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e4e4e7;
  --border-medium: #d4d4d8;
  --border-strong: #a1a1aa;
  --border-accent: rgba(220, 38, 38, 0.45);

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-accent: 0 8px 24px -2px rgba(220, 38, 38, 0.22);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --glass-blur: blur(16px);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-white);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(220, 38, 38, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(225, 29, 72, 0.03) 0%, transparent 40%),
    radial-gradient(#e4e4e7 0.75px, transparent 0.75px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--text-primary);
}

/* Focus Utility */
:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  min-width: 0;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.brand-text,
.nav-link {
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: #09090b;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  color: #09090b;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  color: #18181b;
}

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--red-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--red-primary);
  text-decoration: underline;
}

/* ==========================================================================
   HEADER COMPONENT (Clean White Glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red-primary);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--red-primary);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--red-primary);
  border-radius: 2px;
}

.header-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE NAVIGATION TOGGLE (AUTHENTIC 3-DOT KEBAB DESIGN)
   ========================================================================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1002;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--red-tint);
  border-color: var(--red-primary);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

.nav-toggle[aria-expanded="true"] {
  background: #09090b;
  border-color: #09090b;
}

/* 3-Dot Elements */
.nav-toggle-bar,
.nav-toggle-dot {
  display: block;
  width: 5px;
  height: 5px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background-color 0.2s ease,
              width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar,
.nav-toggle[aria-expanded="true"] .nav-toggle-dot {
  background-color: #ffffff;
}

/* 3-Dot Open Morph */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1),
.nav-toggle[aria-expanded="true"] .nav-toggle-dot:nth-child(1) {
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2),
.nav-toggle[aria-expanded="true"] .nav-toggle-dot:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3),
.nav-toggle[aria-expanded="true"] .nav-toggle-dot:nth-child(3) {
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8125rem;
}

.btn-primary {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-neon {
  background: transparent;
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
}

.btn-neon:hover {
  background: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--red-tint);
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--red-primary);
  background: var(--red-tint);
}

.btn-block {
  width: 100%;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red-primary);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.7);
}

/* ==========================================================================
   HERO SECTION & 3D MODEL CAD INSPECTOR
   ========================================================================== */
.hero-section {
  padding-top: 56px;
  padding-bottom: 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-card {
  min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--red-primary);
  margin-bottom: 4px;
}

.hero-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Model Viewport */
.model-3d-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.model-title {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

.model-fps {
  color: var(--matrix-emerald);
  background: var(--matrix-emerald-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.model-viewport-container {
  position: relative;
  width: 100%;
  height: 330px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f7 100%);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

#device-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#device-3d-canvas:active {
  cursor: grabbing;
}

.model-overlay-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-medium);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--red-primary);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.model-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.model-control-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.model-control-btn:hover {
  color: var(--red-primary);
  border-color: var(--red-primary);
  background: var(--red-tint);
}

.model-control-btn.is-active {
  color: #ffffff;
  background: #09090b;
  border-color: #09090b;
}

.model-footnote {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   REAL HARDWARE PHOTOGRAPHY GALLERY SECTION
   ========================================================================== */
.section-lab-gallery {
  padding-top: 48px;
  padding-bottom: 56px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.gallery-item {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-primary);
}

.gallery-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e4e4e7;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.06);
}

.gallery-tag-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 9, 11, 0.88);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.gallery-caption-block {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ==========================================================================
   INTERACTIVE COMPARE MATRIX ENGINE
   ========================================================================== */
.section-matrix {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.section-head.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.compare-builder {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.selector-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.selector-field {
  flex: 1;
  min-width: 0;
}

.selector-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.device-select {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-select:focus {
  border-color: var(--red-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  outline: none;
}

.vs-indicator {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red-primary);
  padding-bottom: 12px;
}

.comparison-results {
  min-width: 0;
}

.comparative-head-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 16px;
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0.35);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.device-head-title {
  color: var(--red-primary);
  font-size: 1.125rem;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.metric-row:nth-child(even) {
  background: var(--bg-warm-light);
}

.metric-name {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-data {
  font-size: 0.9375rem;
  color: var(--text-primary);
  min-width: 0;
}

.metric-data strong {
  color: var(--red-primary);
}

/* ==========================================================================
   DATA GRID CARDS WITH REAL HARDWARE PHOTOGRAPHY
   ========================================================================== */
.section-cards {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.data-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.telemetry-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.telemetry-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-lg);
}

/* Card Visual Image Banner */
.card-media-banner {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #e4e4e7;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.telemetry-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-subtle);
  color: var(--red-primary);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Card Header: Data Grid Spec Block */
.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--bg-warm-light);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-cell:nth-child(2n) {
  border-right: none;
}

.stat-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.stat-cell.highlight-cell {
  background: var(--red-tint);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--red-primary);
  margin-bottom: 2px;
}

.stat-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Card Body */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--laser-coral);
  margin-bottom: 8px;
}

.card-title {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: 1.35rem;
}

.card-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  color: var(--text-secondary);
}

.card-specs-list {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-specs-list strong {
  color: var(--text-primary);
}

.card-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-cta:hover {
  text-decoration: underline;
  gap: 10px;
  color: var(--red-dark);
}

/* ==========================================================================
   COMPREHENSIVE FLEET TABLE
   ========================================================================== */
.section-table {
  padding-top: 64px;
  padding-bottom: 64px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
}

.telemetry-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.telemetry-table th,
.telemetry-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-table thead th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-medium);
}

.telemetry-table tbody tr:hover {
  background: var(--red-tint);
}

.table-link {
  font-weight: 700;
  color: var(--red-primary);
}

.table-plain {
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   AUDITING METHODOLOGY SECTION
   ========================================================================== */
.section-deep-dive {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.glass-container {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.methodology-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.methodology-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.methodology-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--red-primary);
  font-size: 0.75rem;
  top: 4px;
}

.deep-dive-card {
  background: var(--bg-warm-light);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lab-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red-primary);
}

.metric-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SUB-PAGE ARTICLE DOSSIERS WITH REAL IMAGERY
   ========================================================================== */
.subpage-article {
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 960px;
}

.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--red-primary);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--red-primary);
  font-weight: 700;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Article Hero Visual */
.article-hero-media {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  background: #e4e4e7;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  font-size: 0.78125rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

.article-media-caption strong {
  color: var(--red-primary);
}

/* Subpage Spec Data Grid Header */
.data-grid-header-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.spec-grid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--red-primary);
  margin-bottom: 2px;
}

.spec-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-block h2 {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.content-block p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-media-inline {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #e4e4e7;
  box-shadow: var(--shadow-sm);
}

.inline-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.inline-caption {
  padding: 12px 18px;
  font-size: 0.8125rem;
  background: var(--bg-white);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* Pros and Cons Matrix */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.pro-card,
.con-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.pro-card {
  border-left: 4px solid var(--matrix-emerald);
}

.con-card {
  border-left: 4px solid var(--laser-coral);
}

.pro-title {
  color: var(--matrix-emerald);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.con-title {
  color: var(--laser-coral);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.spec-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pro-card .spec-bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--matrix-emerald);
}

.con-card .spec-bullet-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--laser-coral);
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   LEGAL PAGES & COMPLIANCE
   ========================================================================== */
.legal-article {
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 880px;
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.legal-title {
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-section ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 8px;
}

/* ==========================================================================
   CONTACT PAGE & LAB FACILITY
   ========================================================================== */
.section-contact {
  padding-top: 40px;
  padding-bottom: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-heading {
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.telemetry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.req {
  color: var(--laser-coral);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  outline: none;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: var(--laser-coral);
  margin-top: 4px;
}

.is-invalid .form-input,
.is-invalid .form-select,
.is-invalid .form-textarea,
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--laser-coral);
  background-color: var(--laser-coral-subtle);
}

.is-invalid + .field-error,
.form-group.is-invalid .field-error {
  display: block;
}

.checkbox-group {
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--red-primary);
}

.checkbox-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.form-status {
  padding: 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-status.status-success {
  background: var(--matrix-emerald-subtle);
  border: 1px solid var(--matrix-emerald);
  color: var(--matrix-emerald);
  font-weight: 600;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.company-address {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-methods {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}

.method-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.method-val {
  color: var(--red-primary);
  font-weight: 700;
}

/* Facility Photo Preview */
.facility-media-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
}

.facility-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.facility-caption {
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
}

/* Styled Static Map Block (Clean White / Light Technical Blueprint) */
.static-map-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.map-label {
  color: var(--red-primary);
  font-weight: 800;
}

.map-coords {
  color: var(--text-muted);
}

.static-map-canvas {
  width: 100%;
  height: 200px;
  background: #f8f8fa;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-footer {
  padding: 10px 16px;
  background: var(--bg-surface);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.methodology-sub {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #09090b;
  color: #a1a1aa;
  border-top: 1px solid var(--border-subtle);
  padding-top: 64px;
  padding-bottom: 40px;
  margin-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #a1a1aa;
}

.footer-company-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #71717a;
}

.footer-company-legal a {
  color: var(--red-light);
}

.footer-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
}

.footer-links a {
  color: #d4d4d8;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--red-light);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.6;
}

/* ==========================================================================
   COOKIE BANNER (Clean Light Toast Design)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--red-primary);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  padding: 20px 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-copy {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cookie-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.cookie-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Down to 320px, breakpoint below 400px)
   ========================================================================== */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 58px;
  }

  /* When the mobile menu is open, disable header blur to eliminate containing block constraints */
  .site-header.is-menu-open {
    background-color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Mobile Full-Screen Navigation Drawer */
  .site-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 16px 40px;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border-subtle);
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  .site-nav.is-visible {
    display: flex !important;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 8px;
    list-style: none;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 13px 16px;
    width: 100%;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .nav-link::after {
    content: "→";
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: var(--red-tint);
    border-color: rgba(220, 38, 38, 0.4);
    color: var(--red-primary);
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after {
    color: var(--red-primary);
    transform: translateX(3px);
  }

  .nav-link.is-active {
    background: var(--red-tint);
    border-color: var(--red-primary);
    color: var(--red-primary);
    font-weight: 800;
  }

  .nav-link.is-active::after {
    color: var(--red-primary);
    content: "●";
    font-size: 0.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .model-viewport-container {
    height: 280px;
  }

  .deep-dive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-hero-media {
    height: 260px;
  }

  .comparative-head-row,
  .metric-row {
    grid-template-columns: 140px 1fr 1fr;
    gap: 8px;
    padding: 12px 8px;
    font-size: 0.8125rem;
  }

  .data-grid-header-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-identity {
    grid-column: span 2;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .selector-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .vs-indicator {
    text-align: center;
    padding-bottom: 0;
  }
}

/* Breakpoint below 400px */
@media (max-width: 399px) {
  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    padding: 16px 12px 32px;
  }

  .nav-link {
    font-size: 0.9375rem;
    padding: 11px 14px;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .data-grid-header-card {
    grid-template-columns: 1fr;
  }

  .comparative-head-row,
  .metric-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-name {
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--border-subtle);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-identity {
    grid-column: span 1;
  }
}

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