/* ==========================================================================
   ABOVE GRID — Tactical Dual-Sector Command Website
   "The Terminal List" Topographic & HUD Aesthetic
   ========================================================================== */

:root {
  --bg-obsidian: #05080d;
  --bg-slate: #0a0f18;
  --bg-card: rgba(12, 18, 28, 0.84);
  --bg-card-solid: #0d1420;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-mid: rgba(255, 255, 255, 0.18);

  /* Construction Sector Palette (Earthwork Amber / Laser Gold) */
  --amber-main: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.42);
  --amber-soft: rgba(245, 158, 11, 0.12);

  /* Wildlife Reconnaissance Palette (Night-Ops Cyan & Emerald) */
  --cyan-main: #38bdf8;
  --cyan-bright: #00e5ff;
  --emerald-main: #10b981;
  --cyan-glow: rgba(56, 189, 248, 0.42);
  --cyan-soft: rgba(56, 189, 248, 0.12);

  /* Alerts & Telemetry */
  --red-cut: #ef4444;
  --green-fill: #10b981;

  /* Typography */
  --font-display: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Dynamic Split Position for 50/50 Home Portal */
  --split-pos: 50%;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Global Background Topographic Canvas, Scanlines & HUD Frame
   ========================================================================== */
#topo-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.45;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(2, 5, 10, 0.85) 100%);
}

/* Tactical Corner HUD Frame */
.hud-frame {
  position: fixed;
  inset: 16px;
  z-index: 850;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-tl { top: 0; left: 0; }
.hud-tr { top: 0; right: 0; flex-direction: row-reverse; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; flex-direction: row-reverse; }

.hud-bracket {
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.32);
  border-style: solid;
}

.hud-tl .hud-bracket { border-width: 2px 0 0 2px; }
.hud-tr .hud-bracket { border-width: 2px 2px 0 0; }
.hud-bl .hud-bracket { border-width: 0 0 2px 2px; }
.hud-br .hud-bracket { border-width: 0 2px 2px 0; }

.hud-telemetry {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(203, 213, 225, 0.68);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

/* Hide corner HUD text when reading scrollable sector pages so it never overlaps content */
body:not([data-view="home"]) .hud-telemetry {
  opacity: 0;
}

.hud-right {
  text-align: right;
  align-items: flex-end;
}

.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-bright);
  font-weight: 600;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-main);
  box-shadow: 0 0 10px var(--amber-main);
  animation: pulseBlink 1.8s infinite;
}

@keyframes pulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ==========================================================================
   Persistent Top-Center Command Boxes (#command-header)
   ========================================================================== */
#command-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  width: auto;
  max-width: 96vw;
}

.command-switcher {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 7px;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.cmd-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(16, 24, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  white-space: nowrap;
}

.cmd-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.cmd-status-bar {
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: transparent;
  transition: all 0.28s ease;
}

/* Corner Micro-Ticks on Top Boxes */
.cmd-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: transparent;
  border-style: solid;
  transition: border-color 0.25s ease;
}
.cmd-corner.tl { top: 3px; left: 3px; border-width: 1.5px 0 0 1.5px; }
.cmd-corner.tr { top: 3px; right: 3px; border-width: 1.5px 1.5px 0 0; }
.cmd-corner.bl { bottom: 3px; left: 3px; border-width: 0 0 1.5px 1.5px; }
.cmd-corner.br { bottom: 3px; right: 3px; border-width: 0 1.5px 1.5px 0; }

/* Construction Box Hover & Active */
.cmd-box-construction:hover,
.cmd-box-construction.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(16, 24, 38, 0.92) 100%);
  border-color: var(--amber-main);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3), inset 0 0 14px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.cmd-box-construction:hover .cmd-index,
.cmd-box-construction.active .cmd-index {
  background: var(--amber-main);
  color: #05080d;
}

.cmd-box-construction:hover .cmd-status-bar,
.cmd-box-construction.active .cmd-status-bar {
  background: var(--amber-bright);
  box-shadow: 0 0 12px var(--amber-bright);
  left: 0;
  right: 0;
}

.cmd-box-construction:hover .cmd-corner,
.cmd-box-construction.active .cmd-corner {
  border-color: var(--amber-bright);
}

/* Wildlife Reconnaissance Box Hover & Active */
.cmd-box-wildlife:hover,
.cmd-box-wildlife.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(16, 24, 38, 0.92) 100%);
  border-color: var(--cyan-main);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3), inset 0 0 14px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.cmd-box-wildlife:hover .cmd-index,
.cmd-box-wildlife.active .cmd-index {
  background: var(--cyan-main);
  color: #05080d;
}

.cmd-box-wildlife:hover .cmd-status-bar,
.cmd-box-wildlife.active .cmd-status-bar {
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
  left: 0;
  right: 0;
}

.cmd-box-wildlife:hover .cmd-corner,
.cmd-box-wildlife.active .cmd-corner {
  border-color: var(--cyan-bright);
}

/* Center Brand Hub Button (ABOVE GRID) */
.cmd-brand-hub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cmd-brand-hub:hover,
.cmd-brand-hub.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.brand-reticle {
  width: 24px;
  height: 24px;
  color: var(--amber-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

body[data-view="wildlife"] .brand-reticle {
  color: var(--cyan-bright);
}

.cmd-brand-hub:hover .brand-reticle {
  transform: rotate(90deg);
}

/* Sector Switch Flash Effect */
#sector-transition-flash {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 70%);
  transition: opacity 0.35s ease;
}

#sector-transition-flash.flash-active {
  opacity: 1;
}

/* ==========================================================================
   View Management (.sector-view)
   ========================================================================== */
.sector-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.42s;
}

.sector-view.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* ==========================================================================
   VIEW 0: 50/50 SPLIT-SCREEN HOME PORTAL (ZERO JARGON, PURE GRAPHICS)
   ========================================================================== */
.split-portal {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* Left & Right Split Panes */
.split-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.45s ease;
}

.pane-construction {
  left: 0;
  width: var(--split-pos);
  z-index: 2;
}

.pane-wildlife {
  left: var(--split-pos);
  right: 0;
  width: calc(100% - var(--split-pos));
  z-index: 2;
}

/* Hover Tactical Lock-On States on Desktop */
.split-portal.hover-left {
  --split-pos: 59%;
}

.split-portal.hover-right {
  --split-pos: 41%;
}

.split-portal.hover-left .pane-wildlife {
  filter: brightness(0.42) saturate(0.65);
}

.split-portal.hover-right .pane-construction {
  filter: brightness(0.42) saturate(0.65);
}

/* Pane Media & Artwork */
.pane-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pane-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: contrast(1.12) brightness(0.84);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}

.pane-wildlife .pane-bg-img {
  object-position: center 24%;
}

.split-pane:hover .pane-bg-img {
  transform: scale(1.08);
  filter: contrast(1.18) brightness(1.04);
}

.pane-color-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.pane-construction .pane-color-wash {
  background:
    radial-gradient(circle at 45% 45%, rgba(245, 158, 11, 0.14), rgba(5, 8, 13, 0.72) 85%),
    linear-gradient(to top, rgba(5, 8, 13, 0.92) 0%, transparent 40%, rgba(5, 8, 13, 0.65) 100%);
}

.pane-wildlife .pane-color-wash {
  background:
    radial-gradient(circle at 55% 45%, rgba(16, 185, 129, 0.14), rgba(5, 8, 13, 0.72) 85%),
    linear-gradient(to top, rgba(5, 8, 13, 0.92) 0%, transparent 40%, rgba(5, 8, 13, 0.65) 100%);
}

/* Vector CAD / Contour Overlay inside each pane */
.pane-vector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.split-pane:hover .pane-vector-svg {
  opacity: 1;
  transform: scale(1.02);
}

/* Animated Horizontal Laser Scan Line on Hover */
.laser-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.amber-scan {
  background: linear-gradient(90deg, transparent, var(--amber-bright), transparent);
  box-shadow: 0 0 18px var(--amber-main);
}

.cyan-scan {
  background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
  box-shadow: 0 0 18px var(--cyan-main);
}

.split-pane:hover .laser-scan-line {
  opacity: 0.85;
  animation: verticalSweep 3.6s ease-in-out infinite;
}

@keyframes verticalSweep {
  0% { top: 8%; }
  50% { top: 88%; }
  100% { top: 8%; }
}

/* Bottom Sector Title Lockup inside each Split Pane */
.pane-title-lockup {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 90%;
  pointer-events: none;
}

.pane-reticle-icon {
  display: none;
}

.pane-construction .pane-reticle-icon {
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--amber-bright);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.pane-wildlife .pane-reticle-icon {
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.split-pane:hover .pane-reticle-icon {
  transform: scale(1.14);
}

.pane-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.3vw, 48px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s ease, letter-spacing 0.35s ease;
}

.split-pane:hover .pane-heading {
  letter-spacing: 0.2em;
  transform: translateY(-2px);
}

.pane-enter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.pane-construction:hover .pane-enter-pill {
  background: var(--amber-main);
  border-color: var(--amber-bright);
  color: #05080d;
  box-shadow: 0 0 25px var(--amber-glow);
}

.pane-wildlife:hover .pane-enter-pill {
  background: var(--cyan-main);
  border-color: var(--cyan-bright);
  color: #05080d;
  box-shadow: 0 0 25px var(--cyan-glow);
}

/* Center Fault Line & Medallion (#split-divider) */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(245, 158, 11, 0.7) 28%,
    #ffffff 50%,
    rgba(56, 189, 248, 0.7) 72%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.center-emblem {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1624 0%, #05080d 100%);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 158, 11, 0.2), 0 0 25px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.outer-ring {
  inset: 6px;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  animation: spinSlow 24s linear infinite;
}

.inner-ring {
  inset: 13px;
  border: 1px dashed rgba(56, 189, 248, 0.5);
  animation: spinSlow 18s linear infinite reverse;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.emblem-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: #ffffff;
}

.emblem-Crosshair {
  font-size: 15px;
  color: var(--amber-bright);
}

.split-portal.hover-right .emblem-Crosshair {
  color: var(--cyan-bright);
}

/* ==========================================================================
   SECTOR PAGES (VIEW 1: CONSTRUCTION & VIEW 2: WILDLIFE RECONNAISSANCE)
   ========================================================================== */
.sector-page {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.page-scroll-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 112px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hero Banner inside Sector Pages */
.sector-hero {
  position: relative;
  border-radius: 14px;
  padding: 52px 48px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-mid);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.construction-hero {
  background:
    linear-gradient(125deg, rgba(10, 15, 24, 0.95) 35%, rgba(10, 15, 24, 0.68) 100%),
    url('assets/hero_construction.png') center/cover no-repeat;
  border-left: 4px solid var(--amber-main);
}

.wildlife-hero {
  background:
    linear-gradient(125deg, rgba(10, 15, 24, 0.94) 35%, rgba(10, 15, 24, 0.68) 100%),
    url('assets/hero_wildlife.png') center/cover no-repeat;
  border-left: 4px solid var(--cyan-main);
}

.hero-inner {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tactical-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tactical-eyebrow.amber { color: var(--amber-bright); }
.tactical-eyebrow.cyan { color: var(--cyan-bright); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-dot.amber { background: var(--amber-main); box-shadow: 0 0 10px var(--amber-main); }
.pulse-dot.cyan { background: var(--cyan-main); box-shadow: 0 0 10px var(--cyan-main); }

.sector-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.accent-amber { color: var(--amber-bright); }
.accent-cyan { color: var(--cyan-bright); }

.sector-lead {
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 780px;
}

.sector-lead strong {
  color: #ffffff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.tactical-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-amber {
  background: var(--amber-main);
  color: #05080d;
  border: 1px solid var(--amber-bright);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
.btn-amber:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

.btn-cyan {
  background: var(--cyan-main);
  color: #05080d;
  border: 1px solid var(--cyan-bright);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}
.btn-cyan:hover {
  background: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-bright);
}

.btn-outline-cyan {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-bright);
}

/* ==========================================================================
   Interactive CAD Overlay & Volumetrics Slider Studio
   ========================================================================== */
.studio-section,
.demo-showcase-section,
.pillars-section,
.b2b-surveyor-section,
.contact-command-block {
  scroll-margin-top: 100px;
}

.studio-section,
.demo-showcase-section,
.pillars-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.slider-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.layer-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layer-chip.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--amber-main);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.layer-chip.active i {
  color: var(--amber-bright);
}

.custom-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-upload-trigger:hover {
  background: rgba(56, 189, 248, 0.24);
  border-style: solid;
}

/* Comparison Stage */
.comparison-wrapper {
  background: var(--bg-card-solid);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.comparison-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #070a0f;
}

.comp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comp-base-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.cad-dark-grade {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.34);
  pointer-events: none;
}

.cad-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cad-svg-layer {
  transition: opacity 0.25s ease;
}

.cad-svg-layer.layer-hidden {
  opacity: 0;
}

.comp-badge {
  position: absolute;
  top: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  pointer-events: none;
}

.badge-left {
  left: 18px;
}

.badge-right {
  right: 18px;
  border-color: var(--amber-main);
  color: var(--amber-bright);
}

.live-dot.amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-main);
  box-shadow: 0 0 8px var(--amber-main);
}

/* Slider Handle */
.comp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  outline: none;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber-bright);
  box-shadow: 0 0 16px var(--amber-main), 0 0 4px #ffffff;
}

.handle-knob {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #080d16;
  border: 2px solid var(--amber-bright);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.7), 0 6px 20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--amber-bright);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.comp-handle:hover .handle-knob,
.comp-handle:focus .handle-knob {
  transform: scale(1.1);
}

.knob-crosshair {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Telemetry Readout Strip Below Slider */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(8, 12, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.telem-item {
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.telem-item:last-child {
  border-right: none;
}

.telem-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.telem-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-red { color: #f87171; }
.text-green { color: #34d399; }
.text-amber { color: var(--amber-bright); }
.text-cyan { color: var(--cyan-bright); }

/* ==========================================================================
   3 Core Pillars Cards (Construction & Wildlife)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.pillar-card.amber-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-main);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
}

.pillar-card.cyan-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-main);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.15);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.amber-card .pillar-icon {
  font-size: 22px;
  color: var(--amber-bright);
}

.cyan-card .pillar-icon {
  font-size: 22px;
  color: var(--cyan-bright);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.pillar-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pillar-specs {
  list-style: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pillar-specs li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.amber-card .pillar-specs i {
  color: var(--amber-bright);
  font-size: 12px;
}

/* ==========================================================================
   Wildlife Demo Showcase Frame & Embedded Preview
   ========================================================================== */
.demo-preview-frame {
  background: var(--bg-card-solid);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.demo-frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #060a11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.frame-dots {
  display: flex;
  gap: 7px;
}

.frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.frame-dots span:nth-child(1) { background: #ef4444; }
.frame-dots span:nth-child(2) { background: #f59e0b; }
.frame-dots span:nth-child(3) { background: #10b981; }

.frame-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-bright);
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-launch-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #05080d;
  background: var(--cyan-bright);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.demo-iframe-wrap {
  width: 100%;
  height: 620px;
  background: #05080d;
  position: relative;
}

.demo-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.deliverable-highlights-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 12, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deliv-feat {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.deliv-feat:last-child {
  border-right: none;
}

.deliv-feat i {
  font-size: 20px;
  margin-top: 2px;
}

.deliv-feat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 3px;
}

.deliv-feat span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   B2B Section: Nationwide Deliverables for Other Deer Surveyors
   ========================================================================== */
.b2b-banner-card {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.b2b-header-block {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.b2b-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.b2b-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.b2b-sub strong {
  color: #ffffff;
}

/* 1 - 2 - 3 Pipeline Grid */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}

.pipeline-step {
  background: rgba(8, 13, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.pipeline-step.highlight-step {
  border-color: var(--cyan-main);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, rgba(8, 13, 22, 0.92) 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
}

.step-icon {
  font-size: 26px;
  color: #ffffff;
}

.pipeline-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.pipeline-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan-main);
  opacity: 0.7;
}

/* Old Way vs New Way Comparison */
.b2b-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comp-box {
  border-radius: 10px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-box.old-way {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-box.new-way {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.comp-box-hdr {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.old-way .comp-box-hdr { color: #f87171; }
.new-way .comp-box-hdr { color: #34d399; }

.comp-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-box li {
  font-size: 14.5px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.comp-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.new-way li::before {
  color: #34d399;
}

/* ==========================================================================
   Direct Operator Contact Command Block (Conner & William)
   ========================================================================== */
.contact-command-block {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.amber-border {
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 4px solid var(--amber-main);
}

.cyan-border {
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 4px solid var(--cyan-main);
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
}

.contact-left p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.territory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.terr-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.terr-pill.cyan-pill {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--cyan-bright);
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.operator-card {
  background: rgba(7, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.op-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber-bright);
}

.operator-card.cyan-op .op-role {
  color: var(--cyan-bright);
}

.op-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
}

.op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.op-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.op-link:hover {
  color: #ffffff;
  border-color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.14);
}

.operator-card.cyan-op .op-link:hover {
  border-color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.14);
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .deliverable-highlights-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .b2b-comparison-row,
  .contact-command-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .hud-frame {
    display: none;
  }
  #command-header {
    top: 10px;
    width: 96vw;
  }
  .command-switcher {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding: 5px;
  }
  .cmd-box {
    padding: 10px 10px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    flex: 1;
    justify-content: center;
  }
  .cmd-index {
    display: none;
  }
  .cmd-brand-hub {
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  /* Stack 50/50 split vertically on mobile phones */
  .pane-construction {
    left: 0;
    right: 0;
    top: 0;
    width: 100% !important;
    height: 50%;
  }
  .pane-wildlife {
    left: 0 !important;
    right: 0;
    top: 50%;
    width: 100% !important;
    height: 50%;
  }
  .split-divider {
    left: 0 !important;
    right: 0;
    top: 50%;
    bottom: auto;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
  }
  .divider-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber-main), #fff, var(--cyan-main), transparent);
  }
  .center-emblem {
    width: 84px;
    height: 84px;
  }
  .pane-title-lockup {
    bottom: 24px;
  }
  .page-scroll-container {
    padding: 84px 16px 64px;
  }
  .sector-hero,
  .b2b-banner-card,
  .contact-command-block {
    padding: 28px 20px;
  }
  .telemetry-strip,
  .deliverable-highlights-strip {
    grid-template-columns: 1fr;
  }
}
