
@charset "UTF-8";

:root {
  /* Patensify High-Contrast Editorial Palette (Unified Style P + Q) */
  --bg-light: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --bg-dark: #0A0A0A;
  --bg-dark-elevated: #141414;
  --bg-dark-card: #1A1A1A;

  --ink-solid: #09090B;
  --ink-body: #3F3F46;
  --ink-faded: #686870;
  --ink-muted: #52525B;

  --ink-on-dark: #FAFAFA;
  --ink-on-dark-muted: #A1A1AA;
  --ink-on-dark-faded: #686870;

  --accent-lime: #D4F728;
  --accent-lime-hover: #C2E515;
  --accent-emerald: #10B981;

  --border-light: #CBD5E1;
  --border-light-subtle: #E2E8F0;
  --border-strong: #09090B;
  --border-dark: #262626;

  --font-display: 'Space Grotesk', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --container-max: 1360px;
  --gutter: clamp(1.25rem, 3.8vw, 3.25rem);
  --header-h: 74px;
  --footer-h: 52px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--ink-solid);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

p, li, td, .metric-label, .telemetry-desc, .step-item-body p {
  text-wrap: pretty;
  line-break: strict;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

/* Prevent orphan single-character wraps on desktop/tablet */
.nowrap {
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 640px) {
  .nowrap {
    white-space: normal;
    display: inline;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Impeccable Craft Floor: Browser Surface Theming & Tabular Numerals */
::selection {
  background-color: var(--accent-lime);
  color: var(--ink-solid);
}

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

.canvas-showcase-frame :focus-visible,
.oscilloscope-console :focus-visible,
.benchmark-dark-box :focus-visible,
.comparison-table-wrap :focus-visible,
.dropdown-menu :focus-visible {
  outline-color: var(--accent-lime);
}

input, textarea {
  caret-color: var(--ink-solid);
}

.metric-num,
.kpi-strip-val,
.comp-big-val,
.comp-legacy-val,
.spec-box-val,
.osc-readout-val,
.editorial-table td,
.app-telemetry-item strong,
.dossier-val {
  font-variant-numeric: tabular-nums;
}

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

.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================
   PATENSIFY SIGNATURE TYPOGRAPHY (SOULFUL & BALANCED)
   ========================================== */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-solid);
  letter-spacing: 0.04em;
}

.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.pill-badge-dark {
  border-color: var(--border-dark);
  background: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
}

.pill-badge-dark .dot {
  background-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(212, 247, 40, 0.2);
}

/* Calibrated so 11-12 char Chinese lines never orphan 1 char on 1440px */
.editorial-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.35vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.editorial-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.85vw, 2.65rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.editorial-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tone-faded { color: var(--ink-faded); font-weight: 500; }
.tone-solid { color: var(--ink-solid); }
.tone-dark-faded { color: var(--ink-on-dark-faded); font-weight: 500; }
.tone-dark-solid { color: var(--ink-on-dark); }
.tone-lime { color: var(--accent-lime); }

.english-whisper {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
}

/* ==========================================
   UNIFIED TOP HEADER WITH SUB-PAGE DROPDOWNS
   ========================================== */
.site-header {
  height: var(--header-h);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-identity .brand-mark-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-identity .brand-wordmark-img {
  height: 23px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* 視覺對齊（2026-11-12 定案）：
     以大寫 Q 的垂直中心略低於 LOGO 圖形中心約 1px 為基準（桌機 Q 中心 ≈ 37.8px，圖形中心 36.75px）。
     依自身高度等比位移 +5%，手機版同樣適用；中文 .brand-zh 同步下移，保持小寫字母帶與中文上下緣對齊。 */
  transform: translateY(5%);
}

.brand-zh {
  font-size: 0.95rem;
  color: var(--ink-solid);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-left: 0.65rem;
  border-left: 1.5px solid var(--border-strong);
  line-height: 1.2;
  white-space: nowrap;
  /* 與英文字標同步下移（桌機約 5.3px），保持兩者上下緣對齊 */
  transform: translateY(0.345em);
}

/* Unified Main Navigation + Sub-Page Dropdowns (Right-Aligned) */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.45rem;
}

.nav-item-dropdown {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-body);
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link .sub-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
  font-weight: 700;
  padding-left: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 0.15rem;
}

.nav-link .caret {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-link,
.nav-link:hover {
  color: var(--ink-solid);
  background-color: var(--bg-subtle);
}

.nav-item-dropdown:hover .nav-link.active {
  color: var(--bg-light);
  background-color: var(--ink-solid);
}

.nav-item-dropdown:hover .nav-link .caret {
  transform: rotate(180deg);
}

.nav-link.active {
  color: var(--bg-light);
  background-color: var(--ink-solid);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 210px;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 120;
}

.nav-item-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-on-dark-muted);
  transition: all 0.15s ease;
}

.dropdown-link:hover,
.dropdown-link.active-sub {
  background: var(--bg-dark-card);
  color: var(--accent-lime);
  font-weight: 600;
}

.dropdown-link span.code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.8;
}

.header-right-group {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Compact Sub-Page Stepper integrated inside Top Header */
.header-sub-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  gap: 0.15rem;
}

.header-step-btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-solid);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-step-btn:hover {
  background: var(--ink-solid);
  color: var(--accent-lime);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 1.2rem;
  border-radius: var(--radius-pill);
  background-color: var(--ink-solid);
  color: var(--bg-light);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background-color: #27272A;
  transform: translateY(-1px);
}

.header-cta .arrow {
  color: var(--accent-lime);
  font-family: var(--font-mono);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--ink-solid);
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Slide-Down Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  color: var(--ink-on-dark);
  z-index: 150;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-drawer-group {
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1rem;
}

.mobile-drawer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
}

.mobile-drawer-sublinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.mobile-drawer-sublinks a {
  padding: 0.65rem 0.95rem;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-on-dark);
  display: flex;
  justify-content: space-between;
}

/* ==========================================
   MAIN VIEWPORT STAGE & PANELS
   ========================================== */
.viewport-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 1.4vh, 1.2rem) 0;
}

@media (min-width: 1025px) {
  .viewport-stage {
    justify-content: flex-start;
    padding-top: clamp(2rem, 4.2vh, 3rem);
    padding-bottom: 1rem;
  }

  /* Homepage (Overview): Equal Top and Bottom Blank Space */
  .viewport-stage:has(#panel-overview),
  .viewport-stage.viewport-stage-home {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.subpage-panel {
  display: none;
  width: 100%;
  animation: fadePanel 0.22s ease-out;
}

.subpage-panel.active {
  display: block;
}

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  background-color: var(--ink-solid);
  color: var(--bg-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary-dark:hover {
  background-color: #27272A;
  transform: translateY(-2px);
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-lime);
  color: var(--ink-solid);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-lime:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background-color: transparent;
  color: var(--ink-solid);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--ink-solid);
  color: var(--bg-light);
}

/* ==========================================
   HOME PANELS
   ========================================== */
.hero-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 3vw, 2.75rem);
  align-items: end;
  margin-bottom: clamp(2rem, 3.5vh, 3rem);
}

.hero-eyebrow-row {
  margin-bottom: 1.25rem;
}

.hero-lead-box {
  border-left: 1px solid var(--border-strong);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
}

.hero-lead-text {
  font-size: 1.02rem;
  color: var(--ink-body);
  line-height: 1.74;
  text-align: justify;
  text-justify: inter-ideograph;
}

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

/* 4-Column Full-Scale Key Metric Strip */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  overflow: hidden;
}

.metric-cell {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--border-light);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-solid);
  line-height: 1.1;
}

.metric-num small {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-weight: 600;
  margin-left: 0.15rem;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Home Panel 2: Cleanroom Stage & 4 Telemetry Cards */
.cleanroom-stage-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
}

.cleanroom-visual-frame {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2.25rem;
  background: #050507;
  overflow: hidden;
}

.cleanroom-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.cleanroom-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.18) 42%, rgba(10,10,10,0.92) 100%);
}

.cleanroom-hud-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hud-reticle-badge {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-on-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hud-reticle-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
}

.cleanroom-logo-pod {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
}

.cleanroom-logo-pod img {
  height: 40px;
  width: auto;
}

.cleanroom-hud-bottom {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-top: 3rem;
}

.cleanroom-hud-bottom h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.cleanroom-hud-bottom p {
  font-size: 0.95rem;
  color: var(--ink-on-dark-muted);
  line-height: 1.65;
}

.telemetry-4col-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dark);
  background: var(--bg-dark);
}

.telemetry-cell {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background-color 0.2s ease;
}

.telemetry-cell:last-child { border-right: none; }
.telemetry-cell:hover { background: var(--bg-dark-card); }

.telemetry-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.telemetry-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-on-dark);
}

.telemetry-desc {
  font-size: 0.85rem;
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
}

/* Home Panel 3: Hub Cards */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg-light);
  transition: all 0.2s ease;
}

.hub-card:hover {
  border-color: var(--ink-solid);
  transform: translateY(-3px);
}

.hub-card-dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-color: var(--border-dark);
}

.hub-card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.hub-card-dark .hub-card-num { color: var(--accent-lime); }

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hub-card p {
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hub-card-dark p { color: var(--ink-on-dark-muted); }

.hub-sublinks-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hub-sublinks-list a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--ink-solid);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.hub-card-dark .hub-sublinks-list a {
  background: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
}

.hub-sublinks-list a:hover {
  background: var(--accent-lime);
  color: var(--ink-solid);
}

/* ==========================================
   TECH PANELS
   ========================================== */
.compact-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.65rem 2rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.compact-panel-header p {
  max-width: 860px;
  font-size: 0.98rem;
  color: var(--ink-body);
  line-height: 1.65;
  margin: 0;
}

.canvas-showcase-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  background-color: var(--bg-dark-elevated);
  flex-wrap: wrap;
  gap: 1rem;
}

.canvas-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3F3F46;
}

.window-dots span:first-child { background-color: var(--accent-lime); }

.mode-switch-group {
  display: flex;
  gap: 0.4rem;
  background: #09090B;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-on-dark-muted);
  transition: all 0.2s ease;
}

.mode-btn.active {
  background-color: var(--accent-lime);
  color: var(--ink-solid);
  font-weight: 700;
}

.canvas-viewport {
  position: relative;
  height: clamp(320px, 48vh, 450px);
  width: 100%;
  cursor: crosshair;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.canvas-overlay-badge {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--border-dark);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-on-dark);
  pointer-events: auto;
}

/* Tech Panel 2: Oscilloscope */
.oscilloscope-console {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.osc-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.5rem;
  background: var(--bg-dark-elevated);
  border-bottom: 1px solid var(--border-dark);
}

.osc-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  background: #0F0F12;
  flex-wrap: wrap;
  gap: 1rem;
}

.osc-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.osc-pill {
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-elevated);
  color: var(--ink-on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.osc-pill.active {
  background: var(--accent-lime);
  color: var(--ink-solid);
  border-color: var(--accent-lime);
  font-weight: 700;
}

.osc-slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-on-dark-muted);
}

.osc-slider-group input[type="range"] {
  accent-color: var(--accent-lime);
  width: 130px;
}

.osc-pause-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-card);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.osc-screen-wrap {
  position: relative;
  height: clamp(240px, 38vh, 320px);
  width: 100%;
}

#waveCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #060608;
}

.osc-hud-top {
  position: absolute;
  top: 0.9rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-on-dark-muted);
}

.osc-hud-top strong { color: var(--accent-lime); }

.osc-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  background: var(--bg-dark-elevated);
}

.osc-readout-cell {
  padding: 1.1rem 1.5rem;
  border-right: 1px solid var(--border-dark);
}

.osc-readout-cell:last-child { border-right: none; }

.osc-readout-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-on-dark-muted);
  display: block;
}

.osc-readout-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-on-dark);
  margin-top: 0.25rem;
}

/* Tech Panel 3: 3D Wafer Exploded View */
.wafer-exploded-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 1.4rem;
  align-items: stretch;
}

.wafer-svg-card {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wafer-svg-stage {
  width: 100%;
  max-width: 100%;
  margin: 0.5rem auto;
}

.wafer-pillar-summary-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pillar-summary-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  background: var(--bg-subtle);
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.pillar-summary-card:hover {
  border-color: var(--ink-solid);
  background: var(--bg-light);
  transform: translateY(-2px);
}

.pillar-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.pillar-summary-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--ink-solid);
  color: var(--accent-lime);
}

.pillar-summary-card h3,
.pillar-summary-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.pillar-summary-card p {
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.pillar-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pillar-mini-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

/* Tech Panel 4: Interactive Chapter Switcher (a-d) */
.chapter-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.chapter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chapter-tab-btn {
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-on-dark-muted);
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  transition: all 0.18s ease;
}

.chapter-tab-btn:hover {
  color: var(--ink-on-dark);
}

.chapter-tab-btn.active {
  background: var(--accent-lime);
  color: var(--ink-solid);
  border-color: var(--accent-lime);
  font-weight: 700;
}

.chapter-detail-pane {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  background: var(--bg-light);
}

.chapter-detail-pane.active {
  display: grid;
}

.chapter-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.chapter-num-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-solid);
}

.chapter-letter-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.2rem 0.65rem;
  background: var(--accent-lime);
  color: var(--ink-solid);
  font-weight: 700;
  border-radius: 4px;
}

.spec-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.35rem 0;
}

.spec-box {
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.spec-box-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  display: block;
}

.spec-box-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink-solid);
  margin-top: 0.2rem;
  display: block;
}

.chapter-whitepaper-note {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.9rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-body);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.chapter-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-dark);
}

.chapter-visual img {
  width: 100%;
  height: clamp(260px, 36vh, 330px);
  object-fit: cover;
}

.visual-caption {
  padding: 0.88rem 1.15rem;
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
}


/* ==========================================
   MERGED INSPECTOR STYLING (DEFAULT 3-LAYER STACK + HOVER INSPECT)
   ========================================== */
.inspector-merged-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.15rem;
  align-items: stretch;
  min-height: clamp(440px, 55vh, 500px);
}

.inspector-stage-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.inspector-left-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
}

.stage-reset-btn {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-reset-btn:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.inspector-view-pane {
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.inspector-view-pane.active {
  display: flex;
  opacity: 1;
}

/* Stack View Layout (Widened) */
.stack-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-light);
}

.wafer-widened-stage {
  width: 100%;
  background: #09090B;
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.75rem;
  margin: 0.25rem 0 0.55rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wafer-exploded-svg-widened {
  width: 100%;
  height: auto;
  max-height: clamp(290px, 38vh, 345px);
  display: block;
}

.stack-bottom-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.stack-bottom-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stack-item-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.stack-item-v {
  font-size: 0.8rem;
  color: var(--ink-solid);
  font-weight: 600;
}

/* Pillar View Layout */
.inspector-photo-wrap {
  position: relative;
  width: 100%;
  height: clamp(185px, 24vh, 210px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #09090B;
  margin-bottom: 0.6rem;
}

.inspector-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.inspector-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  color: #FAFAFA;
}

.inspector-photo-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insp-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-lime);
  color: #09090B;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.insp-tag-alt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #D4D4D8;
}

.insp-caption-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #FAFAFA;
  font-weight: 600;
}

.inspector-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.inspector-desc-text {
  font-size: 0.86rem;
  color: var(--ink-body);
  line-height: 1.46;
}

.inspector-spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.insp-spec-cell {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  background: var(--bg-subtle);
}

.insp-spec-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.insp-spec-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-solid);
}

.insp-whitepaper-banner {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #F4F4F5;
  border-left: 3px solid var(--ink-solid);
  font-size: 0.8rem;
  color: var(--ink-body);
  line-height: 1.4;
}

.insp-whitepaper-label {
  font-weight: 700;
  color: var(--ink-solid);
}

/* Right Menu Cards */
.inspector-right-menu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.insp-menu-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.88rem 1.15rem;
  background: var(--bg-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  flex: 1;
}

.insp-menu-card:hover {
  border-color: #94A3B8;
  background: var(--bg-light);
  transform: translateX(-3px);
}

.insp-menu-card.active {
  border-color: var(--ink-solid);
  background: var(--bg-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.insp-menu-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-lime);
}

.insp-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.18rem;
}

.insp-code-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.48rem;
  border-radius: 4px;
  background: var(--ink-solid);
  color: var(--accent-lime);
}

.insp-action-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.insp-menu-card.active .insp-action-hint {
  color: var(--accent-emerald);
  font-weight: 700;
}

.insp-menu-card h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--ink-solid);
}

.insp-menu-card p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.38;
  margin-bottom: 0.35rem;
}

.insp-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.insp-mini-pills span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--ink-body);
}

/* Tablet & Mobile Inline Accordion Drawer (Hidden on Desktop > 1024px) */
.insp-mobile-drawer {
  display: none;
}

/* ==========================================
   SOLUTIONS PANELS
   ========================================== */
.kpi-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.kpi-strip-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.kpi-strip-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 700;
  color: var(--ink-solid);
  letter-spacing: -0.02em;
}

.kpi-strip-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-solid);
  margin-top: 0.25rem;
}

.kpi-strip-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.benchmark-dark-box {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  border: 1px solid var(--border-strong);
}

.benchmark-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.arch-toggle-bar {
  display: inline-flex;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
}

.arch-toggle-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-on-dark-muted);
  transition: all 0.2s ease;
}

.arch-toggle-btn.active {
  background: var(--accent-lime);
  color: var(--ink-solid);
  font-weight: 700;
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.comp-metric-card {
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(212, 247, 40, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
}

.comp-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.comp-delta-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.58rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 247, 40, 0.14);
  color: var(--accent-lime);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Solutions Panel 1: Direct Head-to-Head Architectural Duel (No Toggle) */
.benchmark-legend-pills {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
}

.legend-pill.legacy {
  background: #1C1C20;
  color: var(--ink-on-dark-muted);
  border: 1px solid var(--border-dark);
}

.legend-pill.qurvance {
  background: rgba(212, 247, 40, 0.12);
  color: var(--accent-lime);
  border: 1px solid rgba(212, 247, 40, 0.35);
  font-weight: 600;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.legend-pill.legacy .legend-dot { background: #71717A; }
.legend-pill.qurvance .legend-dot { background: var(--accent-lime); }

.direct-duel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.duel-card {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.duel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.4rem;
}

.duel-delta-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 247, 40, 0.14);
  color: var(--accent-lime);
  font-weight: 700;
  white-space: nowrap;
}

.duel-compare-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.65rem;
}

.duel-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.duel-col.legacy {
  text-align: left;
}

.duel-col.qurvance {
  text-align: right;
}

.duel-tier-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-on-dark-muted);
  margin-bottom: 0.25rem;
}

.duel-val {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.duel-val.legacy {
  font-size: 1.25rem;
  color: #A1A1AA;
}

.duel-val.qurvance {
  font-size: 1.4rem;
  color: var(--accent-lime);
}

.duel-val small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.duel-sub-note {
  font-size: 0.72rem;
  color: var(--ink-on-dark-faded);
  margin-top: 0.3rem;
  line-height: 1.35;
}

.duel-vs-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #52525B;
  padding: 0 0.2rem;
}

.duel-bar-block {
  margin-top: auto;
}

.duel-bar-track {
  width: 100%;
  height: 6px;
  background: #27272A;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.duel-bar-fill {
  height: 100%;
  background: var(--accent-lime);
  border-radius: var(--radius-pill);
}

.duel-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-on-dark-muted);
}

.duel-label-highlight {
  color: var(--accent-lime);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Solutions Panel 2: Matrix Table (No Horizontal Scrollbar - Balanced Viewport Fit) */
.comparison-table-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow-x: hidden;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: 0.95rem 1.25rem;
}

.editorial-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.editorial-table th,
.editorial-table td {
  padding: 1.22rem 1.05rem;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.88rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.editorial-table th:nth-child(1),
.editorial-table td:nth-child(1) {
  width: 22%;
  padding-left: 0.85rem;
}

.editorial-table th:nth-child(2),
.editorial-table td:nth-child(2) {
  width: 39%;
}

.editorial-table th:nth-child(3),
.editorial-table td:nth-child(3) {
  width: 39%;
  padding-right: 0.85rem;
}

.editorial-table td:first-child {
  font-weight: 700;
  color: #FFFFFF;
}

.editorial-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
  background: var(--bg-dark-elevated);
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.editorial-table tr:last-child td { border-bottom: none; }
.col-qurvance { color: var(--accent-lime); font-weight: 600; font-family: var(--font-sans); }
.col-legacy { color: var(--ink-on-dark-muted); font-family: var(--font-sans); }

/* Solutions Panel 3: 4 Application Verticals (Balanced Single-Viewport - Compact Fit) */
.app-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.app-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--ink-solid);
  transform: translateY(-2px);
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.app-freq-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--ink-solid);
  color: var(--accent-lime);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.18rem;
  line-height: 1.28;
}

.app-card p {
  color: var(--ink-body);
  font-size: 0.88rem;
  line-height: 1.48;
  margin-bottom: 0.65rem;
}

.app-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-light);
}

.app-telemetry-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
}

.app-telemetry-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.app-telemetry-item strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-solid);
}

/* ==========================================
   CONTACT PANELS (UNIFIED LIGHT STYLE)
   ========================================== */
.contact-integrated-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}

.form-card {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-light-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-light-header {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.95rem;
}

.dossier-list {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.dossier-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.78rem;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.92rem;
  align-items: baseline;
}

.dossier-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dossier-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.dossier-val {
  color: var(--ink-solid);
  font-weight: 600;
}

.copy-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.copy-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.85rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--ink-solid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.copy-chip-btn:hover {
  border-color: var(--ink-solid);
  background: var(--ink-solid);
  color: var(--bg-light);
}

/* Contact Panel 2: Logistics & 3-Step Workflow */
.logistics-workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.editorial-info-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  background: var(--bg-subtle);
}

.step-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.step-item-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.step-item-row:last-child { border-bottom: none; padding-bottom: 0; }

.step-badge-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--ink-solid);
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item-body h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-item-body p {
  font-size: 0.92rem;
  color: var(--ink-body);
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-solid);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-light);
  color: var(--ink-solid);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #C8C8D0;
  opacity: 1;
}

/* ==========================================
   WHITE-BACKGROUND BLACK-TEXT FOOTER
   ========================================== */
.footer-bottom {
  min-height: var(--footer-h);
  flex-shrink: 0;
  background: var(--bg-light);
  color: var(--ink-body);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

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

.footer-bottom a {
  color: var(--ink-solid) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Toast Notification */
.toast-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--ink-solid);
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-pill.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   RESPONSIVE WEB DESIGN (RWD - TABLET & MOBILE)
   ========================================== */
.hero-top-grid > *,
.wafer-exploded-grid > *,
.chapter-detail-pane > *,
.contact-integrated-grid > *,
.logistics-workflow-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .hero-top-grid,
  .wafer-exploded-grid,
  .chapter-detail-pane.active,
  .contact-integrated-grid,
  .logistics-workflow-grid,
  .inspector-merged-grid,
  .direct-duel-grid,
  .app-bento-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics-bar,
  .telemetry-4col-bar,
  .kpi-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }

  .hub-cards-grid,
  .comparison-cards-grid,
  .osc-readout-grid {
    grid-template-columns: 1fr;
  }

  .osc-readout-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 0.9rem 1.25rem;
  }

  .osc-readout-cell:last-child {
    border-bottom: none;
  }

  .osc-hud-top {
    position: static;
    padding: 0.65rem 1.25rem;
    background: #09090B;
    border-bottom: 1px solid var(--border-dark);
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
  }

  .osc-screen-wrap {
    height: auto;
  }

  #waveCanvas {
    height: 250px;
  }

  /* Tablet & Mobile: Inline Accordion Drawer inside each Pillar Card */
  .insp-menu-card:hover {
    transform: none;
  }

  .insp-menu-card.mobile-expanded {
    background: var(--bg-light);
    border-color: var(--ink-solid);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }

  .insp-menu-card.mobile-expanded .insp-mobile-drawer {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-light);
    animation: fadePanel 0.2s ease-out;
  }

  .insp-mobile-photo-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #09090B;
  }

  .insp-mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .insp-mobile-photo-badge {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #FAFAFA;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .insp-mobile-desc {
    font-size: 0.88rem !important;
    color: var(--ink-body) !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }

  .insp-mobile-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }
}

@media (max-width: 980px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .header-right-group,
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .brand-identity {
    gap: 0.3rem;
    min-width: 0;
  }

  .brand-identity .brand-mark-img {
    height: 24px;
  }

  .brand-identity .brand-wordmark-img {
    height: 14px;
  }

  .brand-zh {
    font-size: 0.72rem;
    padding-left: 0.35rem;
    letter-spacing: 0;
  }

  .mobile-menu-toggle {
    padding: 0.42rem 0.72rem;
    font-size: 0.75rem;
  }

  .header-sub-stepper {
    display: none;
  }

  .editorial-h1 {
    font-size: clamp(1.42rem, 6.2vw, 1.85rem);
    line-height: 1.24;
  }

  .editorial-h2 {
    font-size: clamp(1.18rem, 5.1vw, 1.48rem);
    line-height: 1.28;
  }

  .editorial-h3 {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .hero-lead-box {
    padding-left: 1rem;
  }

  .hero-lead-text {
    text-align: left;
    font-size: 0.94rem;
  }

  .hero-metrics-bar,
  .telemetry-4col-bar,
  .kpi-strip-grid,
  .app-bento-grid,
  .app-telemetry-grid,
  .spec-grid-mini,
  .form-grid-2col,
  .wafer-pillar-summary-stack,
  .stack-bottom-bar,
  .inspector-spec-strip {
    grid-template-columns: 1fr;
  }

  .metric-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 1.15rem 1.2rem;
  }

  .metric-cell:last-child {
    border-bottom: none !important;
  }

  /* Tech 01: Inspector responsive refinements */
  .inspector-left-card {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
  }

  .insp-mobile-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .insp-mobile-photo-wrap {
    height: 160px;
  }

  .stack-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .stack-view-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .stack-view-header .mono-tag {
    margin-left: 0 !important;
    font-size: 0.66rem;
  }

  /* Tech 02: Lattice Simulation responsive refinements */
  .canvas-toolbar {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .mode-switch-group {
    border-radius: var(--radius-md);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.35rem;
  }

  .mode-btn {
    width: 100%;
    text-align: center;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .canvas-viewport {
    height: auto;
  }

  #particleCanvas {
    height: 270px;
  }

  .canvas-overlay-caption {
    position: static;
    padding: 0.65rem 0.85rem;
    background: #09090B;
    border-top: 1px solid var(--border-dark);
    flex-direction: column;
    gap: 0.45rem;
  }

  /* Tech 03: Oscilloscope responsive refinements */
  .osc-header-bar {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .osc-controls-row {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .osc-mode-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .osc-pill {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    text-align: center;
  }

  .osc-slider-group {
    width: 100%;
    justify-content: space-between;
  }

  .osc-slider-group input[type="range"] {
    flex: 1;
  }

  .osc-hud-top {
    padding: 0.6rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
  }

  .osc-screen-wrap {
    height: auto;
  }

  #waveCanvas {
    height: 220px;
  }

  /* Solutions 01: Direct Duel responsive refinements */
  .benchmark-dark-box {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }

  .benchmark-hero-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .duel-card {
    padding: 1rem;
  }

  .duel-card-top {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .duel-card-top .mono-tag {
    white-space: normal !important;
    font-size: 0.7rem;
  }

  .duel-compare-cols {
    padding: 0.6rem 0.45rem;
    gap: 0.25rem;
  }

  .duel-val {
    white-space: normal;
  }

  .duel-val.legacy {
    font-size: 0.9rem;
  }

  .duel-val.qurvance {
    font-size: 0.92rem;
  }

  .duel-val small {
    font-size: 0.6rem;
  }

  .duel-vs-line {
    font-size: 0.6rem;
    padding: 0 0.1rem;
  }

  .duel-bar-label {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /* Solutions 02: Matrix Table stacked card layout on mobile */
  .comparison-table-wrap {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-lg);
  }

  .editorial-table thead {
    display: none;
  }

  .editorial-table,
  .editorial-table tbody,
  .editorial-table tr,
  .editorial-table td {
    display: block;
    width: 100% !important;
  }

  .editorial-table tr {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid var(--border-dark);
  }

  .editorial-table tr:last-child {
    border-bottom: none;
  }

  .editorial-table td {
    padding: 0.22rem 0 !important;
    border-bottom: none !important;
    font-size: 0.84rem;
  }

  .editorial-table td:first-child {
    font-size: 0.92rem;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
    padding-bottom: 0.3rem !important;
    border-bottom: 1px dashed #27272A !important;
  }

  .editorial-table td.col-legacy::before {
    content: "傳統陶瓷封裝 (Legacy)：";
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #71717A;
    display: block;
    margin-bottom: 0.1rem;
  }

  .editorial-table td.col-qurvance {
    margin-top: 0.35rem;
  }

  .editorial-table td.col-qurvance::before {
    content: "Qurvance 晶圓級石英 (WLP)：";
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-lime);
    opacity: 0.88;
    display: block;
    margin-bottom: 0.1rem;
  }

  /* Solutions 03: Verticals responsive refinements */
  .app-card {
    padding: 1.1rem 1.15rem;
  }

  .app-card-top {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* Contact 01 & 02 responsive refinements */
  .dossier-light-card,
  .form-card,
  .editorial-info-card {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .dossier-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .form-card .btn-primary-dark {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary-dark,
  .hero-actions .btn-outline {
    width: 100%;
  }
}

/* ==========================================
   LAPTOP BALANCED VIEWPORT (HEIGHT <= 820px)
   Maintains strict zero-scroll across all pages
   ========================================== */
/* ==========================================
   LAPTOP BALANCED VIEWPORT (HEIGHT <= 820px)
   Strictly scoped to height <= 820px so 27" displays (height > 820px) remain 100% untouched.
   Aligns all subpage headers to a rock-solid top baseline to eliminate jumping.
   ========================================== */
@media (min-width: 1025px) and (max-height: 820px) {
  .viewport-stage {
    justify-content: flex-start;
    padding-top: clamp(0.75rem, 1.8vh, 1.25rem);
    padding-bottom: 0.5rem;
  }

  .viewport-stage:has(#panel-overview),
  .viewport-stage.viewport-stage-home {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .compact-panel-header {
    margin-bottom: 0.55rem;
  }
  .compact-panel-header .editorial-h2 {
    font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  }
  .compact-panel-header p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  /* 01 核心技術 (tech.html): 晶圓鍵合 (inspector) / 壓電模擬 (lattice) / 諧振示波 (wave) */
  .inspector-merged-grid {
    gap: 0.75rem;
    align-items: stretch;
  }
  .inspector-left-card {
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .wafer-exploded-svg-widened {
    max-height: 228px;
    width: 100%;
    height: auto;
  }
  .wafer-legend-row {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }
  .wafer-legend-item {
    font-size: 0.72rem;
  }
  .insp-menu-list {
    gap: 0.45rem;
  }
  .insp-menu-card {
    padding: 0.42rem 0.75rem;
  }
  .insp-menu-card h4 {
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
  }
  .insp-menu-card p {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.15rem;
  }
  .insp-menu-meta {
    font-size: 0.7rem;
  }
  .interactive-stage-card {
    padding: 0.85rem 1.15rem;
  }
  /* 壓電模擬 (lattice) & 諧振示波 (oscilloscope) canvas sizing
     [v2 修正] 原 clamp(200px,30vh,255px) / clamp(190px,29vh,245px) 過度壓縮，
     底部留白 ~200px。改為 flex 填滿剩餘高度（見下方 LAPTOP FILL CHAIN），
     並以 27 吋基準上限 450px / 320px 封頂。 */
  .canvas-viewport {
    height: auto;
    flex: 1 1 auto;
    min-height: 220px;
    max-height: 450px;
  }
  .osc-screen-wrap {
    height: auto;
    flex: 1 1 auto;
    min-height: 190px;
    max-height: 320px;
  }
  .control-deck-grid {
    margin-top: 0.65rem;
    gap: 0.65rem;
  }

  /* 02 終端應用 (solutions.html): 製程架構 (benchmark) / 工程規格 (matrix) / 垂直市場 (verticals) */
  .kpi-strip-grid {
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }
  .kpi-strip-card {
    padding: 0.85rem 1.15rem;
  }
  .kpi-strip-val {
    font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  }
  .kpi-strip-title {
    font-size: 0.85rem;
    margin-top: 0.15rem;
  }
  .kpi-strip-sub {
    font-size: 0.7rem;
    margin-top: 0.12rem;
  }

  .benchmark-dark-box {
    padding: 1.15rem 1.55rem;
    border-radius: var(--radius-lg);
  }
  .benchmark-top {
    margin-bottom: 0.75rem;
    flex-wrap: nowrap !important;
    gap: 0.75rem;
  }
  .benchmark-top .editorial-h3 {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  }
  .legend-pill {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .direct-duel-grid {
    gap: 0.75rem;
  }
  .duel-card {
    padding: 0.75rem 0.95rem;
  }
  .duel-card-top {
    margin-bottom: 0.45rem;
  }
  .duel-compare-cols {
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.55rem;
  }
  .duel-val.legacy {
    font-size: 1.15rem;
  }
  .duel-val.qurvance {
    font-size: 1.25rem;
  }
  .duel-sub-note {
    font-size: 0.68rem;
    margin-top: 0.2rem;
    line-height: 1.25;
  }
  .duel-bar-track {
    height: 5px;
    margin-bottom: 0.25rem;
  }

  /* 工程規格 (matrix) 表格收斂 */
  .comparison-table-wrap {
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-lg);
  }
  /* [v2 修正] 原 th 0.7rem / td 0.65rem 過度壓縮（表格僅佔 320px，底部留白 ~190px）。
     改為下限 0.5rem，由 table 撐滿 wrap 高度後平均分配至各列。 */
  .editorial-table th {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
  .editorial-table td {
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .app-bento-grid {
    gap: 0.75rem;
  }
  .app-card {
    padding: 0.85rem 1.15rem;
  }
  .app-card-top {
    margin-bottom: 0.3rem;
  }
  .app-card h3 {
    font-size: 1.08rem;
    line-height: 1.25;
    margin-bottom: 0.28rem;
  }
  .app-card p {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.45rem;
  }
  .app-telemetry-grid {
    padding-top: 0.45rem;
    gap: 0.45rem;
  }
  .app-telemetry-item {
    padding: 0.35rem 0.65rem;
  }
  .app-telemetry-item span {
    font-size: 0.66rem;
    margin-bottom: 0.1rem;
  }
  .app-telemetry-item strong {
    font-size: 0.8rem;
  }

  /* 03 企業聯絡 (contact.html): INQUIRY / LOGISTICS */
  .contact-integrated-grid {
    gap: 1.1rem;
  }
  .dossier-light-card,
  .form-card {
    padding: 1.05rem 1.45rem;
  }
  .dossier-light-header {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
  }
  .dossier-list {
    gap: 0.5rem;
  }
  .dossier-item {
    gap: 0.65rem;
    padding-bottom: 0.5rem;
    font-size: 0.86rem;
  }
  .dossier-label {
    font-size: 0.72rem;
  }
  .copy-action-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    gap: 0.4rem;
  }
  .form-grid-2col {
    gap: 0.65rem;
  }
  .form-field {
    margin-bottom: 0.65rem;
  }
  .form-field label {
    margin-bottom: 0.25rem;
    font-size: 0.74rem;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
  }
  .form-field textarea {
    min-height: 52px;
  }

  .logistics-workflow-grid {
    gap: 1.1rem;
  }
  .editorial-info-card {
    padding: 1.1rem 1.5rem;
  }
  .step-item-row {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
  }

  /* ==========================================
     [v2] LAPTOP FILL CHAIN — 僅作用於 4 個異常子頁
     壓電模擬 / 諧振示波 / 製程架構 / 工程規格
     stage → container → active panel → 主元件 逐層 flex 填滿，
     讓內容剛好吃滿 Header 與 Footer 之間的空間（Zero-Scroll、無大片留白）。
     .compact-panel-header 不做任何更動。
     ========================================== */
  .viewport-stage > .container:has(> #panel-lattice.active),
  .viewport-stage > .container:has(> #panel-wave.active),
  .viewport-stage > .container:has(> #panel-benchmark.active),
  .viewport-stage > .container:has(> #panel-matrix.active) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #panel-lattice.active,
  #panel-wave.active,
  #panel-benchmark.active,
  #panel-matrix.active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0.5rem;
  }

  /* 壓電模擬：Canvas 外框撐滿，畫布吃掉剩餘高度 */
  #panel-lattice .canvas-showcase-frame {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 530px;
  }
  #panel-lattice .canvas-toolbar {
    flex: 0 0 auto;
  }
  /* 畫布以 absolute 鋪滿，避免 canvas 內部像素尺寸反向撐高容器 */
  #panel-lattice .canvas-viewport,
  #panel-wave .osc-screen-wrap {
    flex-basis: 0;
  }
  #panel-lattice #particleCanvas,
  #panel-wave #waveCanvas {
    position: absolute;
    inset: 0;
  }

  /* 諧振示波：示波器主控台撐滿，波形螢幕吃掉剩餘高度 */
  #panel-wave .oscilloscope-console {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 520px;
  }
  #panel-wave .osc-header-bar,
  #panel-wave .osc-controls-row,
  #panel-wave .osc-readout-grid {
    flex: 0 0 auto;
  }
  #panel-wave .osc-controls-row {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
  #panel-wave .osc-readout-cell {
    padding: 0.8rem 1.5rem;
  }

  /* 製程架構：回補卡片內距，對比框撐滿剩餘高度 */
  #panel-benchmark .kpi-strip-grid {
    gap: 1rem;
    margin-bottom: clamp(0.75rem, 1.6vh, 1.1rem);
  }
  #panel-benchmark .kpi-strip-card {
    padding: clamp(0.8rem, 1.6vh, 1.1rem) 1.25rem;
  }
  #panel-benchmark .benchmark-dark-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 440px;
    padding: clamp(1.1rem, 2.2vh, 1.6rem) 1.8rem;
  }
  #panel-benchmark .benchmark-top {
    margin-bottom: clamp(0.75rem, 1.6vh, 1.15rem);
  }
  #panel-benchmark .direct-duel-grid {
    flex: 1 1 auto;
    gap: 1rem;
  }
  #panel-benchmark .duel-card {
    padding: clamp(0.75rem, 1.5vh, 1rem) 1.1rem;
  }
  #panel-benchmark .duel-compare-cols {
    padding: 0.6rem 0.65rem;
    margin-bottom: 0.6rem;
  }

  /* 工程規格：表格外框撐滿，table 高度平均分配至 7 列 */
  #panel-matrix .comparison-table-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 500px;
  }
  #panel-matrix .editorial-table {
    flex: 1 1 auto;
  }
}

/* ==========================================
   [v3] MID-HEIGHT BAND (821px – 900px)
   例：1280×832、1440×821、1536×864、1920×880
   僅收斂「晶圓鍵合」與「製程架構」內部元件以消除 35～68px 垂直溢出。
   高度 > 900px（27 吋 1080p / 1440p）與 ≤ 820px 筆電規則完全不受影響；
   .compact-panel-header 不做任何更動。
   ========================================== */
@media (min-width: 1025px) and (min-height: 821px) and (max-height: 900px) {
  /* 晶圓鍵合 (inspector)：右側 4 張選單卡為高度主因 */
  /* 僅縮減 Footer 上方的底部留白（頂部 padding 不動 → 標題位置不變） */
  .viewport-stage {
    padding-bottom: 0.5rem;
  }

  #panel-inspector .inspector-merged-grid {
    min-height: 0;
  }
  #panel-inspector .wafer-exploded-svg-widened {
    max-height: clamp(235px, 29vh, 290px);
  }
  #panel-inspector .inspector-right-menu {
    gap: 0.4rem;
  }
  #panel-inspector .insp-menu-card {
    padding: 0.5rem 1.05rem;
  }
  #panel-inspector .insp-menu-card p {
    line-height: 1.32;
    margin-bottom: 0.2rem;
  }
  #panel-inspector .insp-mini-pills span {
    padding-top: 0.06rem;
    padding-bottom: 0.06rem;
  }

  /* 製程架構 (benchmark)：KPI 列與對比框內距收斂 */
  #panel-benchmark .kpi-strip-grid {
    margin-bottom: 1rem;
  }
  #panel-benchmark .kpi-strip-card {
    padding: 0.88rem 1.3rem;
  }
  #panel-benchmark .benchmark-dark-box {
    padding: 1.5rem 2rem;
  }
  #panel-benchmark .benchmark-top {
    margin-bottom: 1.15rem;
  }
  #panel-benchmark .duel-card {
    padding: 0.95rem 1.15rem;
  }
  #panel-benchmark .duel-compare-cols {
    margin-bottom: 0.6rem;
  }

  /* 窄視窗（1025～1200px 寬）文字折行較多時的保險收斂 */
  #panel-matrix .editorial-table td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }
  #panel-wave .osc-readout-cell {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  #panel-verticals .app-bento-grid {
    gap: 0.8rem;
  }
  #panel-verticals .app-card {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }
}

/* ==========================================================
   HOMEPAGE BRAND TAGLINE（品牌宣言）— 方案 E「微影曝光掃描」
   2026-11-12 主管裁決：
   1) 掃描線只播放一次，約 1.5 秒完成，不再循環干擾閱讀
   2) 亮綠改為與 Qurvance 藍銀識別相容的冰藍色（取樣自 LOGO 圖形高光 #C0E0F0 與中藍 #3090D0）
   3) 標語與下方中文標題加大間距，區隔「品牌宣言」與「產品技術主張」兩個層級
   字級：英文標語約為中文大標 1.1 倍；中文兩行大標同步縮小。
   ========================================================== */
:root {
  --accent-ice: #7CC3EA;        /* 掃描線主色（裝飾） */
  --accent-ice-glow: rgba(124, 195, 234, 0.55);
  --accent-ice-ink: #2D6A96;    /* 冰藍小字：對白底 5.81:1，符合 WCAG AA */
  --brand-navy: #0A2F66;        /* 午夜藍：漸層起點，亦用於對位角標 */
  --brand-blue: #0060A0;        /* LOGO 圖形深藍 */
  --brand-blue-mid: #3090D0;    /* LOGO 圖形中藍 */
  /* 標語字色：選項 07「LOGO 漸層」— 仿 LOGO 圖形由深藍漸亮（2026-11-12 定案） */
  --brand-gradient: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-blue) 55%, var(--brand-blue-mid) 100%);
  --hero-tagline-size: calc(clamp(1.6rem, 2.45vw, 2.3rem) * 1.1);
  --hero-zh-size: calc(var(--hero-tagline-size) * 0.58);   /* 中文大標縮為英文標語約 0.58 倍（2026-11-12 依參考圖） */
}

.hero-copy { display: flex; flex-direction: column; }
.hero-tagline { margin: 0 0 clamp(1.6rem, 3.2vh, 2.4rem); }

@media (min-width: 641px) {
  .hero-copy .editorial-h1 { font-size: var(--hero-zh-size); line-height: 1.6; letter-spacing: -0.01em; }
}
@media (max-width: 640px) {
  :root { --hero-tagline-size: 1.6rem; }
  .hero-tagline { margin-bottom: 1.4rem; }
  .hero-copy .editorial-h1 { font-size: 1rem; line-height: 1.6; letter-spacing: -0.01em; }
}

.hero-tagline .tg {
  font-family: var(--font-display);
  font-size: var(--hero-tagline-size);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--brand-blue);    /* 不支援文字漸層的瀏覽器：退回 LOGO 深藍 */
  margin: 0;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-tagline .tg {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tE { position: relative; display: block; padding: 0.85rem 1.15rem; }
.tE::before, .tE::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--brand-navy); }
.tE::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tE::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.tE .tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 0.4rem; }
.tE .tag i { font-style: normal; color: var(--accent-ice-ink); }

/* 掃描線：每次載入由上而下掃過一次（1.5 秒），掃到底後原樣停住、不消失（2026-11-12 修訂） */
.tE .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent-ice);
  box-shadow: 0 0 10px 2px var(--accent-ice-glow);
  opacity: 0; pointer-events: none;
  animation: tE-scan-once 1.5s 0.35s ease-in-out forwards;
}
@keyframes tE-scan-once {
  0%   { top: 0; opacity: 0; }
  12%  { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tE .scan { animation: none; top: calc(100% - 2px); opacity: 1; }
}


/* ==========================================================
   HOMEPAGE HEIGHT FIT（2026-11-13）
   寬螢幕但視窗較矮（例如 1512×720、1920×768）時，首頁字級與間距改依「視窗高度」縮放，
   確保一頁呈現；高度充足（≥ 900px）時與原設定相同。
   ========================================================== */
@media (min-width: 1025px) {
  :root { --hero-tagline-size: calc(clamp(1.6rem, min(2.45vw, 4.3vh), 2.3rem) * 1.1); }
  .hero-eyebrow-row { margin-bottom: clamp(0.7rem, 2.2vh, 1.25rem); }
  .hero-tagline { margin-bottom: clamp(1rem, 3.2vh, 2.4rem); }
  .hero-top-grid { margin-bottom: clamp(1.1rem, 3.5vh, 3rem); }
  .english-whisper { margin-top: clamp(0.4rem, 1.1vh, 0.75rem); }
  .metric-cell { padding-top: clamp(0.85rem, 2.2vh, 1.4rem); padding-bottom: clamp(0.85rem, 2.2vh, 1.4rem); }
  .metric-num { font-size: clamp(1.6rem, min(3vw, 5.2vh), 2.5rem); }
}
@media (min-width: 1025px) and (max-height: 760px) {
  .hero-copy .editorial-h1 { line-height: 1.45; }
  .tE { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}
@media (min-width: 1025px) and (max-height: 680px) {
  .hero-copy .editorial-h1 { line-height: 1.35; }
  .english-whisper { font-size: 0.92rem; }
  .metric-label { margin-top: 0.25rem; }
  .hero-lead-box { gap: 1rem; }
}

/* ==========================================================
   公司標語與公司精神（2026-11-13 定案：S1-C、S2-B、C-3）
   ========================================================== */
/* 公司精神：首頁英文標語上方，LOGO 漸層字 */
.brand-values { margin: 0 0 clamp(0.5rem, 1.4vh, 0.85rem); font-family: 'Inter', var(--font-body, sans-serif); text-transform: uppercase; white-space: nowrap; line-height: 1;
  font-size: 0.95rem; letter-spacing: 0.26em; font-weight: 700; color: var(--brand-blue); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-values { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
}
.brand-values i { font-style: normal; padding: 0 0.85em; color: var(--accent-ice); -webkit-text-fill-color: var(--accent-ice); }

/* 標語 2：首頁四大指標上方 */
.brand-slogan-metrics { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(0.4rem, 1.1vh, 0.7rem);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-muted); white-space: nowrap; }
.brand-slogan-metrics b { color: var(--brand-blue); font-weight: 700; }
.brand-slogan-metrics::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--brand-blue-mid), transparent); }

/* 標語 1：聯絡我們頁企業資訊卡底部 */
.brand-slogan-dossier { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-left: 3px solid var(--brand-blue-mid); background: #fff; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.brand-slogan-dossier .zh { font-family: var(--font-display); font-weight: 700; color: var(--ink-solid); letter-spacing: 0.02em; margin: 0; font-size: 1.12rem; }
.brand-slogan-dossier .en { font-family: var(--font-display); font-weight: 600; color: var(--brand-blue); letter-spacing: 0.01em; margin: 0.25rem 0 0; font-size: 0.86rem; }

@media (max-width: 640px) {
  .brand-values { white-space: normal; line-height: 1.6; letter-spacing: 0.18em; font-size: 0.7rem; }
  .brand-slogan-metrics { white-space: normal; letter-spacing: 0.16em; font-size: 0.66rem; }
}

/* ==========================================================
   HEADER LOGO SCALE（2026-11-13 定案 L-1）
   英文字標約為 LOGO 圖形 95% 高，中文同步放大；三者一起放大，
   右緣不超過首頁左右欄的分隔線（1440 以上圖形 49px；1100 以下維持 38px）。頁首高度 74px 不變。
   ========================================================== */
@media (min-width: 1025px) {
  :root { --logo-h: clamp(38px, calc(3.9vw - 6px), 49px); }
  .brand-identity { gap: calc(var(--logo-h) * 0.24); }
  .brand-identity .brand-mark-img { height: var(--logo-h); }
  .brand-identity .brand-wordmark-img { height: calc(var(--logo-h) * 0.95); }
  .brand-zh { font-size: calc(var(--logo-h) * 0.62); padding-left: calc(var(--logo-h) * 0.26); border-left-width: 2px; letter-spacing: 0.02em; }
  .header-inner { gap: 1.25rem; }
}

/* ==========================================================
   SUBPAGE NARROW / SHORT FIT（2026-11-13）
   1) 寬 1025～1199：頁尾縮字保持一行（原本折成兩行多佔約 30px）
   2) 寬 1025～1199 且高 ≤ 820：四大技術右側選單收斂
   3) 高 ≤ 700：各子頁標題、卡片內距再收斂一級
   ========================================================== */
@media (min-width: 1025px) and (max-width: 1199px) {
  .footer-bottom { font-size: 0.66rem; }
  .footer-bottom-inner { gap: 0.5rem; }
}
@media (min-width: 1025px) and (max-width: 1199px) and (max-height: 820px) {
  #panel-inspector .inspector-right-menu,
  #panel-inspector .insp-menu-list { gap: 0.3rem; }
  #panel-inspector .insp-menu-card { padding: 0.32rem 0.7rem; }
  #panel-inspector .insp-menu-card h4 { font-size: 0.86rem; margin-bottom: 0.1rem; }
  #panel-inspector .insp-menu-card p { font-size: 0.7rem; line-height: 1.28; margin-bottom: 0.1rem; }
  #panel-inspector .wafer-exploded-svg-widened { max-height: 205px; }
}
@media (min-width: 1025px) and (max-height: 700px) {
  .viewport-stage { padding-top: 0.5rem; padding-bottom: 0.35rem; }
  .compact-panel-header { margin-bottom: 0.4rem; }
  .compact-panel-header .editorial-h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
  .compact-panel-header p { font-size: 0.8rem; line-height: 1.4; }

  #panel-benchmark .kpi-strip-grid { margin-bottom: 0.6rem; }
  #panel-benchmark .kpi-strip-card { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  #panel-benchmark .benchmark-dark-box { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  #panel-benchmark .benchmark-top { margin-bottom: 0.5rem; }

  .app-bento-grid { gap: 0.6rem; }
  .app-card { padding-top: 0.65rem; padding-bottom: 0.65rem; }

  .dossier-light-card, .form-card { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .dossier-item { padding-bottom: 0.38rem; }
  .dossier-list { gap: 0.38rem; }
  .form-field { margin-bottom: 0.5rem; }
  .brand-slogan-dossier { margin-top: 0.8rem; padding: 0.7rem 1rem; }

  .editorial-info-card { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .step-item-row { padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  #panel-benchmark .duel-card-top .mono-tag { font-size: 0.6rem; letter-spacing: 0.04em; }
  #panel-benchmark .direct-duel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #panel-benchmark .duel-card { min-width: 0; padding-left: 0.95rem; padding-right: 0.95rem; }
  #panel-benchmark .duel-compare-cols { gap: 0.4rem; padding-left: 0.5rem; padding-right: 0.5rem; }
}
@media (min-width: 1025px) and (max-width: 1199px) and (max-height: 700px) {
  #panel-inspector .inspector-left-card .wafer-exploded-svg-widened { max-height: 170px; }
}
@media (min-width: 1025px) and (max-width: 1199px) and (min-height: 821px) and (max-height: 900px) {
  .osc-screen-wrap { height: clamp(240px, 33vh, 320px); }
}
@media (min-width: 1025px) and (max-height: 700px) {
  #panel-wave .osc-screen-wrap { min-height: 160px; }
  #panel-inspector .wafer-exploded-svg-widened { max-height: 185px; }
  #panel-inspector .inspector-right-menu,
  #panel-inspector .insp-menu-list { gap: 0.3rem; }
  #panel-inspector .insp-menu-card { padding-top: 0.3rem; padding-bottom: 0.3rem; }
  #panel-inspector .insp-menu-card p { line-height: 1.28; margin-bottom: 0.1rem; }
}

/* 製程架構三張對比卡：數值依螢幕寬度縮放，避免「0.35 pF / <0.08 nH」等長數值超出卡片（1440 以下） */
@media (min-width: 1025px) {
  #panel-benchmark .duel-val.legacy { font-size: clamp(0.8rem, 1.2vw, 1.08rem); }
  #panel-benchmark .duel-val.qurvance { font-size: clamp(0.85rem, 1.32vw, 1.2rem); }
  #panel-benchmark .duel-val small { font-size: clamp(0.58rem, 0.7vw, 0.7rem); }
}
@media (min-width: 1025px) and (max-width: 1099px) {
  #panel-benchmark .duel-val.qurvance { font-size: 0.8rem; }
  #panel-benchmark .duel-card .duel-compare-cols { padding-left: 0.4rem; padding-right: 0.4rem; gap: 0.3rem; }
}
@media (min-width: 1025px) and (max-width: 1099px) and (max-height: 700px) {
  #panel-inspector .inspector-left-card .wafer-exploded-svg-widened { max-height: 155px; }
}
@media (min-width: 1025px) and (max-width: 1099px) and (max-height: 820px) {
  #panel-logistics .editorial-info-card { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  #panel-logistics .step-item-row { padding-bottom: 0.45rem; margin-bottom: 0.45rem; }
  #panel-logistics .step-item-body p { font-size: 0.78rem; line-height: 1.42; }
}

/* 小螢幕手機（≤ 380px，例如 360 寬 Android）：頁首 LOGO 與選單按鈕收斂，避免右側超出 14px */
@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }
  .brand-identity { gap: 0.25rem; }
  .brand-identity .brand-mark-img { height: 22px; }
  .brand-identity .brand-wordmark-img { height: 13px; }
  .brand-zh { font-size: 0.64rem; padding-left: 0.3rem; }
  .header-inner { gap: 0.4rem; }
  .mobile-menu-toggle { padding: 0.38rem 0.55rem; font-size: 0.7rem; flex-shrink: 0; }
}
@media (max-width: 380px) {
  .brand-values { letter-spacing: 0.12em; font-size: 0.64rem; max-width: 100%; }
  .brand-values i { padding: 0 0.5em; }
}
@media (max-width: 340px) {
  .brand-identity .brand-mark-img { height: 20px; }
  .brand-identity .brand-wordmark-img { height: 12px; }
  .brand-zh { font-size: 0.56rem; padding-left: 0.25rem; letter-spacing: -0.02em; }
  .mobile-menu-toggle { padding: 0.34rem 0.45rem; font-size: 0.66rem; }
}
@media (max-width: 380px) {
  .hero-actions .btn-primary-dark { font-size: 0.82rem; padding-left: 1rem; padding-right: 1rem; gap: 0.45rem; white-space: nowrap; }
}

/* ==========================================================
   LARGE SCREEN SCALE（2026-11-16）
   1920×1080、2560×1440 等大螢幕：以 1440×900 版面為基準整體等比放大，
   填滿螢幕、減少左右與上下大片留白。
   根字級 = min(視窗寬 ÷ 1440, 視窗高 ÷ 900) × 16px；原本以 px 固定的尺寸改用 rem 一起放大。
   1700px 以下（含筆電、MacBook）不受影響。
   ========================================================== */
@media (min-width: 1700px) and (min-height: 950px) {
  html { font-size: max(16px, min(1.1111vw, 1.75vh)); }
  :root {
    --container-max: min(92vw, 100rem);
    --header-h: 4.625rem;
    --footer-h: 3.25rem;
    --logo-h: 3.0625rem;
    --gutter: 3.25rem;
  }
  .dropdown-menu { min-width: 13.125rem; }
  .cleanroom-visual-frame { min-height: 18.125rem; }
  .cleanroom-logo-pod img { height: 2.5rem; }
  .cleanroom-hud-bottom { max-width: 48.75rem; }
  .compact-panel-header p { max-width: 53.75rem; }
  .canvas-viewport { height: clamp(20rem, 48vh, 28.125rem); }
  .osc-slider-group input[type="range"] { width: 8.125rem; }
  .osc-screen-wrap { height: clamp(15rem, 38vh, 20rem); }
  .chapter-visual img { height: clamp(16.25rem, 36vh, 20.625rem); }
  .inspector-merged-grid { min-height: clamp(26rem, 50vh, 31.25rem); }
  .wafer-exploded-svg-widened { max-height: clamp(18.125rem, 38vh, 21.5625rem); }
  .inspector-photo-wrap { height: clamp(11.5625rem, 24vh, 13.125rem); }
}

/* 404 頁 */
.page-404 { max-width: 46rem; }
.page-404 .editorial-h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0.4rem 0 0.8rem; }
.page-404-lead { color: var(--ink-body); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.6rem; }
