/* Known Systems | Cinematic Narrative & Sci-Fi HUD Simulation Layer */

:root {
  --cin-dark: #09100f;
  --cin-charcoal: #111918;
  --cin-warm: #14100d;
  --cin-cyan-glow: rgba(34, 211, 238, 0.16);
  --cin-cyan-solid: #22d3ee;
}

/* 1. Organic Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="300" height="300"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3CfeColorMatrix type="saturate" values="0"/%3E%3C/filter%3E%3Crect width="300" height="300" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.045;
  mix-blend-mode: overlay;
  animation: cin-grain 0.9s steps(2) infinite;
}

@keyframes cin-grain {
  0% { background-position: 0 0; }
  25% { background-position: 30px 60px; }
  50% { background-position: -20px 40px; }
  75% { background-position: 50px -30px; }
}

/* 2. Full-Bleed Cinematic Scenes */
.cin-scene {
  position: relative;
  width: 100%;
  padding: 100px 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.cin-scene--dark {
  background: var(--cin-dark);
  color: #e8eeed;
}

.cin-scene--charcoal {
  background: var(--cin-charcoal);
  color: #d4dbd9;
}

.cin-scene--warm {
  background: var(--cin-warm);
  color: #d4d0cc;
}

.cin-scene--light {
  background: #f0f4f3;
  color: #0E1315;
}

.cin-scene-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 3. Vercel-Style Atmospheric Elliptical Radial Bottom Glow (Replaces Harsh Linear Bleed) */
.cin-gradient-bridge {
  display: none !important;
}

.cin-gradient-bridge--up {
  display: none !important;
}

.cin-bottom-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cin-bottom-glow::before {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 320px;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34, 211, 238, 0.16) 0%, rgba(104, 161, 161, 0.06) 45%, transparent 72%);
  filter: blur(40px);
  -webkit-mask-image: linear-gradient(to top, black 15%, transparent 100%);
  mask-image: linear-gradient(to top, black 15%, transparent 100%);
}

/* 4. Volumetric Backlighting */
.cin-backlit {
  position: relative;
}

.cin-backlit::before {
  content: "";
  position: absolute;
  inset: -100px -120px;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(34, 211, 238, 0.16) 0%, rgba(104, 161, 161, 0.05) 50%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.cin-backlit > * {
  position: relative;
  z-index: 1;
}

/* 5. CRT Scanlines & Vignette Overlay */
.cin-crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  overflow: hidden;
}

.cin-crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.65;
  pointer-events: none;
}

.cin-crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

/* 6. Dramatic Typographic Hierarchy & Measure Control */
.cin-body {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cin-body-wide {
  max-width: 85ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cin-scene-opener {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.4em;
}

.cin-scene--dark .cin-scene-opener,
.cin-scene--charcoal .cin-scene-opener {
  color: #c8d8d7;
}

.cin-scene-opener strong {
  color: var(--ks-cyan);
  font-weight: 900;
}

.cin-display-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #0E1315;
  margin: 0 0 24px;
}

.cin-display-title--light {
  color: #fff;
}

.cin-display-title .cin-accent {
  color: var(--ks-cyan);
}

.cin-section-label {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ks-cyan);
  display: block;
  margin-bottom: 16px;
}

/* 7. Aspect Ratio Letterboxing (16:9 / 21:9 Widescreen) */
.cin-letterbox {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  margin: 52px 0;
  background: var(--cin-charcoal);
  border: 1px solid rgba(104, 161, 161, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.5);
  padding: 0 8%;
  text-align: center;
  box-sizing: border-box;
}

.cin-letterbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.cin-letterbox-text {
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cin-letterbox-text em {
  font-style: normal;
  color: var(--ks-cyan);
}

/* 8. Scrollytelling & Sticky Scene Framing */
.cin-sticky-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.cin-sticky-panel {
  position: sticky;
  top: 88px;
  padding: 60px 48px;
}

.cin-scroll-col {
  padding: 60px 48px;
}

.cin-scroll-block {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.cin-scroll-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cin-fade-line {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cin-fade-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cin-fade-line:nth-child(1) { transition-delay: 0.00s; }
.cin-fade-line:nth-child(2) { transition-delay: 0.10s; }
.cin-fade-line:nth-child(3) { transition-delay: 0.20s; }
.cin-fade-line:nth-child(4) { transition-delay: 0.30s; }
.cin-fade-line:nth-child(5) { transition-delay: 0.40s; }
.cin-fade-line:nth-child(6) { transition-delay: 0.50s; }
.cin-fade-line:nth-child(7) { transition-delay: 0.60s; }
.cin-fade-line:nth-child(8) { transition-delay: 0.70s; }

/* 9. Cards, Stat Grids & Pipelines */
.cin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cin-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 19, 21, 0.1);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
  border-color: var(--ks-cyan);
}

.cin-card--teal {
  background: rgba(104, 161, 161, 0.07);
  border-color: rgba(104, 161, 161, 0.25);
}

.cin-card-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ks-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.cin-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #0E1315;
  margin: 0 0 8px;
  line-height: 1.2;
}

.cin-card-body {
  font-size: 12.5px;
  color: #5B656B;
  line-height: 1.55;
  margin: 0;
}

.cin-scene--dark .cin-card-title,
.cin-scene--charcoal .cin-card-title {
  color: #e8eeed;
}

.cin-scene--dark .cin-card-body,
.cin-scene--charcoal .cin-card-body {
  color: #8fa8a5;
}

.cin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.cin-stat-cell {
  background: rgba(104, 161, 161, 0.08);
  border: 1px solid rgba(104, 161, 161, 0.22);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.cin-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: var(--ks-cyan);
  line-height: 1;
  display: block;
}

.cin-stat-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #5B656B;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  display: block;
}

.cin-scene--dark .cin-stat-label,
.cin-scene--charcoal .cin-stat-label {
  color: #9cb1af;
}

/* 10. Live Telemetry Interpolation HUD Strip */
.cin-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(9, 16, 15, 0.85);
  border: 1px solid rgba(104, 161, 161, 0.35);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 24px 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cin-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cin-telemetry-label {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8fa8a5;
  text-transform: uppercase;
}

.cin-telemetry-value {
  font-family: "Geist Mono", monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--cin-cyan-solid);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.cin-telemetry-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.cin-telemetry-bar-fill {
  height: 100%;
  width: 25%;
  background: var(--cin-cyan-solid);
  transition: width 0.1s linear, background-color 0.2s ease;
}

/* 11. Production-Grade Sci-Fi HUD Simulation Container */
.cin-hud-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 36px auto;
  border-radius: 12px;
  background: #09100f;
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.08);
  overflow: hidden;
}

.cin-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(17, 25, 24, 0.85);
  border-bottom: 1px solid rgba(104, 161, 161, 0.25);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa8a5;
}

.cin-hud-canvas {
  width: 100%;
  height: 380px;
  display: block;
  cursor: crosshair;
}

/* 12. Floating Sci-Fi HUD Audio Toggle Pill (Permanently Disabled) */
.ks-hud-sound-pill, #ks-hud-sound-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ks-hud-sound-pill:hover {
  border-color: var(--cin-cyan-solid);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.3);
}

.ks-hud-sound-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.ks-hud-sound-led.live {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: ks-led-pulse 1.8s ease-in-out infinite;
}

.ks-hud-sound-led.off {
  background: #687376;
  box-shadow: none;
}

@keyframes ks-led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ks-hud-sound-pill.is-muted {
  opacity: 0.75;
  border-color: rgba(255, 255, 255, 0.15);
}

/* 13. Responsive Breakpoints */
@media screen and (max-width: 900px) {
  .cin-sticky-scene { grid-template-columns: 1fr; }
  .cin-sticky-panel { position: static; padding: 40px 20px 20px; }
  .cin-scroll-col { padding: 20px; }
  .cin-scroll-block { min-height: auto; padding-bottom: 48px; }
  .cin-scene { padding: 60px 20px; }
  .cin-letterbox { aspect-ratio: 16/9; padding: 0 6%; }
  .cin-telemetry-strip { justify-content: flex-start; gap: 16px; }
  .cin-hud-canvas { height: 280px; }
  .ks-hud-sound-pill { bottom: 20px; left: 16px; right: auto; font-size: 9px; padding: 6px 12px; }
}

@media screen and (max-width: 480px) {
  .cin-display-title { font-size: clamp(30px, 10vw, 44px); }
  .cin-letterbox { aspect-ratio: unset; min-height: 180px; padding: 28px 16px; }
  .cin-stat-grid { grid-template-columns: 1fr 1fr; }
  .cin-card-grid { grid-template-columns: 1fr; }
  .cin-body, .cin-body-wide { max-width: 100%; }
  .cin-telemetry-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cin-hud-canvas { height: 220px; }
}

/* ==========================================================================
   INTERACTIVE SECTOR FILTER ENGINE STYLING
   ========================================================================== */
.sector-filter-shell {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #D1D5D8;
  border-top: 4px solid var(--ks-cyan);
  border-radius: 12px;
  padding: 36px 30px;
  margin-bottom: 50px;
  box-shadow: 0 8px 32px rgba(14, 19, 21, 0.05);
}

.sector-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

@media screen and (min-width: 900px) {
  .sector-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sector-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 12px;
  flex: 1;
  max-width: 520px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sector-search-wrap:focus-within {
  border-color: var(--ks-cyan);
  box-shadow: 0 0 0 3px rgba(104, 161, 161, 0.18);
}

.sector-search-icon {
  font-size: 16px;
  color: #94A3B8;
  margin-right: 8px;
  user-select: none;
}

.sector-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #0E1315;
}

.sector-search-input::placeholder {
  color: #94A3B8;
  font-size: 12px;
}

.sector-search-clear {
  border: none;
  background: #E2E8F0;
  color: #64748B;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
}

.sector-search-clear:hover {
  background: #CBD5E1;
  color: #0E1315;
}

.sector-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-pill-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(14, 19, 21, 0.04);
  border: 1px solid #CBD5E1;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sector-pill-btn:hover {
  background: rgba(104, 161, 161, 0.1);
  border-color: var(--ks-cyan);
  color: var(--ks-cyan);
}

.sector-pill-btn.active {
  background: var(--ks-cyan);
  border-color: var(--ks-cyan);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(104, 161, 161, 0.3);
}

/* Scrollable Container with sleek scrollbar */
.sector-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
}

.sector-cards-grid::-webkit-scrollbar {
  width: 6px;
}

.sector-cards-grid::-webkit-scrollbar-track {
  background: rgba(14, 19, 21, 0.03);
  border-radius: 4px;
}

.sector-cards-grid::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.sector-cards-grid::-webkit-scrollbar-thumb:hover {
  background: var(--ks-cyan);
}

.sector-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 19, 21, 0.06);
  border-color: var(--ks-cyan);
}

.sector-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sector-id-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #2B5A5C;
  background: rgba(104, 161, 161, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.sector-cat-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sector-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #0E1315;
  margin: 4px 0 12px;
  line-height: 1.25;
}

.sector-risk-box {
  background: rgba(14, 19, 21, 0.02);
  border-left: 3px solid #64748B;
  padding: 8px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 14px;
}

.sector-box-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sector-box-text {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.sector-meta-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  flex: 1;
}

.sector-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  gap: 8px;
}

.sector-meta-key {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: #64748B;
  flex-shrink: 0;
}

.sector-meta-val {
  color: #0E1315;
  text-align: right;
  line-height: 1.3;
}

.sector-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.sector-jump-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: rgba(104, 161, 161, 0.08);
  border: 1px solid rgba(104, 161, 161, 0.3);
  border-radius: 6px;
  color: var(--ks-cyan);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sector-jump-btn:hover {
  background: var(--ks-cyan);
  border-color: var(--ks-cyan);
  color: #FFFFFF;
}

.sector-btn-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.sector-jump-btn:hover .sector-btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   TURNKEY INDUSTRY SOLUTION STACKS COMPONENT STYLES
   ========================================================================== */
.sector-engine-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #065F46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ks-stack-layers-box {
  background: rgba(14, 19, 21, 0.025);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ks-stack-layers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.ks-stack-layer-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
}

.layer-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  background: rgba(104, 161, 161, 0.14);
  color: #2B5B5D;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid rgba(104, 161, 161, 0.25);
  flex-shrink: 0;
  margin-top: 1px;
}

.layer-text {
  color: #334155;
  font-size: 10.5px;
}

.layer-text strong {
  color: #0E1315;
}

.ks-stack-drawer {
  margin-top: 12px;
  padding: 12px;
  background: #0E1315;
  color: #E2E8F0;
  border-radius: 6px;
  border-left: 3px solid var(--ks-cyan);
  font-size: 11px;
  animation: ksStackDrawerFade 0.2s ease;
}

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

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 6px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  line-height: 1;
}

.drawer-close-btn:hover {
  color: #FFFFFF;
}

.drawer-code-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  color: var(--ks-cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.drawer-code-box code,
.drawer-formula-box code {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #38BDF8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-formula-box code {
  color: #34D399;
}

.drawer-features-box p {
  margin: 0;
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.45;
}

.sector-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: rgba(14, 19, 21, 0.02);
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
  margin-top: 24px;
}

/* Pulsing highlight effect when jumped to */
@keyframes ksPulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(104, 161, 161, 0.7); border-color: var(--ks-cyan); }
  50% { box-shadow: 0 0 25px 6px rgba(104, 161, 161, 0.4); border-color: var(--ks-cyan); }
  100% { box-shadow: 0 0 0 0 rgba(104, 161, 161, 0); }
}

.ks-pulse-highlight {
  animation: ksPulseCyan 1.8s ease-out;
}

/* ==========================================================================
   ENHANCED SECTION STYLING, AMBIENT LIGHTING & HUD CARD FRAMING
   ========================================================================== */

/* Ambient Lighting & Depth Gradients */
.sovereign-hero,
.research-entropy-section,
.ks-hero-grid {
  position: relative;
}

.sovereign-hero::before,
.ks-hero-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 260px;
  background: radial-gradient(ellipse 70% 180px at 50% 0%, rgba(104, 161, 161, 0.16) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Precision Technical Background Texture */
.knox-environment,
.ks-environment {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(104, 161, 161, 0.08) 0%, transparent 55%),
    linear-gradient(rgba(14, 19, 21, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 19, 21, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

/* Monospaced Technical Eyebrow Banners with Hairline Accents */
.sh-eyebrow,
.chapter-stepper,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ks-cyan);
  margin-bottom: 8px;
}

.sh-eyebrow::after,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--ks-cyan);
  opacity: 0.6;
}

/* Premium Card Framing with Subtle Lift and Shadow */
.res-card,
.shared-panel,
.gateway-card {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(14, 19, 21, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.res-card:hover,
.shared-panel:hover,
.gateway-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -4px rgba(104, 161, 161, 0.16), 0 4px 12px rgba(14, 19, 21, 0.05);
  border-color: var(--ks-cyan) !important;
}

/* Technical Corner Accents (HUD Brackets) */
.res-card::before,
.res-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(104, 161, 161, 0.4);
  pointer-events: none;
  transition: all 0.25s ease;
}

.res-card::before {
  top: 6px;
  left: 6px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.res-card::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.res-card:hover::before,
.res-card:hover::after {
  border-color: var(--ks-cyan);
  width: 12px;
  height: 12px;
}

/* Domain Divider Hairline (Smooth Transitions) */
.domain-sticky-selector::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209, 213, 216, 0.8) 20%, rgba(104, 161, 161, 0.6) 50%, rgba(209, 213, 216, 0.8) 80%, transparent);
}

/* ==========================================================================
   KNOWN SYSTEMS | 7 DIFFERENTIATED SECTION ARCHITECTURES (DESKTOP & MOBILE)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SHARED SECTION TOKENS & ATOMS
   -------------------------------------------------------------------------- */
.ks-sec-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.ks-sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ks-cyan, #68A1A1);
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(104, 161, 161, 0.08);
  border: 1px solid rgba(104, 161, 161, 0.25);
  margin-bottom: 12px;
}

.ks-sec-pill .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ks-cyan, #68A1A1);
  box-shadow: 0 0 8px var(--ks-cyan, #68A1A1);
}

.ks-sec-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.85rem, 3.8vw + 0.5rem, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0E1315;
  margin: 8px 0;
}

.ks-sec-title .text-cyan-grad {
  background: linear-gradient(135deg, #1C4648 0%, #2B5A5C 35%, #68A1A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ks-sec-desc {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #5B656B;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 1: AEROSPACE TELEMETRY HUD STRIP (.ks-sec-telemetry)
   -------------------------------------------------------------------------- */
.ks-sec-telemetry {
  margin-bottom: 50px;
}

.ks-telemetry-hud {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, #111719 0%, #090E0F 100%);
  border: 1px solid rgba(104, 161, 161, 0.35);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.ks-telemetry-hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ks-cyan) 50%, transparent);
  box-shadow: 0 0 10px var(--ks-cyan);
}

.ks-telemetry-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(104, 161, 161, 0.15);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #8D999F;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}

.ks-telemetry-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks-telemetry-meta-item .dot-active {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ks-cyan);
  box-shadow: 0 0 6px var(--ks-cyan);
}

.ks-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 20px;
}

.ks-telemetry-cell {
  border-left: 2px solid rgba(104, 161, 161, 0.4);
  padding-left: 14px;
  transition: border-left-color 0.25s ease;
}

.ks-telemetry-cell:hover {
  border-left-color: var(--ks-cyan);
}

.ks-telemetry-cell .cell-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7A8990;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.ks-telemetry-cell .cell-val {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-telemetry-cell .cell-val.cyan { color: #68A1A1; }
.ks-telemetry-cell .cell-val.emerald { color: #34D399; }

.ks-telemetry-cell .cell-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
  background: rgba(104, 161, 161, 0.12);
  color: #92BDBD;
  border: 1px solid rgba(104, 161, 161, 0.2);
}

/* --------------------------------------------------------------------------
   ARCHETYPE 2: ILLUMINATED CHRONO-PIPELINE (.ks-sec-pipeline)
   -------------------------------------------------------------------------- */
.ks-sec-pipeline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 250, 0.94) 100%);
  border: 1px solid rgba(104, 161, 161, 0.25);
  border-radius: 14px;
  padding: 44px 32px;
  margin-bottom: 50px;
  box-shadow: 0 16px 40px -10px rgba(14, 19, 21, 0.05), inset 0 1px 0 #FFFFFF;
  position: relative;
  overflow: hidden;
}

.ks-sec-pipeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ks-cyan) 50%, transparent);
}

.ks-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}

.ks-stage-node {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(209, 213, 216, 0.85);
  border-top: 3px solid var(--ks-cyan);
  border-radius: 8px;
  padding: 20px 14px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ks-stage-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(104, 161, 161, 0.25), 0 2px 8px rgba(14, 19, 21, 0.04);
  border-color: var(--ks-cyan);
}

.ks-stage-node .stage-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ks-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ks-stage-node .stage-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ks-cyan);
}

.ks-stage-node h4 {
  font-size: 14px;
  font-weight: 900;
  color: #0E1315;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ks-stage-node p {
  font-size: 11.5px;
  color: #5B656B;
  line-height: 1.45;
  margin: 0;
  flex-grow: 1;
}

.ks-stage-node .stage-arrow-indicator {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--ks-cyan);
  color: var(--ks-cyan);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   ARCHETYPE 3: ARCHITECTURAL BLUEPRINT SCHEMATIC (.ks-sec-matrix)
   -------------------------------------------------------------------------- */
.ks-sec-matrix {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(209, 213, 216, 0.9);
  border-radius: 14px;
  padding: 44px 32px;
  margin-bottom: 50px;
  box-shadow: 0 12px 36px -8px rgba(14, 19, 21, 0.04);
}

.ks-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.ks-blueprint-card {
  position: relative;
  background: linear-gradient(180deg, rgba(246, 250, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(104, 161, 161, 0.25);
  border-radius: 8px;
  padding: 22px 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-blueprint-card::before,
.ks-blueprint-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(104, 161, 161, 0.4);
  pointer-events: none;
  transition: all 0.25s ease;
}

.ks-blueprint-card::before {
  top: 6px;
  left: 6px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.ks-blueprint-card::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.ks-blueprint-card:hover {
  transform: translateY(-3px);
  border-color: var(--ks-cyan);
  box-shadow: 0 12px 28px -6px rgba(104, 161, 161, 0.2);
}

.ks-blueprint-card:hover::before,
.ks-blueprint-card:hover::after {
  border-color: var(--ks-cyan);
  width: 14px;
  height: 14px;
}

.ks-blueprint-card .card-code {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ks-cyan);
  margin-bottom: 6px;
  display: block;
}

.ks-blueprint-card h4 {
  font-size: 14px;
  font-weight: 900;
  color: #0E1315;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ks-blueprint-card p {
  font-size: 12px;
  color: #5B656B;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 4: 4-STATE ARBITRATION DECISION GATE (.ks-sec-decision-gate)
   -------------------------------------------------------------------------- */
.ks-sec-decision-gate {
  background: linear-gradient(180deg, #101618 0%, #0A0E0F 100%);
  border: 1px solid rgba(104, 161, 161, 0.3);
  border-radius: 14px;
  padding: 40px 28px;
  margin-top: 32px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45);
}

.ks-gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.ks-gate-card {
  border-radius: 8px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ks-gate-card:hover {
  transform: translateY(-3px);
}

.ks-gate-card.gate-execute {
  border-left: 4px solid #10B981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ks-gate-card.gate-block {
  border-left: 4px solid #EF4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ks-gate-card.gate-escalate {
  border-left: 4px solid #F59E0B;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ks-gate-card.gate-hold {
  border-left: 4px solid #68A1A1;
  background: linear-gradient(90deg, rgba(104, 161, 161, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ks-gate-card .gate-condition {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8D999F;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.ks-gate-card .gate-verdict {
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-gate-card.gate-execute .gate-verdict { color: #34D399; }
.ks-gate-card.gate-block .gate-verdict { color: #F87171; }
.ks-gate-card.gate-escalate .gate-verdict { color: #FBBF24; }
.ks-gate-card.gate-hold .gate-verdict { color: #68A1A1; }

.ks-gate-card .gate-sub {
  font-size: 11px;
  color: #7A8990;
  margin-top: 6px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 5: SPLIT-DOMAIN BIPOLAR ARCHITECTURE (.ks-sec-split-boundary)
   -------------------------------------------------------------------------- */
.ks-sec-split-boundary {
  margin-bottom: 50px;
}

.ks-bipolar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
}

.ks-bipolar-panel {
  border-radius: 12px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ks-bipolar-panel:hover {
  transform: translateY(-3px);
}

.ks-bipolar-panel.panel-positive {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 250, 0.94) 100%);
  border: 1px solid rgba(104, 161, 161, 0.3);
  border-top: 4px solid var(--ks-cyan);
  box-shadow: 0 16px 36px -10px rgba(104, 161, 161, 0.15);
}

.ks-bipolar-panel.panel-negative {
  background: linear-gradient(180deg, #131A1C 0%, #0A0E0F 100%);
  border: 1px solid rgba(209, 213, 216, 0.2);
  border-top: 4px solid #0E1315;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
}

.ks-bipolar-panel .panel-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.ks-bipolar-panel.panel-positive .panel-tag { color: var(--ks-cyan); }
.ks-bipolar-panel.panel-negative .panel-tag { color: #8D999F; }

.ks-bipolar-panel h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.ks-bipolar-panel.panel-positive h3 { color: #0E1315; }
.ks-bipolar-panel.panel-negative h3 { color: #FFFFFF; }

.ks-bipolar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ks-bipolar-list li {
  font-size: 13px;
  line-height: 1.65;
  position: relative;
  padding-left: 24px;
}

.ks-bipolar-panel.panel-positive .ks-bipolar-list li {
  color: #3D484E;
}

.ks-bipolar-panel.panel-positive .ks-bipolar-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ks-cyan);
  font-weight: 800;
}

.ks-bipolar-panel.panel-negative .ks-bipolar-list li {
  color: #B2BDC2;
}

.ks-bipolar-panel.panel-negative .ks-bipolar-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: #F87171;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 6: INTERACTIVE COMMAND CENTRE CONSOLE (.ks-sec-filter-console)
   -------------------------------------------------------------------------- */
.ks-sec-filter-console {
  margin-bottom: 50px;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 7: HIGH-DENSITY INSTITUTIONAL LEDGER (.ks-sec-taxonomy-registry)
   -------------------------------------------------------------------------- */
.ks-sec-taxonomy-registry {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(209, 213, 216, 0.9);
  border-radius: 14px;
  padding: 44px 32px;
  margin-bottom: 50px;
  box-shadow: 0 12px 36px -8px rgba(14, 19, 21, 0.04);
}

.industry-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #2D373B;
  border-bottom: 1px solid rgba(209, 213, 216, 0.4);
}

.industry-item:hover {
  background: rgba(104, 161, 161, 0.08);
  transform: translateX(4px);
  color: #0E1315;
}

.industry-item .ind-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ks-cyan);
  width: 28px;
  flex-shrink: 0;
}

.industry-item .ind-name {
  flex-grow: 1;
  font-weight: 600;
}

.industry-item .ind-arrow {
  color: #8D999F;
  font-size: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.industry-item:hover .ind-arrow {
  color: var(--ks-cyan);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MOBILE RULES (CHRONO-RAIL SPINES & TILE REFLOW)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ks-pipeline-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .ks-stage-node .stage-arrow-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .ks-sec-pipeline,
  .ks-sec-matrix,
  .ks-sec-taxonomy-registry,
  .ks-telemetry-hud,
  .ks-sec-decision-gate,
  .ks-bipolar-panel {
    padding: 24px 18px !important;
  }

  /* Chrono-Pipeline converts to Vertical Circuit Rail on Mobile */
  .ks-pipeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--ks-cyan);
    margin-left: 8px;
  }

  .ks-stage-node {
    border-top: 1px solid rgba(209, 213, 216, 0.85);
    border-left: 3px solid var(--ks-cyan);
  }

  .ks-stage-node::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--ks-cyan);
    box-shadow: 0 0 8px var(--ks-cyan);
  }

  .ks-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .ks-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .ks-bipolar-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   KNOWN SYSTEMS | IMAGE PRESENTATION STYLES (CINEMA, HOLO STAGE & ASYMMETRIC)
   ========================================================================== */

/* --------------------------------------------------------------------------
   STYLE 1: GLASSMORPHIC CINEMA VIEWPORT (.ks-cinema-viewport)
   -------------------------------------------------------------------------- */
.ks-cinema-viewport {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  margin: 32px 0 44px;
}

.ks-cinema-viewport::before {
  display: none !important;
}

.ks-cinema-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  filter: brightness(0.98) contrast(1.02);
}

.ks-cinema-viewport:hover .ks-cinema-img {
  transform: scale(1.015);
  filter: brightness(1.02) contrast(1.03);
}

/* Hero Cinema Viewport Specific: Full bleed touching header */
.ks-hero-cinema-viewport,
.ks-cinema-viewport.ks-hero-cinema-viewport {
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  padding: 0 !important;
}

.ks-hero-cinema-viewport .ks-cinema-img,
.ks-cinema-viewport.ks-hero-cinema-viewport .ks-cinema-img {
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}


/* Gradient Bridges (Disabled for clean, natural image presentation) */
.ks-cinema-viewport::after {
  display: none !important;
}

/* HUD Telemetry Metadata Overlay Bar */
.ks-cinema-meta-top {
  display: none !important;
}

.ks-cinema-meta-pill {
  display: none !important;
}

/* Corner HUD Brackets for Cinema Viewport */
.ks-cinema-bracket-tl,
.ks-cinema-bracket-br {
  display: none !important;
}

/* --------------------------------------------------------------------------
   STYLE 2: FLOATING 3D LEVITATION STAGE (.ks-holo-stage)
   -------------------------------------------------------------------------- */
.ks-holo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 20px 24px;
  overflow: visible;
}

.ks-holo-glow {
  position: absolute;
  width: clamp(220px, 30vw, 360px);
  height: clamp(220px, 30vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 161, 161, 0.26) 0%, rgba(43, 91, 93, 0.12) 45%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 1;
}

.ks-holo-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  animation: ksLevitate 6s ease-in-out infinite;
  filter: drop-shadow(0 16px 30px rgba(14, 19, 21, 0.28));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.ks-holo-stage:hover .ks-holo-img {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 22px 40px rgba(104, 161, 161, 0.35));
}

.ks-holo-shadow {
  width: clamp(140px, 20vw, 220px);
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(14, 19, 21, 0.24) 0%, transparent 70%);
  filter: blur(6px);
  margin-top: 12px;
  z-index: 1;
  animation: ksShadowPulse 6s ease-in-out infinite;
}

@keyframes ksLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ksShadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(0.85); opacity: 0.12; }
}

/* --------------------------------------------------------------------------
   STYLE 3: ASYMMETRIC SPLIT-SCREEN HERO & PANELS (.ks-split-stage)
   -------------------------------------------------------------------------- */
.ks-split-stage {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 36px;
  align-items: center;
  margin: 40px 0;
  position: relative;
}

.ks-split-stage--reverse {
  grid-template-columns: 45% 55%;
}

.ks-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ks-split-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .ks-split-stage,
  .ks-split-stage--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   STYLE 4: COMPACT HARDWARE STAGE FOR CARDS (.ks-card-holo-display)
   -------------------------------------------------------------------------- */
.ks-card-holo-display {
  position: relative;
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, rgba(104, 161, 161, 0.12) 0%, rgba(14, 19, 21, 0.05) 70%, transparent 100%), #0D1315;
  border-radius: 8px;
  border: 1px solid rgba(104, 161, 161, 0.25);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-card-holo-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ks-cyan), transparent);
  opacity: 0.6;
}

.ks-card-holo-display:hover {
  border-color: rgba(104, 161, 161, 0.5);
  box-shadow: inset 0 0 25px rgba(104, 161, 161, 0.15), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ks-card-holo-display img {
  max-height: 160px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.ks-card-holo-display:hover img {
  transform: translateY(-4px) scale(1.04);
}

.ks-card-holo-tag {
  display: none !important;
}

/* --------------------------------------------------------------------------
   STYLE 5: SOVEREIGN SEAL / INSIGNIA MARK (.ks-seal-mark)
   -------------------------------------------------------------------------- */
.ks-seal-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 24px auto;
  position: relative;
}

.ks-seal-mark img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(104, 161, 161, 0.35));
  transition: transform 0.5s ease, filter 0.5s ease;
}

.ks-seal-mark:hover img {
  transform: rotate(3deg) scale(1.06);
  filter: drop-shadow(0 0 24px rgba(104, 161, 161, 0.6));
}

.ks-seal-mark-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5B656B;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   INTER-SECTION BRIDGES: TELEMETRY DATUM RIBBON & AXIOM LETTERBOX
   -------------------------------------------------------------------------- */
.ks-datum-ribbon {
  max-width: 1200px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(14, 19, 21, 0.03);
  border: 1px solid rgba(209, 213, 216, 0.8);
  border-left: 3px solid var(--ks-cyan);
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #5B656B;
  box-sizing: border-box;
}

.ks-datum-ribbon-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-datum-ribbon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ks-cyan);
  box-shadow: 0 0 6px var(--ks-cyan);
  animation: ksPulseDot 2s infinite;
}

.ks-axiom-strip {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(14, 19, 21, 0.96) 0%, rgba(26, 36, 40, 0.96) 100%);
  border: 1px solid rgba(104, 161, 161, 0.3);
  border-radius: 10px;
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(14, 19, 21, 0.15);
}

.ks-axiom-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ks-cyan), transparent);
}

.ks-axiom-strip-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.ks-axiom-strip-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ks-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 768px) {
  .ks-datum-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   ELEVATED BACKGROUNDS: KNOX RELAY AGENT CARDS & COMMAND CONSOLE
   ========================================================================== */
.knox-agents-catalog-container {
  background: radial-gradient(circle at 50% 0%, rgba(104, 161, 161, 0.12) 0%, rgba(10, 16, 18, 0.98) 70%), #0A1012 !important;
  border: 1px solid rgba(104, 161, 161, 0.35) !important;
  border-radius: 16px !important;
  padding: 44px 32px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
}

.agent-nav-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.agent-tab-card {
  background: rgba(14, 19, 21, 0.85);
  border: 1px solid rgba(104, 161, 161, 0.2);
  border-radius: 10px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.agent-tab-card:hover {
  border-color: rgba(104, 161, 161, 0.5);
  transform: translateY(-2px);
  background: rgba(14, 19, 21, 0.95);
}

.agent-tab-card.active {
  border-color: var(--ks-cyan);
  background: rgba(104, 161, 161, 0.12);
  box-shadow: 0 0 20px rgba(104, 161, 161, 0.2), inset 0 0 12px rgba(104, 161, 161, 0.1);
}

.agent-tab-id {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--ks-cyan);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.agent-tab-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.agent-tab-role {
  font-size: 11px;
  color: #8FA8A5;
  margin: 0;
  line-height: 1.4;
}

.agent-detail-panel {
  background: rgba(14, 19, 21, 0.9);
  border: 1px solid rgba(104, 161, 161, 0.3);
  border-radius: 12px;
  padding: 32px;
}

.containment-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
}

.containment-card-desc {
  color: #C2CBCF;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 6px;
}



/* ==========================================================================
   HOMEPAGE NON-DISRUPTIVE INFRASTRUCTURE: LASER SWEEP BEAM
   ========================================================================== */
.ks-laser-sweep-track {
  position: relative;
  overflow: hidden;
}

.ks-laser-sweep-beam {
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(104, 161, 161, 0.8) 50%, #FFFFFF 75%, transparent 100%);
  box-shadow: 0 0 12px #68A1A1, 0 0 20px rgba(104, 161, 161, 0.5);
  animation: ksLaserSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ksLaserSweep {
  0% { left: -35%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ==========================================================================
   KNOX RELAY: AEROSPACE COMMAND CONSOLE STRIP (COMMERCIAL DOMAINS)
   ========================================================================== */
.knox-command-console-strip {
  background: #0B1012;
  border: 1px solid rgba(104, 161, 161, 0.35);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 36px rgba(0, 0, 0, 0.4);
}

.console-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(104, 161, 161, 0.2);
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
}

.console-strip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ks-cyan);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.console-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68A1A1;
  box-shadow: 0 0 8px #68A1A1;
  animation: pulseLive 2s infinite ease-in-out;
}

.console-strip-status {
  color: #8FA8A5;
  background: rgba(104, 161, 161, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(104, 161, 161, 0.25);
  letter-spacing: 0.1em;
}

.knox-module-switcher-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.knox-mod-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-family: 'Geist Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #C2CBCF !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.knox-mod-btn:hover {
  background: rgba(104, 161, 161, 0.15) !important;
  border-color: rgba(104, 161, 161, 0.4) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.knox-mod-btn.active {
  background: #152225 !important;
  color: #FFFFFF !important;
  border-color: var(--ks-cyan) !important;
  border-top: 2px solid var(--ks-cyan) !important;
  box-shadow: 0 0 20px rgba(104, 161, 161, 0.25), inset 0 0 10px rgba(104, 161, 161, 0.1) !important;
}

.knox-mod-btn .knox-mod-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3A4D50;
  transition: all 0.25s ease;
}

.knox-mod-btn.active .knox-mod-led {
  background: var(--ks-cyan);
  box-shadow: 0 0 8px var(--ks-cyan);
}

.knox-mod-badge {
  background: rgba(104, 161, 161, 0.18);
  color: var(--ks-cyan);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  border: 1px solid rgba(104, 161, 161, 0.3);
}

.knox-mod-btn.active .knox-mod-badge {
  background: var(--ks-cyan);
  color: #0B1012;
  font-weight: 800;
}

/* ==========================================================================
   KNOX RELAY: DARK OBSIDIAN AI AGENT CARDS (ASSISTANT-001 TO 004)
   ========================================================================== */
.agent-nav-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.agent-tab-card {
  background: #11181B !important;
  border: 1px solid rgba(104, 161, 161, 0.22) !important;
  border-radius: 10px !important;
  padding: 20px 18px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  text-align: left !important;
}

.agent-tab-card:hover {
  border-color: rgba(104, 161, 161, 0.55) !important;
  transform: translateY(-2px);
  background: #162024 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

.agent-tab-card.active {
  background: #152225 !important;
  border-color: var(--ks-cyan) !important;
  border-top: 3px solid var(--ks-cyan) !important;
  box-shadow: 0 0 24px rgba(104, 161, 161, 0.25), inset 0 0 14px rgba(104, 161, 161, 0.08) !important;
}

.agent-card-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  color: #68A1A1;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: rgba(104, 161, 161, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  border: 1px solid rgba(104, 161, 161, 0.25);
  font-weight: 700;
}

.agent-card-telemetry-badge .telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #68A1A1;
  box-shadow: 0 0 6px #68A1A1;
  animation: pulseLive 2s infinite ease-in-out;
}

/* ==========================================================================
   VERIFICATION MATRIX: ANIMATED PIPELINE & DARK TITANIUM EVIDENCE GRID
   ========================================================================== */
.sss-pipeline-svg-wrap {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 40px;
  width: 4px;
  pointer-events: none;
  z-index: 1;
}

.sss-pipeline-svg {
  width: 100%;
  height: 100%;
}

.pipeline-flow-anim {
  animation: pipelineFlow 2.5s linear infinite;
}

@keyframes pipelineFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -28; }
}

.ks-dark-titanium-glass {
  background: radial-gradient(circle at 50% 0%, rgba(104, 161, 161, 0.12) 0%, rgba(10, 16, 18, 0.96) 75%) !important;
  border: 1px solid rgba(104, 161, 161, 0.4) !important;
  border-radius: 14px !important;
  padding: 40px 32px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
}






