/* =========================================================================
   FUSION DREAM — 3D PRODUCT ECOSYSTEM
   Natural Sans Typography · Smooth Uniform 1px Borders · Airy Card Rhythm
   ========================================================================= */
:root {
  --bg-space: #050810;

  /* Smooth Obsidian Surfaces */
  --surface-panel: rgba(9, 13, 24, 0.90);
  --surface-sheet: rgba(8, 12, 22, 0.96);
  --surface-card: rgba(11, 16, 29, 0.88);
  --surface-card-hover: rgba(16, 23, 40, 0.94);
  --surface-item: rgba(255, 255, 255, 0.034);
  --surface-item-hover: rgba(255, 255, 255, 0.074);

  /* Uniform, Soft 1px Borders (Zero Mismatched Top Bars, Zero Spreadsheet Grids) */
  --border-panel: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.068);
  --border-hover: rgba(255, 255, 255, 0.18);
  --rim-top: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --shadow-panel: 0 24px 56px -12px rgba(0, 0, 0, 0.68), 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-tag: 0 6px 18px rgba(0, 0, 0, 0.48);

  /* Crisp Neutral Slate Palette (No Muddy Tan Text, No Neon Cyan Glow) */
  --text-primary: #f8fafc;
  --text-secondary: rgba(226, 232, 240, 0.78);
  --text-muted: #94a3b8;

  /* Balanced Modern Radii */
  --r-panel: 14px;
  --r-card: 11px;
  --r-item: 9px;
  --r-btn: 8px;
  --r-tag: 6px;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

/* Sleek Thin Scrollbars */
.editorial-card::-webkit-scrollbar,
.panel-body::-webkit-scrollbar,
.ed-sys-index::-webkit-scrollbar,
.quick-search-results::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.editorial-card::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track,
.ed-sys-index::-webkit-scrollbar-track,
.quick-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.editorial-card::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb,
.ed-sys-index::-webkit-scrollbar-thumb,
.quick-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

/* Fixed Fullscreen 3D Canvas */
#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  cursor: grab;
}

#canvas-container:active,
body.is-dragging-3d #canvas-container {
  cursor: grabbing !important;
}

#scroll-track {
  position: relative;
  width: 100%;
  height: 680vh;
  z-index: 2;
  pointer-events: none;
}

body.is-2d-web #canvas-container {
  cursor: default;
}

body.is-2d-web #spacetime-cursor,
body.is-2d-web .scroll-rail,
body.is-2d-web .micro-hint,
body.is-wormhole-dive #spacetime-cursor,
body.is-wormhole-dive .scroll-rail,
body.is-wormhole-dive .micro-hint {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Minimal Reticle Cursor */
#spacetime-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#spacetime-cursor.is-active:not(.is-over-ui) {
  opacity: 1;
}

#spacetime-cursor.is-over-ui {
  opacity: 0 !important;
}

.cursor-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

#spacetime-cursor.is-lensing .cursor-ring,
#spacetime-cursor.is-hover-target .cursor-ring {
  transform: scale(1.34);
  border-color: rgba(255, 255, 255, 0.82);
}

@media (hover: none),
(pointer: coarse) {
  #spacetime-cursor {
    display: none;
  }
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-space);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader.is-hidden {
  display: none !important;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-horizon {
  width: 34px;
  height: 34px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.preloader-code {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.preloader-bar {
  width: 168px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#preloader-fill {
  display: block;
  width: 35%;
  height: 100%;
  background: #ffffff;
  transition: width 0.35s ease;
}

/* =========================================================================
   TOP HEADER BAR
   ========================================================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.6vw;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.88) 0%, rgba(5, 8, 16, 0.40) 74%, rgba(5, 8, 16, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transition: background 0.28s ease, border-color 0.28s ease;
}

body.is-2d-web .top-bar {
  background: rgba(6, 9, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-panel);
}

.top-bar > * {
  pointer-events: auto;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.76rem;
  padding: 0.28rem 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: opacity 0.18s ease;
}

.brand-btn:hover {
  opacity: 0.86;
}

.brand-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.brand-header-logo {
  height: 22px;
  width: auto;
  max-width: 124px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.brand-copy small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
}

/* Center Underline Navigation with Smooth Sliding Indicator */
.top-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 62px;
  gap: 1.35rem;
}

.nav-active-slider {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  background: #ffffff;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width;
}

.nav-active-slider.is-ready {
  opacity: 1;
}

.nav-active-slider.no-anim {
  transition: none !important;
}

.nav-link {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0 0.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link span {
  font-size: 0.70rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.56);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.is-active span {
  color: #cbd5e1;
}

.corp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-btn);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.corp-btn:hover,
.corp-btn.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #060911;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-exec-primary,
.btn-exec-secondary {
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  padding: 0.6rem 1.06rem;
  border-radius: var(--r-btn);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.btn-exec-primary {
  background: #f8fafc;
  color: #060911;
  border: 1px solid #f8fafc;
}

.btn-exec-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.btn-exec-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-exec-secondary:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-icon-glass {
  width: 36px;
  height: 36px;
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn-icon-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* =========================================================================
   3D EDITORIAL STAGE CARDS (SMOOTH 14PX CORNERS, UNIFORM 1PX BORDER)
   ========================================================================= */
.editorial-stage {
  position: fixed;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-stage.is-suppressed {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, -10px, 0) scale(0.988);
}

.editorial-block {
  position: absolute;
  top: 50%;
  width: min(410px, 29vw);
  max-height: calc(100vh - 168px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--ed-x, 0px), calc(-50% + var(--ed-y, 0px)), 0) scale(var(--ed-scale, 1));
  will-change: transform, opacity;
}

.editorial-block[data-ed-chapter='0'] {
  width: min(444px, 31.5vw);
}

.editorial-block[data-ed-chapter='1'] {
  width: min(442px, 31.5vw);
}

.editorial-block[data-ed-chapter='2'] {
  width: min(472px, 34.5vw);
}

.editorial-block.pos-left {
  left: 2.6vw;
}

.editorial-block.pos-right {
  right: max(4.2rem, 4.4vw);
}

.editorial-block.is-interactive {
  pointer-events: auto;
}

.editorial-card {
  position: relative;
  background: var(--surface-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--r-panel);
  padding: 1.48rem 1.58rem;
  max-height: calc(100vh - 168px);
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  box-shadow: var(--shadow-panel), var(--rim-top);
}

.ed-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ed-hero-head .ed-eyebrow {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Clean Sans-Serif Eyebrow (Zero Monospace, Zero All-Caps, Zero Stick) */
.ed-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  margin-bottom: 0.54rem;
}

.ed-dot {
  display: none;
}

.ed-title-xl {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 1.70vw, 1.66rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.024em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ed-title-accent {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: clamp(1.00rem, 1.24vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #cbd5e1;
}

.ed-title-lg {
  font-family: var(--font-display);
  font-size: clamp(1.34rem, 1.70vw, 1.62rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.024em;
  color: #ffffff;
  margin-bottom: 0.68rem;
}

.ed-lead {
  font-size: 0.855rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 1.08rem;
}

.ed-lead strong {
  color: #ffffff;
  font-weight: 600;
}

.ed-subcopy {
  font-size: 0.81rem;
  line-height: 1.54;
  color: var(--text-secondary);
  margin-bottom: 0.86rem;
}

/* Clean 3-Column Hero KPI Row */
.ed-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0.78rem 0;
  margin-bottom: 1.12rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ed-kpi-card {
  padding: 0 0.78rem;
}

.ed-kpi-card:first-child {
  padding-left: 0;
}

.ed-kpi-card:last-child {
  padding-right: 0;
}

.ed-kpi-card:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.ed-kpi-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.026em;
  margin-bottom: 0.16rem;
}

.ed-kpi-card span {
  display: block;
  font-size: 0.70rem;
  color: var(--text-muted);
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.editorial-block[data-ed-chapter='0'] .ed-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.editorial-block[data-ed-chapter='0'] #btn-hero-tour {
  grid-column: 1 / -1;
}

/* Chapter 1 Chairman Quote & Strategic Rows */
.ed-quote {
  margin: 0 0 0.92rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 var(--r-item) var(--r-item) 0;
  background: rgba(255, 255, 255, 0.028);
}

.ed-quote p {
  font-size: 0.805rem;
  line-height: 1.56;
  color: #e2e8f0;
  margin: 0;
}

.ed-quote-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-top: 0.42rem;
}

.ed-quote-author strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

.ed-quote-author span {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.ed-domain-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.ed-domain-card {
  padding: 0.66rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ed-domain-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ed-domain-head {
  display: flex;
  align-items: baseline;
  gap: 0.46rem;
  margin-bottom: 0.18rem;
}

.ed-domain-num {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ed-domain-head strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.ed-domain-card > span {
  display: block;
  font-size: 0.755rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

.ed-values-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: 0.36rem;
}

.ed-value-chip {
  font-size: 0.69rem;
  font-weight: 500;
  padding: 0.2rem 0.52rem;
  border-radius: 5px;
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
}

/* Chapter 2 Clean Airy 2-Column 16-Unit Directory (Zero Boxy Spreadsheet Grid!) */
.ed-sys-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  max-height: min(52vh, 456px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.ed-sys-btn {
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 0.54rem 0.68rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ed-sys-btn:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.ed-sys-btn-head {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  margin-bottom: 0.14rem;
}

.ed-sys-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sys-accent, #cbd5e1);
  flex-shrink: 0;
}

.ed-sys-idx {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  flex-shrink: 0;
}

.ed-sys-btn strong {
  min-width: 0;
  font-size: 0.765rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-sys-meta {
  display: block;
  font-size: 0.67rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Scroll Progress Rail */
.scroll-rail {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.44rem;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scroll-rail.is-dimmed,
body.is-inspecting .scroll-rail {
  opacity: 0 !important;
  visibility: hidden;
}

.rail-num {
  font-size: 0.66rem;
  font-weight: 600;
  color: #e2e8f0;
}

.rail-num.muted {
  color: var(--text-muted);
}

.scroll-rail-track {
  width: 2px;
  height: 96px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

#scroll-rail-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 22px;
  border-radius: 99px;
  background: #ffffff;
}

/* =========================================================================
   3D PROJECTED CALLOUTS & TRANSPARENT CUTOUT LOGO TAGS
   ========================================================================= */
.label-leaders {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 17;
  pointer-events: none;
  overflow: visible;
  transition: opacity 0.22s ease;
}

#labels-layer {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
}

.entity-tag {
  position: absolute;
  top: 0;
  left: 0;
  contain: layout style;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.26rem 0.62rem;
  border-radius: var(--r-btn);
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-tag);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  will-change: transform, opacity;
}

.entity-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entity-tag .tag-idx {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding-right: 0.36rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.entity-tag:hover,
.entity-tag.is-active {
  background: rgba(18, 26, 44, 0.94);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.entity-tag.is-core {
  padding: 0.3rem 0.78rem;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(10, 15, 27, 0.92);
  font-weight: 600;
  font-size: 0.74rem;
  color: #ffffff;
}

.entity-tag.is-core .core-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
}

/* Original Brand 3D Floating Logo Badges */
.entity-tag.is-logo-tag {
  justify-content: center;
  height: auto;
  min-width: 0;
  padding: 4px 8px;
  gap: 0;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.52);
  transition: opacity 0.24s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.entity-tag.is-sector-dimmed {
  opacity: 0.20 !important;
}

.entity-tag.is-sector-match {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.68), 0 0 0 1.5px rgba(255, 255, 255, 0.95);
}

.entity-tag.is-logo-tag .entity-tag-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 112px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border-radius: 3px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.entity-tag.is-logo-tag:hover,
.entity-tag.is-logo-tag.is-active {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.68), 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.entity-tag.is-logo-tag:hover .entity-tag-logo,
.entity-tag.is-logo-tag.is-active .entity-tag-logo {
  transform: scale(1.05);
}

.entity-tag.is-core.is-logo-tag {
  padding: 5px 10px;
  border-radius: 8px;
}

.entity-tag.is-core.is-logo-tag .entity-tag-logo {
  max-height: 36px;
  max-width: 138px;
}

/* Orbiting Satellite Callout Tags */
.sat-tag {
  position: absolute;
  top: 0;
  left: 0;
  contain: layout style;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.56rem;
  border-radius: var(--r-tag);
  background: rgba(8, 12, 22, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-tag);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
  will-change: transform, opacity;
}

.sat-tag .sat-code {
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 600;
  padding-right: 0.34rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sat-tag:hover,
.sat-tag.is-active {
  background: rgba(18, 26, 44, 0.95);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

/* =========================================================================
   50/50 INSPECTOR SHEET (#detail-panel)
   ========================================================================= */
.detail-panel {
  position: fixed;
  top: 4.5rem;
  right: 1.4rem;
  bottom: 1.2rem;
  width: calc(50vw - 1.8rem);
  z-index: 42;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-sheet);
  border: 1px solid var(--border-panel);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel), var(--rim-top);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(20px, 0, 0);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelBodyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.panel-body.is-entering > * {
  animation: panelBodyIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-tour-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.panel-tour-bar.is-active {
  opacity: 1;
}

.panel-tour-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #ffffff;
}

.panel-tour-badge {
  display: none;
  align-items: center;
  gap: 0.32rem;
  padding: 0.18rem 0.52rem;
  border-radius: var(--r-tag);
  font-size: 0.68rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-panel);
  margin-right: 0.2rem;
}

.panel-tour-badge.is-active {
  display: inline-flex;
}

.detail-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.detail-panel.no-anim {
  transition: none !important;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1.52rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.panel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 0;
}

.crumb-root-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease;
}

.crumb-root-btn:hover {
  color: #ffffff;
}

.crumb-active {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-nav-group {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: var(--r-tag);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.icon-btn:hover {
  color: #ffffff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.10);
}

.panel-body {
  position: relative;
  padding: 1.3rem 1.52rem 1.7rem;
  overflow-y: auto;
  flex: 1;
}

.panel-footer {
  padding: 0.9rem 1.52rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.015);
}

.panel-footer .btn-exec-primary,
.panel-footer .btn-exec-secondary {
  flex: 1;
  padding: 0.58rem 0.78rem;
  font-size: 0.79rem;
  white-space: nowrap;
}

/* Horizontal Drawer Brand Header */
.panel-hero {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding-bottom: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
}

.panel-hero-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-logo-pill {
  background: #ffffff;
  width: 118px;
  height: 64px;
  padding: 7px 11px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.panel-logo-pill img {
  max-height: 48px;
  max-width: 96px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cat-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--unit-accent, #cbd5e1);
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.024em;
  color: #ffffff;
}

.panel-subtitle {
  font-size: 0.81rem;
  line-height: 1.46;
  color: var(--text-secondary);
}

.panel-tagline {
  font-size: 0.80rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0 0 0.74rem;
}

.client-target-box {
  font-size: 0.79rem;
  line-height: 1.56;
  color: var(--text-secondary);
  padding: 0.64rem 0.88rem;
  border-left: 2px solid var(--unit-accent, rgba(255, 255, 255, 0.28));
  border-radius: 0 var(--r-item) var(--r-item) 0;
  background: rgba(255, 255, 255, 0.028);
  margin-bottom: 0.88rem;
}

.client-target-box strong {
  color: #ffffff;
  font-weight: 600;
}

.panel-summary {
  font-size: 0.835rem;
  line-height: 1.64;
  color: var(--text-secondary);
  margin-bottom: 0.98rem;
}

/* Spaced Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.metrics-row.is-2col {
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  padding: 0.64rem 0.74rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
}

.metric-cell span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.16rem;
}

.metric-cell strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #ffffff;
}

/* Underline Tabs inside Drawer */
.drawer-tabs {
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.08rem;
}

.drawer-tab-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 500;
  padding: 0.44rem 0 0.62rem;
  cursor: pointer;
  transition: color 0.16s ease;
}

.drawer-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.drawer-tab-btn:hover {
  color: var(--text-primary);
}

.drawer-tab-btn.is-active {
  color: #ffffff;
  font-weight: 600;
}

.drawer-tab-btn.is-active::after {
  transform: scaleX(1);
}

.tab-pane {
  display: none;
}

.tab-pane.is-active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.section-heading-title {
  font-size: 0.80rem;
  font-weight: 600;
  color: #f1f5f9;
}

.section-heading-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sat-quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-bottom: 0.72rem;
}

.sat-chip {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 500;
  padding: 0.26rem 0.58rem;
  border-radius: var(--r-tag);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sat-chip:hover {
  border-color: var(--border-hover);
  color: #ffffff;
}

.sat-chip.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Clean Spaced Capability Accordion */
.satellite-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 1.2rem;
}

.satellite-item {
  width: 100%;
  text-align: left;
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-item);
  padding: 0.74rem 0.88rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.satellite-item:hover {
  background: var(--surface-item-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.satellite-item.is-active {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.20);
}

.sat-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.sat-item-left {
  display: flex;
  align-items: center;
  gap: 0.54rem;
  min-width: 0;
}

.sat-badge {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.16rem 0.44rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  flex-shrink: 0;
}

.sat-name {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.34;
  color: #ffffff;
}

.sat-chevron {
  font-size: 0.86rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.satellite-item.is-active .sat-chevron {
  color: #ffffff;
}

.sat-detail-box {
  display: none;
  margin-top: 0.62rem;
  padding-top: 0.62rem;
  border-top: 1px solid var(--border-subtle);
}

.satellite-item.is-active .sat-detail-box {
  display: block;
}

.sat-desc {
  font-size: 0.81rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin-bottom: 0.52rem;
}

.sat-cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.sat-cap-list li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.78rem;
  line-height: 1.52;
  color: #e2e8f0;
}

.sat-cap-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
}

.highlights-box {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.78rem 0.9rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
}

.highlight-row {
  display: flex;
  align-items: baseline;
  gap: 0.58rem;
  font-size: 0.80rem;
  line-height: 1.56;
  color: var(--text-secondary);
}

.highlight-row span.h-mark {
  color: var(--text-muted);
  font-size: 0.76rem;
  flex-shrink: 0;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.featured-project-card {
  padding: 0.76rem 0.86rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.featured-project-card h4 {
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.34;
  color: #ffffff;
}

.featured-project-meta {
  font-size: 0.69rem;
  font-weight: 500;
  color: #cbd5e1;
}

.featured-project-card p {
  font-size: 0.74rem;
  line-height: 1.48;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.tech-tag {
  font-size: 0.70rem;
  font-weight: 500;
  padding: 0.22rem 0.54rem;
  border-radius: var(--r-tag);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.corp-info-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 0.9rem;
}

.corp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.79rem;
  line-height: 1.46;
}

.corp-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.corp-row strong,
.corp-row a {
  color: #ffffff;
  font-weight: 500;
  text-align: right;
  text-decoration: none;
}

.corp-row a:hover {
  text-decoration: underline;
}

.core-sys-jump-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.core-sys-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  padding: 0.74rem 0.86rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.core-sys-jump:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.core-sys-jump small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.14rem;
}

.core-sys-jump strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.core-sys-jump p {
  font-size: 0.74rem;
  line-height: 1.44;
  color: var(--text-secondary);
}

.jump-arrow {
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* =========================================================================
   2D ECOSYSTEM DIRECTORY (#classic-2d-web)
   ========================================================================= */
.classic-web {
  position: relative;
  z-index: 25;
  margin-top: -88vh;
  padding: 2.2rem 0 4.5rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.classic-web.is-active {
  pointer-events: auto;
}

.web-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.6rem;
}

/* Sticky Section Bar */
.web-subbar {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.42rem 0.56rem;
  border-radius: var(--r-card);
  background: #070b15;
  border: 1px solid var(--border-panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72);
}

.web-subbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.web-anchor-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.38rem 0.76rem;
  border-radius: var(--r-tag);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.web-anchor-btn:hover,
.web-anchor-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.web-back3d-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hover);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.38rem 0.88rem;
  border-radius: var(--r-tag);
  cursor: pointer;
  transition: all 0.16s ease;
}

.web-back3d-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #060911;
}

/* SECTION 1: Overview */
.web-about-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 1rem;
  align-items: stretch;
  transform: translate3d(0, var(--web-hero-y, 0px), 0);
}

.web-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.web-hero-head .ed-eyebrow {
  margin-bottom: 0;
}

.web-about-main {
  padding: 2.2rem 2.3rem;
  border-radius: var(--r-panel);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--shadow-panel), var(--rim-top);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.web-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.80rem, 2.48vw, 2.36rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.026em;
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.web-hero-title span {
  display: block;
  margin-top: 0.24rem;
  font-family: var(--font-sans);
  font-size: clamp(1.06rem, 1.42vw, 1.30rem);
  font-weight: 500;
  letter-spacing: -0.014em;
  color: #cbd5e1;
}

.web-hero-lead {
  font-size: 0.90rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.web-pillars-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.58rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.4rem;
}

.web-pillar-chip {
  font-size: 0.76rem;
  font-weight: 500;
  color: #e2e8f0;
}

.web-pillar-sep {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.22);
}

.web-about-side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.web-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.web-stat-card {
  padding: 1.15rem 1.22rem;
  border-radius: var(--r-card);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--rim-top);
}

.web-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.60rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.22rem;
}

.web-stat-card strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.16rem;
}

.web-stat-card p {
  font-size: 0.74rem;
  line-height: 1.46;
  color: var(--text-muted);
}

.web-vision-card {
  padding: 1.2rem 1.32rem;
  border-radius: var(--r-card);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--rim-top);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.web-vision-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.36rem;
}

.web-vision-card p {
  font-size: 0.805rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.web-vision-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.58rem;
  padding-top: 0.48rem;
  border-top: 1px solid var(--border-subtle);
}

.web-vision-author strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.web-vision-author span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Section Headers & Reveal */
.web-section {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.web-section.web-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.web-section.web-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.web-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88);
}

.web-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.web-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 1.88vw, 1.74rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: #ffffff;
  line-height: 1.22;
}

.web-section-desc {
  max-width: 440px;
  font-size: 0.83rem;
  line-height: 1.56;
  color: var(--text-secondary);
}

/* SECTION 2: 05 Ecosystem Sectors */
.web-services-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-panel);
  border-radius: var(--r-panel);
  background: var(--surface-card);
  box-shadow: var(--rim-top);
  overflow: hidden;
}

.web-srv-card {
  display: grid;
  grid-template-columns: 165px 1.35fr 0.95fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1.3rem 1.55rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.16s ease;
}

.web-srv-card:last-child {
  border-bottom: none;
}

.web-srv-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.web-srv-top {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.web-srv-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.web-srv-num {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.web-srv-copy h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.34rem;
  letter-spacing: -0.015em;
  line-height: 1.34;
}

.web-srv-copy p {
  font-size: 0.81rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.web-srv-card .tech-tags-wrap {
  justify-content: flex-end;
  padding-top: 0.12rem;
}

/* Segmented Filter Group */
.web-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding: 0.24rem;
  border: 1px solid var(--border-panel);
  border-radius: var(--r-item);
  background: rgba(8, 12, 22, 0.90);
}

.web-filter-btn {
  background: transparent;
  border: none;
  border-radius: var(--r-tag);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.38rem 0.78rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.web-filter-btn:hover {
  color: #ffffff;
}

.web-filter-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

/* SECTION 3: Spaced 3-Column 16-Unit Cards */
.web-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@keyframes cardFilterIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.web-sys-card {
  position: relative;
  padding: 1.3rem 1.35rem;
  border-radius: var(--r-card);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--rim-top);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.web-sys-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.web-sys-card.is-filtered-out {
  display: none;
}

.web-sys-card.is-filter-in {
  animation: cardFilterIn 0.22s ease both;
}

.web-sys-body {
  display: flex;
  flex-direction: column;
}

.web-sys-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.58rem;
}

.web-sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
}

.web-sys-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sys-accent, #cbd5e1);
}

.web-sys-cat {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.web-sys-logo-wrap {
  background: #ffffff;
  width: 100%;
  height: 68px;
  padding: 9px 16px;
  border-radius: var(--r-item);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.web-sys-logo-wrap img {
  max-height: 48px;
  max-width: 196px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.web-hero-logo-pill,
.ed-hero-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
}

.web-hero-logo-pill img {
  height: 32px;
  max-width: 175px;
  width: auto;
  object-fit: contain;
  display: block;
}

.ed-hero-logo-pill img {
  height: 26px;
  max-width: 148px;
  width: auto;
  object-fit: contain;
  display: block;
}

.web-sys-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-item);
  overflow: hidden;
  margin-bottom: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
}

.web-sys-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-sys-card:hover .web-sys-thumb-wrap img {
  transform: scale(1.03);
}

.web-sys-ribbon {
  position: absolute;
  top: 0.52rem;
  right: 0.52rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.56rem;
  border-radius: 99px;
  background: rgba(6, 9, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.web-sys-price {
  position: absolute;
  left: 0.52rem;
  bottom: 0.52rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.58rem;
  border-radius: 6px;
  background: rgba(6, 9, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel-product-banner {
  position: relative;
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(12, 18, 34, 0.85);
  margin-bottom: 0.95rem;
}

.panel-product-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 210px;
  object-fit: cover;
  display: block;
}

.panel-product-banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.52rem 0.78rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 12, 22, 0.92);
}

.panel-product-ribbon {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.16rem 0.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.panel-product-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.web-sys-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 0.36rem;
}

.web-sys-summary {
  font-size: 0.79rem;
  line-height: 1.56;
  color: var(--text-secondary);
  margin-bottom: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-sys-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0.52rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.78rem;
}

.web-sys-metric {
  padding-right: 0.55rem;
}

.web-sys-metric:last-child {
  padding-right: 0;
  padding-left: 0.65rem;
  border-left: 1px solid var(--border-subtle);
}

.web-sys-metric span {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-sys-metric strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.web-mod-chip {
  font-family: var(--font-sans);
  font-size: 0.69rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.web-mod-chip:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.web-mod-chip.is-more {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
}

.web-sys-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding-top: 0.78rem;
  border-top: 1px solid var(--border-subtle);
}

.web-sys-actions .btn-exec-primary {
  flex: 1;
  padding: 0.48rem 0.82rem;
  font-size: 0.77rem;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.web-sys-actions .btn-exec-primary:hover {
  background: #ffffff;
  color: #060911;
  border-color: #ffffff;
}

/* SECTION 4: 04-Column Core Values Cards */
.web-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.web-process-card {
  padding: 1.35rem 1.3rem;
  border-radius: var(--r-card);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--rim-top);
}

.web-step-badge {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #cbd5e1;
  padding-bottom: 0.6rem;
  margin-bottom: 0.72rem;
  border-bottom: 1px solid var(--border-subtle);
}

.web-process-card h3 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.34;
}

.web-process-card p {
  font-size: 0.79rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* SECTION 5: Corporate Registry & Contact */
.web-contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
  align-items: stretch;
}

.web-legal-card,
.web-cta-card {
  padding: 1.8rem 1.95rem;
  border-radius: var(--r-panel);
  background: var(--surface-card);
  border: 1px solid var(--border-panel);
  box-shadow: var(--rim-top);
}

.web-legal-table {
  margin-top: 1.05rem;
  margin-bottom: 0;
}

.web-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.web-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: #ffffff;
  margin-bottom: 0.48rem;
}

.web-cta-card p {
  font-size: 0.83rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.web-direct-contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.web-contact-pill {
  padding: 0.72rem 0.88rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.16s ease;
}

.web-contact-pill:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.web-contact-pill span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}

.web-contact-pill strong {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: #ffffff;
}

/* Footer */
.web-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-panel);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.web-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.web-footer-left strong {
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
}

.web-footer-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.web-footer-right a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease;
}

.web-footer-right a:hover {
  color: #ffffff;
}

/* =========================================================================
   3D VIEWPORT CONTROLS: HOVER CARD, DOCK & SEARCH
   ========================================================================= */
/* Smooth Hover Preview Card */
.planet-hover-card {
  position: fixed;
  bottom: 4.6rem;
  left: 50%;
  transform: translate3d(-50%, 8px, 0);
  z-index: 34;
  min-width: 264px;
  max-width: min(390px, 86vw);
  padding: 0.78rem 1rem;
  border-radius: var(--r-card);
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid var(--border-panel);
  box-shadow: var(--shadow-panel), var(--rim-top);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.18s ease;
}

.planet-hover-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

.hover-card-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.26rem;
}

.hover-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hover-accent, #cbd5e1);
  flex-shrink: 0;
}

.hover-card-cat {
  font-size: 0.70rem;
  font-weight: 500;
  color: #cbd5e1;
}

.hover-card-caps {
  margin-left: auto;
  font-size: 0.69rem;
  color: var(--text-muted);
}

.hover-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.16rem;
}

.hover-card-tagline {
  font-size: 0.75rem;
  line-height: 1.46;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.hover-card-cta {
  display: block;
  font-size: 0.71rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Bottom Command Dock */
.kiosk-dock {
  position: fixed;
  bottom: 1.05rem;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 36;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  max-width: 96vw;
  padding: 0.36rem 0.48rem;
  border-radius: var(--r-card);
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid var(--border-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-panel), var(--rim-top);
  transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

body.is-2d-web .kiosk-dock,
body.is-wormhole-dive .kiosk-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-50%, 12px, 0);
}

@media (min-width: 1025px) {
  body.is-inspecting:not(.is-2d-web) .kiosk-dock {
    left: 25vw;
    max-width: calc(50vw - 2.4rem);
  }

  body.is-inspecting:not(.is-2d-web) .dock-sectors,
  body.is-inspecting:not(.is-2d-web) .dock-divider-tools {
    display: none;
  }
}

.dock-transport,
.dock-sectors,
.dock-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: var(--border-panel);
  flex-shrink: 0;
}

.dock-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-tag);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dock-icon-btn svg {
  width: 14px;
  height: 14px;
}

.dock-icon-btn:hover,
.dock-icon-btn.is-active,
.dock-icon-btn.is-highlighted {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-hover);
}

.dock-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.16rem 0.68rem 0.16rem 0.24rem;
  border-radius: var(--r-tag);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-panel);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dock-tour-btn:hover,
.dock-tour-btn.is-playing {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.dock-ring-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dock-ring-svg {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

.dock-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
}

.dock-ring-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dasharray: 69.1;
  stroke-dashoffset: 69.1;
  transition: stroke-dashoffset 0.12s linear;
}

.dock-tour-icon {
  position: absolute;
  font-size: 0.48rem;
  line-height: 1;
  color: #ffffff;
}

.dock-tour-status {
  color: #f1f5f9;
  font-size: 0.72rem;
}

.dock-sector-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-tag);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-sector-btn:hover {
  color: #ffffff;
}

.dock-sector-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* Directory Search Dialog */
.quick-search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.quick-search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quick-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quick-search-dialog {
  position: relative;
  width: min(640px, 94vw);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-panel);
  background: #080c17;
  border: 1px solid var(--border-panel);
  box-shadow: var(--shadow-panel), var(--rim-top);
  overflow: hidden;
}

.quick-search-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.quick-search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quick-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.90rem;
}

.quick-search-input::placeholder {
  color: var(--text-muted);
}

.quick-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  padding: 0.58rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.qs-chip {
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.24rem 0.6rem;
  border-radius: var(--r-tag);
  cursor: pointer;
  transition: all 0.15s ease;
}

.qs-chip:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

.qs-chip.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  font-weight: 600;
}

.quick-search-results {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.qs-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  padding: 0.68rem 1.15rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.qs-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.qs-thumb {
  width: 72px;
  height: 42px;
  border-radius: var(--r-tag);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  flex-shrink: 0;
}

.qs-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qs-thumb.is-cover {
  padding: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--border-subtle);
}

.qs-thumb.is-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qs-thumb span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
}

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

.qs-row-top {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.1rem;
}

.qs-code {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
}

.qs-cat {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.qs-copy strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.08rem;
}

.qs-copy small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-arrow {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.qs-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1280px) {
  .editorial-block,
  .editorial-block[data-ed-chapter='0'],
  .editorial-block[data-ed-chapter='1'],
  .editorial-block[data-ed-chapter='2'] {
    width: min(398px, 34vw);
  }
}

@media (max-width: 1120px) {
  .web-systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-srv-card {
    grid-template-columns: 140px 1fr;
  }

  .web-srv-card .tech-tags-wrap {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .top-nav {
    display: none;
  }

  .editorial-block,
  .editorial-block[data-ed-chapter='0'],
  .editorial-block[data-ed-chapter='1'],
  .editorial-block[data-ed-chapter='2'] {
    width: min(420px, 90vw);
    left: 5vw !important;
    right: auto !important;
    top: auto;
    bottom: 5.2rem;
    max-height: calc(100vh - 150px);
    transform: translate3d(0, var(--ed-y, 0px), 0) scale(var(--ed-scale, 1));
  }

  .detail-panel {
    top: auto;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: 74vh;
  }

  .metrics-row.is-2col,
  .core-sys-jump-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scroll-rail {
    display: none;
  }

  .web-subbar {
    position: relative;
    top: 0;
  }

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

  .web-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dock-sectors,
  .dock-divider-tools {
    display: none;
  }

  .kiosk-dock {
    bottom: 0.75rem;
  }
}

@media (max-width: 680px) {
  .web-systems-grid,
  .web-process-grid,
  .web-kpi-grid,
  .web-direct-contacts,
  .core-sys-jump-list,
  .featured-projects-grid,
  .ed-sys-index,
  .web-srv-card {
    grid-template-columns: 1fr;
  }

  .web-srv-card .tech-tags-wrap {
    grid-column: 1;
  }

  .editorial-card {
    padding: 1.15rem 1.25rem;
  }

  .ed-title-xl {
    font-size: 1.24rem;
  }

  .web-about-main,
  .web-legal-card,
  .web-cta-card {
    padding: 1.4rem 1.35rem;
  }
}

/* =========================================================================
   QR CODE WEBSITE CONNECT: HEADER, DRAWER CARD, 2D STRIP & MODAL
   ========================================================================= */
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.qr-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 36px;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: var(--r-btn);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qr-header-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.qr-header-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-hover);
  color: #ffffff;
}

.audio-toggle-btn .audio-icon-on {
  display: none;
}

.audio-toggle-btn .audio-icon-off {
  display: block;
}

.audio-toggle-btn.is-active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.audio-toggle-btn.is-active .audio-icon-on {
  display: block;
}

.audio-toggle-btn.is-active .audio-icon-off {
  display: none;
}

.btn-qr-icon svg,
.btn-qr-footer svg {
  width: 16px;
  height: 16px;
}

.panel-footer .btn-qr-footer {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

/* Inline QR Card inside #detail-panel */
.panel-qr-card {
  width: 100%;
  margin-top: 0.95rem;
  padding: 0.76rem 0.9rem;
  border-radius: var(--r-card);
  background: var(--surface-item);
  border: 1px solid var(--border-panel);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.panel-qr-card:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.panel-qr-svg {
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.panel-qr-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.panel-qr-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.panel-qr-info small {
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--text-muted);
}

.panel-qr-info strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-qr-info span {
  font-size: 0.73rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inline 2-Column QR Grid inside 2D Contact Section */
.web-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.web-qr-card {
  width: 100%;
  padding: 0.68rem 0.78rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.web-qr-card:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.web-qr-svg {
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 7px;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.web-qr-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.web-qr-meta small {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.web-qr-meta strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.28;
}

.web-qr-meta span {
  font-size: 0.68rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* QR Directory & Spotlight Modal */
.qr-links-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qr-links-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qr-links-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qr-links-dialog {
  position: relative;
  width: min(780px, 95vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-panel);
  background: #080c17;
  border: 1px solid var(--border-panel);
  box-shadow: var(--shadow-panel), var(--rim-top);
  overflow: hidden;
}

.qr-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.qr-head-kicker {
  display: block;
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.14rem;
}

.qr-links-head h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #ffffff;
}

.qr-links-body {
  display: grid;
  grid-template-columns: 295px 1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.qr-spotlight-pane {
  padding: 1.35rem 1.3rem;
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.016);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-spotlight-frame {
  width: 204px;
  height: 204px;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-spotlight-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-spotlight-cat {
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.22rem;
}

.qr-spotlight-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 0.26rem;
}

.qr-spotlight-url {
  font-size: 0.74rem;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.65rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-spotlight-url:hover {
  color: #ffffff;
  text-decoration: underline;
}

.qr-spotlight-hint {
  font-size: 0.72rem;
  line-height: 1.48;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
}

.qr-spotlight-actions {
  width: 100%;
  display: flex;
  gap: 0.45rem;
}

.qr-spotlight-actions .btn-exec-primary,
.qr-spotlight-actions .btn-exec-secondary {
  flex: 1;
  padding: 0.5rem 0.62rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.qr-directory-pane {
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.9rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.qr-directory-list {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.qr-group-label {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.48rem 0.35rem 0.22rem;
}

.qr-dir-item {
  width: 100%;
  text-align: left;
  padding: 0.58rem 0.78rem;
  border-radius: var(--r-item);
  background: var(--surface-item);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.qr-dir-item:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-hover);
}

.qr-dir-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.qr-dir-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.qr-dir-cat {
  font-size: 0.67rem;
  color: var(--text-muted);
}

.qr-dir-copy strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-dir-copy small {
  font-size: 0.70rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-dir-arrow {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.qr-dir-item.is-active .qr-dir-arrow {
  color: #ffffff;
}

@media (max-width: 760px) {
  .qr-header-btn span {
    display: none;
  }

  .qr-header-btn {
    padding: 0 0.62rem;
  }

  .web-qr-grid {
    grid-template-columns: 1fr;
  }

  .qr-links-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .qr-spotlight-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.1rem;
  }

  .qr-spotlight-frame {
    width: 168px;
    height: 168px;
  }

  .qr-directory-pane {
    overflow-y: visible;
  }
}

/* Right-Corner QR inside #detail-panel Header (.panel-hero) & QR Modal */
.panel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.88rem;
}

.panel-hero-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-hero-copy .panel-subtitle {
  margin-bottom: 0;
}

.panel-hero-qr {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.panel-hero-qr:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.panel-hero-qr-svg {
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
}

.panel-hero-qr-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right-side Spotlight QR inside #qr-links-modal */
.qr-links-body {
  grid-template-columns: 1fr 295px;
}

.qr-spotlight-pane {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

@media (max-width: 760px) {
  .qr-links-body {
    grid-template-columns: 1fr;
  }

  .qr-spotlight-pane {
    order: -1;
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}
