/**
 * ==============================================================================
 * HC FORKLIFT INDONESIA — PRECISION ENGINEERING & TECHNICAL SPEC PORTAL
 * Subdomain: https://hcforklift.cepet.co.id/
 * Architecture: Obsidian Telemetry & Industrial Blueprint Design System (.hce-*)
 * Operated by: PT Cemerlang Perkasa Teknologi (cepet.co.id)
 * Responsive & Zero-CLS Engineered for Mobile/Tablet (Vertical & Horizontal)
 * ==============================================================================
 */

:root {
  /* Obsidian & Slate Engineering Palette */
  --hce-void: #060A12;
  --hce-obsidian: #0B1120;
  --hce-slate-900: #0F172A;
  --hce-slate-800: #1E293B;
  --hce-slate-700: #334155;
  --hce-slate-600: #475569;
  --hce-slate-500: #64748B;
  --hce-slate-400: #94A3B8;
  --hce-slate-300: #CBD5E1;
  --hce-slate-200: #E2E8F0;
  --hce-slate-100: #F1F5F9;
  --hce-canvas: #F4F7FB;
  --hce-paper: #FFFFFF;

  /* Industrial Signal Amber & CATL Lithium Emerald */
  --hce-amber: #F97316;
  --hce-amber-hover: #EA580C;
  --hce-amber-deep: #C2410C;
  --hce-amber-tint: #FFF7ED;
  --hce-amber-border: #FDBA74;

  --hce-emerald: #10B981;
  --hce-emerald-deep: #059669;
  --hce-emerald-tint: #ECFDF5;
  --hce-emerald-border: #6EE7B7;

  --hce-cyan: #0284C7;
  --hce-cyan-tint: #F0F9FF;
  --hce-cyan-border: #7DD3FC;

  /* Typography & Layout */
  --hce-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hce-font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  --hce-max-w: 1340px;
  --hce-radius-xs: 4px;
  --hce-radius-sm: 8px;
  --hce-radius-md: 12px;
  --hce-radius-lg: 16px;
  --hce-radius-xl: 22px;

  --hce-shadow-sm: 0 2px 6px rgba(6, 10, 18, 0.05);
  --hce-shadow-md: 0 8px 24px -4px rgba(6, 10, 18, 0.08);
  --hce-shadow-lg: 0 20px 40px -12px rgba(6, 10, 18, 0.16);
  --hce-shadow-glow: 0 8px 28px rgba(249, 115, 22, 0.28);
}

/* 1. RESET & ZERO-OVERFLOW / ZERO-CLS FOUNDATION */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--hce-font-sans);
  background-color: var(--hce-canvas);
  color: var(--hce-slate-800);
  line-height: 1.62;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
}

.hce-shell {
  width: 100%;
  max-width: var(--hce-max-w);
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .hce-shell {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1200px) {
  .hce-shell {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

/* 2. TELEMETRY TOPBAR (CLS-LOCKED HEIGHT) */
.hce-telemetry-bar {
  background: var(--hce-void);
  color: var(--hce-slate-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  min-height: 36px;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
}

.hce-telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.hce-telemetry-tickers {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.hce-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--hce-font-mono);
  font-size: 0.73rem;
  white-space: nowrap;
}

.hce-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hce-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.hce-telemetry-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.hce-telemetry-link {
  color: var(--hce-slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hce-telemetry-link:hover {
  color: var(--hce-amber);
}

/* 3. COMMAND HEADER & NAVIGATION (STICKY WITHOUT SHIFTING) */
.hce-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  width: 100%;
}

.hce-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.hce-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  max-width: 100%;
}

.hce-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hce-amber) 0%, var(--hce-amber-deep) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hce-font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.hce-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hce-brand-title {
  font-weight: 900;
  font-size: clamp(0.96rem, 1.4vw, 1.12rem);
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
}

.hce-brand-title span {
  color: var(--hce-amber);
}

.hce-brand-sub {
  font-family: var(--hce-font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hce-slate-400);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.hce-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.hce-nav-link {
  padding: 0.48rem 0.75rem;
  border-radius: var(--hce-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hce-slate-300);
  white-space: nowrap;
}

.hce-nav-link:hover,
.hce-nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.hce-nav-link.active {
  border-bottom: 2px solid var(--hce-amber);
}

.hce-header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hce-btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--hce-amber) 0%, var(--hce-amber-hover) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--hce-radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--hce-shadow-glow);
  text-align: center;
  line-height: 1.3;
}

.hce-btn-amber:hover {
  background: linear-gradient(135deg, var(--hce-amber-hover) 0%, var(--hce-amber-deep) 100%);
  color: #FFFFFF;
}

.hce-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--hce-radius-sm);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.hce-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--hce-amber);
}

.hce-mobile-trigger {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-radius: var(--hce-radius-sm);
  padding: 0.48rem 0.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Series Quick-Jump Subbar (Centered & Seamless Right-to-Left Auto-Slide) */
.hce-series-subbar {
  background: var(--hce-slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hce-series-marquee {
  width: 100%;
  max-width: var(--hce-container);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hce-series-pills {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: hceSeriesSlideRTL 34s linear infinite;
}

.hce-series-subbar:hover .hce-series-pills,
.hce-series-subbar:focus-within .hce-series-pills {
  animation-play-state: paused;
}

.hce-series-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-right: 0.55rem;
  flex-shrink: 0;
  white-space: nowrap;
}

@keyframes hceSeriesSlideRTL {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.hce-series-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--hce-slate-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hce-series-pill:hover {
  border-color: var(--hce-amber);
  background: rgba(249, 115, 22, 0.12);
  color: #FFFFFF;
}

.hce-series-pill code {
  font-family: var(--hce-font-mono);
  color: var(--hce-amber);
  font-size: 0.68rem;
}

/* 4. BENTO ENGINEERING HERO */
.hce-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.16), transparent 42%),
    radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.12), transparent 40%),
    linear-gradient(180deg, var(--hce-obsidian) 0%, var(--hce-slate-900) 100%);
  color: #FFFFFF;
  padding: clamp(2rem, 4.5vw, 4.25rem) 0;
  border-bottom: 1px solid var(--hce-slate-800);
  position: relative;
}

.hce-bento-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(1.5rem, 3.2vw, 2.75rem);
  align-items: center;
}

.hce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hce-font-mono);
  font-size: clamp(0.68rem, 1.1vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hce-amber);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  max-width: 100%;
  line-height: 1.35;
}

.hce-hero-title {
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.hce-hero-title .hce-highlight-amber {
  color: var(--hce-amber);
}

.hce-hero-title .hce-highlight-emerald {
  color: var(--hce-emerald);
}

.hce-hero-lead {
  font-size: clamp(0.9rem, 1.25vw, 1.06rem);
  color: var(--hce-slate-300);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* Instant Hero Model Finder Bar */
.hce-finder-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--hce-radius-md);
  padding: 0.45rem;
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin-bottom: 1.4rem;
}

.hce-finder-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 0.58rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.hce-finder-input::placeholder {
  color: var(--hce-slate-400);
}

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

.hce-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hce-kpi-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hce-radius-md);
  padding: 0.8rem 0.9rem;
}

.hce-kpi-val {
  font-family: var(--hce-font-mono);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: var(--hce-amber);
  line-height: 1.2;
}

.hce-kpi-lbl {
  font-size: 0.73rem;
  color: var(--hce-slate-300);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Right Telemetry Card in Hero (CLS-Locked Aspect Ratio) */
.hce-telemetry-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hce-radius-xl);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  box-shadow: var(--hce-shadow-lg);
  width: 100%;
}

.hce-telemetry-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
}

.hce-telemetry-tag {
  font-family: var(--hce-font-mono);
  font-size: 0.7rem;
  color: var(--hce-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hce-telemetry-visual {
  background: var(--hce-slate-900);
  border-radius: var(--hce-radius-md);
  padding: 0;
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 270px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  contain: layout paint;
}

.hce-telemetry-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

.hce-telemetry-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hce-tspec-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hce-radius-sm);
  padding: 0.55rem 0.75rem;
}

.hce-tspec-k {
  font-size: 0.68rem;
  color: var(--hce-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hce-tspec-v {
  font-family: var(--hce-font-mono);
  font-size: clamp(0.76rem, 1.1vw, 0.84rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0.12rem;
  overflow-wrap: break-word;
}

/* 5. SECTION CONTAINERS & HEADINGS */
.hce-section {
  padding: clamp(2.5rem, 5vw, 4.75rem) 0;
}

.hce-section-white {
  background: var(--hce-paper);
  border-top: 1px solid var(--hce-slate-200);
  border-bottom: 1px solid var(--hce-slate-200);
}

.hce-section-dark {
  background: var(--hce-obsidian);
  color: #FFFFFF;
}

.hce-sec-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hce-sec-head.center {
  text-align: center;
  align-items: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hce-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--hce-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hce-amber-deep);
  background: var(--hce-amber-tint);
  border: 1px solid var(--hce-amber-border);
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  width: fit-content;
}

.hce-sec-title {
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  font-weight: 900;
  color: var(--hce-slate-900);
  letter-spacing: -0.02em;
  line-height: 1.24;
  overflow-wrap: break-word;
}

.hce-section-dark .hce-sec-title {
  color: #FFFFFF;
}

.hce-sec-desc {
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  color: var(--hce-slate-600);
  max-width: 780px;
}

.hce-section-dark .hce-sec-desc {
  color: var(--hce-slate-300);
}

/* 6. INTERACTIVE TCO & ROI CALCULATOR CONSOLE */
.hce-tco-console {
  background: linear-gradient(145deg, var(--hce-slate-900) 0%, var(--hce-obsidian) 100%);
  color: #FFFFFF;
  border: 1px solid var(--hce-slate-700);
  border-radius: var(--hce-radius-xl);
  padding: clamp(1.15rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
  box-shadow: var(--hce-shadow-lg);
}

.hce-tco-controls {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hce-control-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hce-radius-md);
  padding: 1rem 1.15rem;
}

.hce-control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.hce-control-val {
  font-family: var(--hce-font-mono);
  color: var(--hce-amber);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.hce-range {
  width: 100%;
  accent-color: var(--hce-amber);
  cursor: pointer;
  height: 24px;
}

.hce-tco-results {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--hce-radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.hce-tco-saving-highlight {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
}

.hce-tco-saving-lbl {
  font-family: var(--hce-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hce-emerald);
  line-height: 1.35;
}

.hce-tco-saving-amount {
  font-family: var(--hce-font-mono);
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.hce-tco-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hce-tco-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--hce-radius-sm);
  padding: 0.75rem 0.85rem;
}

.hce-tco-stat-k {
  font-size: 0.72rem;
  color: var(--hce-slate-300);
  line-height: 1.3;
}

.hce-tco-stat-v {
  font-family: var(--hce-font-mono);
  font-size: clamp(0.84rem, 1.3vw, 1rem);
  font-weight: 800;
  color: var(--hce-amber);
  margin-top: 0.2rem;
  overflow-wrap: break-word;
}

/* 7. TECHNICAL SERIES MATRIX & COMPARISON TABLES (GEO CITATION READY) */
.hce-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  box-shadow: var(--hce-shadow-sm);
}

.hce-matrix-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.hce-matrix-table th {
  background: var(--hce-slate-900);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.9rem 1.05rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--hce-amber);
  white-space: nowrap;
}

.hce-matrix-table td {
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid var(--hce-slate-200);
  color: var(--hce-slate-700);
  vertical-align: middle;
}

.hce-matrix-table tbody tr:nth-child(even) {
  background: var(--hce-slate-100);
}

.hce-matrix-table tbody tr:hover {
  background: var(--hce-amber-tint);
}

.hce-code-badge {
  font-family: var(--hce-font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--hce-slate-900);
  background: var(--hce-slate-200);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

/* 8. ENGINEERING UNIT CARDS & BENTO GRID (RESPONSIVE ACROSS PORTRAIT & LANDSCAPE) */
.hce-bento-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hce-cat-card {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hce-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hce-shadow-md);
  border-color: var(--hce-amber);
}

.hce-cat-card-top {
  background: var(--hce-slate-900);
  color: #FFFFFF;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--hce-font-mono);
  font-size: 0.72rem;
}

.hce-cat-img-box {
  height: 195px;
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hce-slate-100);
  contain: layout paint;
}

.hce-cat-img-box img {
  max-height: 170px;
  width: auto;
  object-fit: contain;
}

.hce-cat-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hce-cat-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--hce-slate-900);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.hce-cat-desc {
  font-size: 0.84rem;
  color: var(--hce-slate-600);
  margin-bottom: 1rem;
  flex: 1;
}

/* Product Unit Cards */
.hce-unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.hce-unit-grid.hce-related-grid {
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hce-unit-card {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hce-unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hce-shadow-md);
  border-color: var(--hce-amber);
}

.hce-unit-statusbar {
  background: var(--hce-slate-100);
  border-bottom: 1px solid var(--hce-slate-200);
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.hce-power-pill {
  font-family: var(--hce-font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hce-power-pill.li-ion {
  background: var(--hce-emerald-tint);
  color: var(--hce-emerald-deep);
  border: 1px solid var(--hce-emerald-border);
}

.hce-power-pill.diesel {
  background: var(--hce-amber-tint);
  color: var(--hce-amber-deep);
  border: 1px solid var(--hce-amber-border);
}

.hce-power-pill.electric {
  background: var(--hce-cyan-tint);
  color: var(--hce-cyan);
  border: 1px solid var(--hce-cyan-border);
}

.hce-unit-code {
  font-family: var(--hce-font-mono);
  font-size: 0.68rem;
  color: var(--hce-slate-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hce-unit-thumb {
  height: 195px;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hce-slate-100);
  contain: layout paint;
}

.hce-unit-thumb img {
  max-height: 170px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.hce-unit-card:hover .hce-unit-thumb img {
  transform: scale(1.03);
}

.hce-unit-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hce-unit-cat {
  font-family: var(--hce-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hce-amber-deep);
  font-weight: 700;
}

.hce-unit-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--hce-slate-900);
  margin: 0.25rem 0 0.8rem 0;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.hce-unit-name a:hover {
  color: var(--hce-amber-deep);
}

.hce-unit-telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  background: var(--hce-canvas);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-sm);
  padding: 0.6rem;
  margin-bottom: 0.9rem;
}

.hce-ut-item {
  display: flex;
  flex-direction: column;
}

.hce-ut-lbl {
  font-size: 0.66rem;
  color: var(--hce-slate-500);
}

.hce-ut-val {
  font-family: var(--hce-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--hce-slate-900);
  overflow-wrap: break-word;
}

.hce-unit-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hce-btn-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.56rem 0.7rem;
  border-radius: var(--hce-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--hce-slate-900);
  color: #FFFFFF;
  text-align: center;
}

.hce-btn-spec:hover {
  background: var(--hce-slate-800);
  color: var(--hce-amber);
}

.hce-btn-rfq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.56rem 0.7rem;
  border-radius: var(--hce-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--hce-amber-tint);
  color: var(--hce-amber-deep);
  border: 1px solid var(--hce-amber-border);
  cursor: pointer;
  text-align: center;
}

.hce-btn-rfq:hover {
  background: var(--hce-amber);
  color: #FFFFFF;
  border-color: var(--hce-amber);
}

/* 9. CATALOG FILTER CONSOLE & TABLE VIEW */
.hce-catalog-console {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--hce-shadow-sm);
}

.hce-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.hce-input-box,
.hce-select-box {
  display: flex;
  align-items: center;
  background: var(--hce-canvas);
  border: 1px solid var(--hce-slate-300);
  border-radius: var(--hce-radius-sm);
  padding: 0 0.8rem;
  height: 46px;
}

.hce-input-box:focus-within,
.hce-select-box:focus-within {
  border-color: var(--hce-amber);
  background: #FFFFFF;
}

.hce-input-box input,
.hce-select-box select {
  width: 100%;
  border: none;
  background: transparent;
  height: 100%;
  outline: none;
  font-size: 0.88rem;
  color: var(--hce-slate-900);
}

.hce-power-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hce-slate-200);
}

.hce-power-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hce-ptab {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--hce-slate-300);
  background: var(--hce-canvas);
  color: var(--hce-slate-700);
  cursor: pointer;
}

.hce-ptab.active {
  background: var(--hce-slate-900);
  color: var(--hce-amber);
  border-color: var(--hce-slate-900);
}

.hce-view-toggle {
  display: inline-flex;
  background: var(--hce-canvas);
  border: 1px solid var(--hce-slate-300);
  border-radius: var(--hce-radius-sm);
  overflow: hidden;
}

.hce-vbtn {
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--hce-slate-600);
  cursor: pointer;
}

.hce-vbtn.active {
  background: var(--hce-amber);
  color: #FFFFFF;
}

.hce-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.25rem;
}

.hce-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--hce-radius-sm);
  border: 1px solid var(--hce-slate-300);
  background: var(--hce-paper);
  color: var(--hce-slate-800);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.hce-page-btn.active {
  background: var(--hce-amber);
  color: #FFFFFF;
  border-color: var(--hce-amber);
}

.hce-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 10. PRODUCT DETAIL: OPEN ENGINEERING DATASHEET LAYOUT */
.hce-datasheet-banner {
  background: linear-gradient(135deg, var(--hce-void) 0%, var(--hce-slate-900) 100%);
  color: #FFFFFF;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
  border-bottom: 2px solid var(--hce-amber);
}

.hce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.76rem;
  color: var(--hce-slate-400);
  margin-bottom: 0.9rem;
}

.hce-breadcrumb a:hover {
  color: var(--hce-amber);
}

.hce-ds-header-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hce-ds-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.hce-ds-title {
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.hce-ds-sub {
  font-size: clamp(0.86rem, 1.2vw, 0.94rem);
  color: var(--hce-slate-300);
  margin-top: 0.45rem;
  max-width: 780px;
}

.hce-ds-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 1.75rem;
  align-items: start;
}

.hce-gallery-panel {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--hce-shadow-sm);
}

.hce-gallery-viewport {
  height: clamp(230px, 36vw, 380px);
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--hce-slate-100);
  border-radius: var(--hce-radius-md);
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  contain: layout paint;
}

.hce-gallery-viewport img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.hce-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.hce-thumb-item {
  width: 62px;
  height: 62px;
  border: 2px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-sm);
  background: #FFFFFF;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hce-thumb-item.active,
.hce-thumb-item:hover {
  border-color: var(--hce-amber);
}

.hce-thumb-item img {
  max-height: 100%;
  object-fit: contain;
}

/* Right Engineering Console on Product Detail */
.hce-spec-console {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  box-shadow: var(--hce-shadow-sm);
}

.hce-telemetry-6grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0;
}

.hce-t6-cell {
  background: var(--hce-canvas);
  border: 1px solid var(--hce-slate-200);
  border-left: 3px solid var(--hce-amber);
  border-radius: var(--hce-radius-sm);
  padding: 0.65rem 0.8rem;
}

.hce-t6-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hce-slate-500);
}

.hce-t6-val {
  font-family: var(--hce-font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--hce-slate-900);
  margin-top: 0.15rem;
  overflow-wrap: break-word;
}

.hce-eng-brief {
  background: var(--hce-slate-900);
  color: var(--hce-slate-200);
  border-radius: var(--hce-radius-md);
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.hce-eng-brief strong {
  color: var(--hce-amber);
}

/* Open Datasheet Content Blocks */
.hce-ds-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.hce-ds-card {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  overflow: hidden;
  box-shadow: var(--hce-shadow-sm);
}

.hce-ds-card-head {
  background: var(--hce-slate-900);
  color: #FFFFFF;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-bottom: 2px solid var(--hce-amber);
}

.hce-ds-card-title {
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
}

.hce-ds-card-body {
  padding: clamp(1.1rem, 2.2vw, 1.65rem);
}

.hce-eng-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hce-eng-box {
  background: var(--hce-canvas);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-md);
  padding: 1.1rem;
}

.hce-eng-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hce-slate-900);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.hce-eng-box p {
  font-size: 0.85rem;
  color: var(--hce-slate-600);
  line-height: 1.64;
}

/* 11. FAQ GRID & CARDS */
.hce-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hce-faq-card {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-md);
  padding: 1.15rem 1.25rem;
}

.hce-faq-q {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hce-slate-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.38;
}

.hce-faq-q span.q-badge {
  font-family: var(--hce-font-mono);
  font-size: 0.7rem;
  background: var(--hce-amber);
  color: #FFFFFF;
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.hce-faq-a {
  font-size: 0.86rem;
  color: var(--hce-slate-600);
  line-height: 1.64;
}

/* 12. FOOTER & RFQ MODAL */
.hce-footer {
  background: var(--hce-void);
  color: var(--hce-slate-300);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem 0;
  border-top: 3px solid var(--hce-amber);
  margin-top: auto;
}

.hce-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hce-footer-title {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.hce-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.hce-footer-links a:hover {
  color: var(--hce-amber);
}

.hce-footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--hce-slate-400);
}

/* Modal RFQ */
.hce-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.hce-modal-backdrop.open {
  display: flex;
}

.hce-modal-box {
  background: var(--hce-paper);
  border: 1px solid var(--hce-slate-200);
  border-radius: var(--hce-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--hce-shadow-lg);
}

.hce-modal-head {
  background: var(--hce-slate-900);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 2px solid var(--hce-amber);
}

.hce-modal-body {
  padding: 1.25rem;
}

.hce-field {
  margin-bottom: 0.9rem;
}

.hce-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hce-slate-700);
  margin-bottom: 0.3rem;
}

.hce-field input,
.hce-field textarea {
  width: 100%;
  border: 1px solid var(--hce-slate-300);
  border-radius: var(--hce-radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
}

/* Off-Canvas Mobile & Tablet Drawer (Zero Horizontal Overflow via Transform) */
.hce-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.68);
  backdrop-filter: blur(4px);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hce-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hce-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100dvh;
  background: var(--hce-obsidian);
  color: #FFFFFF;
  z-index: 2100;
  padding: 1.35rem;
  transform: translateX(102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  overflow-y: auto;
}

.hce-mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================================
   13. MULTI-ORIENTATION RESPONSIVE MATRIX (DESKTOP / TABLET / MOBILE)
   ============================================================================ */

/* A. Compact Desktop & Tablet Landscape (1081px - 1260px) */
@media (max-width: 1260px) {
  .hce-unit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hce-nav-link {
    padding: 0.45rem 0.58rem;
    font-size: 0.8rem;
  }
  .hce-brand-sub {
    font-size: 0.62rem;
  }
}

/* B. Tablet Landscape & Portrait (<= 1080px, e.g. iPad 1024px / 820px / 768px) */
@media (max-width: 1080px) {
  .hce-nav {
    display: none;
  }
  .hce-mobile-trigger {
    display: inline-flex;
  }
  .hce-telemetry-tickers .hce-ticker-item:nth-child(3) {
    display: none;
  }
  .hce-bento-hero,
  .hce-tco-console,
  .hce-ds-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .hce-bento-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hce-unit-grid,
  .hce-unit-grid.hce-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hce-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* C. Tablet Portrait & Mobile Landscape (560px - 860px) */
@media (max-width: 860px) {
  .hce-telemetry-tickers .hce-ticker-item:nth-child(2) {
    display: none;
  }
  .hce-filter-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hce-filter-row > div:last-child {
    grid-column: 1 / -1;
  }
  .hce-faq-grid,
  .hce-eng-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* D. Mobile Landscape Orientation Optimization (Short Viewport Height <= 520px) */
@media (max-height: 520px) and (orientation: landscape) {
  .hce-telemetry-bar {
    min-height: 30px;
    padding: 0.25rem 0;
  }
  .hce-header-main {
    min-height: 52px;
  }
  .hce-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .hce-brand-sub {
    display: none;
  }
  .hce-series-subbar {
    padding: 0.28rem 0;
  }
  .hce-hero {
    padding: 1.5rem 0;
  }
  .hce-bento-categories,
  .hce-unit-grid,
  .hce-unit-grid.hce-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hce-hero-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hce-gallery-viewport {
    height: 210px;
  }
}

/* E. Mobile Portrait (<= 580px, e.g. 360x800, 375x667, 390x844, 414x896) */
@media (max-width: 580px) {
  .hce-telemetry-inner {
    justify-content: center;
  }
  .hce-telemetry-actions {
    display: none;
  }
  .hce-header-main {
    min-height: 60px;
  }
  .hce-brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .hce-brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
  .hce-finder-bar {
    flex-direction: column;
    padding: 0.5rem;
  }
  .hce-finder-bar .hce-btn-amber {
    width: 100%;
  }
  .hce-hero-actions {
    flex-direction: column;
  }
  .hce-hero-actions > a,
  .hce-hero-actions > button {
    width: 100%;
  }
  .hce-hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .hce-bento-categories,
  .hce-unit-grid,
  .hce-unit-grid.hce-related-grid,
  .hce-filter-row,
  .hce-tco-breakdown,
  .hce-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hce-power-filter-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .hce-view-toggle {
    width: 100%;
  }
  .hce-vbtn {
    flex: 1;
    text-align: center;
  }
  .hce-ds-header-grid > div:last-child {
    width: 100%;
  }
  .hce-ds-header-grid > div:last-child > * {
    flex: 1;
  }
  .hce-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* F. Ultra-Compact Mobile (<= 380px) */
@media (max-width: 380px) {
  .hce-telemetry-specs,
  .hce-telemetry-6grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
