/* Dezxey custom UI styles (extracted from header.php so the browser can cache them) */
/* Unrestricted Natural Smooth Scrolling */
html { 
  margin: 0; 
  padding: 0; 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  overflow-y: scroll;
}
body { 
  margin: 0; 
  padding: 0; 
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar { 
  width: 10px; 
}
::-webkit-scrollbar-track { 
  background: #f4efe7; 
}
::-webkit-scrollbar-thumb { 
  background: #c7c5ce; 
  border-radius: 9999px; 
  border: 2px solid #f4efe7;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover { 
  background: #ff6f3c; 
}

/* Unified Signature Typography Styling */
h1, h2, h3, h4, .font-display-hero, .font-headline-xl, .font-headline-lg, .font-headline-md, .font-headline-sm {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.035em !important;
}
.typo-emphasis {
  font-style: italic !important;
  font-weight: 700 !important;
}

/* 3D Perspective Card System */
.tilt-card-3d {
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform;
}
.tilt-card-inner {
  transform: translateZ(0px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tilt-card-3d:hover .tilt-card-inner {
  transform: translateZ(12px);
}

/* Moving Glowing Border Beam Animation (Conic Gradient Perimeter Ray) */
@keyframes borderBeamRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-border-beam {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  box-shadow: 0 20px 50px -10px rgba(255, 111, 60, 0.15), 0 10px 30px -5px rgba(11, 15, 42, 0.08);
}

.card-border-beam::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(255, 111, 60, 0.25) 320deg,
    #ff6f3c 360deg
  );
  animation: borderBeamRotate 6s linear infinite;
  z-index: -2;
}

.card-border-beam::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: inherit;
  border-radius: calc(36px - 2px);
  z-index: -1;
}

/* Dark Version of Border Beam */
.card-border-beam-dark {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #0B0F2A;
  box-shadow: 0 25px 60px -15px rgba(255, 111, 60, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-border-beam-dark::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 270deg,
    rgba(0, 255, 224, 0.3) 310deg,
    #ff6f3c 360deg
  );
  animation: borderBeamRotate 5s linear infinite;
  z-index: -2;
}

.card-border-beam-dark::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: inherit;
  border-radius: calc(32px - 2px);
  z-index: -1;
}

/* Orange Ambient Glow Accents */
.orange-glow-ambient {
  box-shadow: 
    0 14px 40px -8px rgba(255, 111, 60, 0.20),
    0 0 0 1.5px rgba(255, 111, 60, 0.35);
}
.orange-glow-subtle {
  box-shadow: 
    0 8px 25px -4px rgba(255, 111, 60, 0.12),
    0 0 0 1px rgba(255, 111, 60, 0.20);
}

/* Premium Button Effect System (Shimmer, Sweeping Light, & Glow Pulse) */
@keyframes btnSweep {
  0% { transform: translateX(-120%) skewX(-20deg); }
  35%, 100% { transform: translateX(220%) skewX(-20deg); }
}
@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 10px 28px -4px rgba(255, 84, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 14px 36px -2px rgba(255, 84, 0, 0.75), 0 0 15px rgba(255, 111, 60, 0.5); }
}

.btn-orange-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7a45 0%, #ff5400 48%, #e63900 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 28px -4px rgba(255, 84, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-orange-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: btnSweep 3.2s infinite ease-in-out;
  pointer-events: none;
}

.btn-orange-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px -4px rgba(255, 84, 0, 0.85), 0 0 0 2px rgba(255, 111, 60, 0.8);
  background: linear-gradient(135deg, #ff8c5a 0%, #ff5e0e 48%, #ed430a 100%);
}

.btn-orange-glow:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 6px 18px -2px rgba(255, 84, 0, 0.6);
}

/* WhatsApp Emerald Pill Button */
.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.btn-whatsapp-pill:active {
  transform: translateY(1px) scale(0.97);
}

/* Secondary Glass Action Button */
.btn-secondary-glass {
  position: relative;
  background: rgba(248, 243, 234, 0.9);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(199, 197, 206, 0.65);
  color: #111827;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary-glass:hover {
  border-color: #ff6f3c;
  color: #ff5400;
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -4px rgba(255, 111, 60, 0.22);
}

.btn-secondary-glass:active {
  transform: translateY(1px) scale(0.98);
}

/* Mobile Menu Drawer - Rock-Solid Luxury Styling & Perfect Contrast */
#mobile-menu-drawer {
  background: #0B0F2A !important;
  background-color: #0B0F2A !important;
  border: 1.5px solid rgba(255, 111, 60, 0.45) !important;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 111, 60, 0.25) !important;
  z-index: 9999 !important;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s ease;
  text-decoration: none;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(255, 111, 60, 0.2) !important;
  border-color: rgba(255, 111, 60, 0.6) !important;
  color: #ff7a45 !important;
  transform: translateX(4px);
}

.mobile-nav-link span.arrow-icon {
  color: #ff7a45;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.mobile-nav-link:hover span.arrow-icon {
  transform: translateX(3px);
}

/* Industry Blueprint Interactive Pill */
.btn-blueprint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(242, 237, 229, 0.8);
  border: 1.5px solid rgba(199, 197, 206, 0.5);
  color: #ff5400;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-blueprint-pill:hover {
  background: linear-gradient(135deg, #ff7a45, #ff5400);
  color: #ffffff;
  border-color: #ff5400;
  box-shadow: 0 8px 22px rgba(255, 84, 0, 0.35);
  transform: translateY(-2px);
}

.btn-blueprint-pill:hover .blueprint-arrow {
  transform: translateX(4px);
}

.blueprint-arrow {
  transition: transform 0.25s ease;
}

.btn-dark-primary {
  position: relative;
  overflow: hidden;
  background: #000000;
  color: #ffffff !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-dark-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnSweep 4s infinite;
  pointer-events: none;
}

.btn-dark-primary:hover {
  transform: translateY(-2px);
  background: #111827;
  box-shadow: 0 18px 40px -5px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 111, 60, 0.5);
}

.btn-dark-primary:active {
  transform: translateY(0px) scale(0.97);
}

/* ====================================================
   WINDING S-CURVE RIBBON SERVICES TIMELINE (DEZXEY ARSENAL)
   ==================================================== */
.svc-ribbon-container {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 0 60px 0;
}

.svc-zigzag-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.svc-path-bg {
  fill: none !important;
  stroke: rgba(199, 197, 206, 0.45);
  stroke-width: 3.5px;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
}

.svc-path-fill {
  fill: none !important;
  stroke-width: 4.5px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 0 10px rgba(255, 111, 60, 0.65));
}

.svc-ribbon-traveler {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.08s ease-out;
}

.traveler-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #ff5400;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 16px #ff5400, 0 0 32px #ff5400;
}

.traveler-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #ff5400;
  animation: ripplePulse 1.4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ripplePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.svc-zigzag-list {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  position: relative;
  z-index: 2;
}

.svc-item {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.svc-item.is-left {
  justify-content: flex-start;
}

.svc-item.is-right {
  justify-content: flex-end;
}

.svc-card {
  width: 44%;
  background: #ffffff;
  border: 1.5px solid rgba(199, 197, 206, 0.55);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  box-shadow: 0 14px 36px -8px rgba(11, 15, 42, 0.08), 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5px;
  height: 100%;
  background: linear-gradient(to bottom, #ff7a45, #ff5400);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.svc-card:hover, .svc-item.is-active .svc-card {
  transform: translateY(-6px);
  border-color: #ff5400;
  box-shadow: 0 22px 48px -10px rgba(255, 84, 0, 0.24), 0 8px 20px rgba(11, 15, 42, 0.06);
}

.svc-card:hover::before, .svc-item.is-active .svc-card::before {
  transform: scaleY(1);
}

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

.svc-tag-pill {
  padding: 4px 12px;
  background: rgba(255, 111, 60, 0.12);
  border: 1px solid rgba(255, 111, 60, 0.3);
  color: #ff5400;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.svc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(30, 90, 255, 0.1);
  border: 1px solid rgba(30, 90, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E5AFF;
  transition: all 0.35s ease;
}

.svc-card:hover .svc-icon-badge, .svc-item.is-active .svc-icon-badge {
  background: #ff5400;
  color: #ffffff;
  border-color: #ff5400;
  transform: rotate(6deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 84, 0, 0.35);
}

.svc-node {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid rgba(199, 197, 206, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #77767e;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item.is-left .svc-node {
  right: calc(56% - 24px);
}

.svc-item.is-right .svc-node {
  left: calc(56% - 24px);
}

.svc-node.active, .svc-item.is-active .svc-node, .svc-item:hover .svc-node {
  border-color: #ff5400;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a45, #ff5400);
  box-shadow: 0 0 0 6px rgba(255, 84, 0, 0.2), 0 0 24px rgba(255, 84, 0, 0.6);
  transform: translateY(-50%) scale(1.18);
}

.svc-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(199, 197, 206, 0.35);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.svc-bullet-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #111827;
  background: #f8f3ea;
  border: 1px solid rgba(199, 197, 206, 0.6);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .svc-zigzag-list {
    gap: 3.5rem;
  }
  .svc-item {
    justify-content: flex-start !important;
    padding-left: 56px !important;
    margin-bottom: 1.5rem;
  }
  .svc-node {
    left: 20px !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }
  .svc-node.active, .svc-item.is-active .svc-node, .svc-item:hover .svc-node {
    transform: translate(-50%, -50%) scale(1.15) !important;
  }
  .svc-card {
    width: 100% !important;
    padding: 1.75rem 1.35rem;
  }
}

/* Custom Editorial Range Input Styling */
input[type=range].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: #e7e2da;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
input[type=range].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0B0F2A;
  border: 3px solid #ff6f3c;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(11, 15, 42, 0.25), 0 0 10px rgba(255, 111, 60, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
input[type=range].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #ff6f3c;
  border-color: #0B0F2A;
}
input[type=range].custom-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.28);
}
input[type=range].custom-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0B0F2A;
  border: 3px solid #ff6f3c;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(11, 15, 42, 0.25);
}

/* Continuous Seamless Marquee Keyframes */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee-continuous {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.animate-marquee-continuous:hover {
  animation-play-state: paused;
}

/* Floating Micro-Animation System for Cards */
@keyframes floatGentle1 {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
@keyframes floatGentle2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes floatGentle3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(0.8deg); }
}
@keyframes floatGentle4 {
  0%, 100% { transform: translateY(0px) rotate(0.8deg); }
  50% { transform: translateY(-9px) rotate(-0.8deg); }
}

@media (min-width: 1024px) {
  .float-anim-1 { animation: floatGentle1 6s ease-in-out infinite; }
  .float-anim-2 { animation: floatGentle2 7s ease-in-out infinite; }
  .float-anim-3 { animation: floatGentle3 5.5s ease-in-out infinite; }
  .float-anim-4 { animation: floatGentle4 6.5s ease-in-out infinite; }
}

/* 3D Interactive Timeline Beacon & Stage Prominence */
.timeline-node-active {
  background: #ffffff !important;
  border-color: #ff6f3c !important;
  box-shadow: 0 16px 40px -8px rgba(255, 111, 60, 0.35), 0 0 0 2px rgba(255, 111, 60, 0.4) !important;
  transform: translateY(-4px) scale(1.02) !important;
}
.timeline-node-active .stage-dot-indicator {
  background: #ff6f3c !important;
  box-shadow: 0 0 16px #ff6f3c, 0 0 32px #ff6f3c !important;
  transform: scale(1.35) !important;
}
.timeline-node-active .stage-badge-pill {
  background: #ff6f3c !important;
  color: #ffffff !important;
}

/* ====================================================
   VOXEL / RPG 3D CHUNKY STONE & WOOD HUD CALCULATOR SYSTEM
   ==================================================== */
.hud-calculator-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
}

.hud-main-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #0f1322;
  border: 6px solid #232c49;
  outline: 4px solid #080b14;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 0 #070910,
    0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

@media (min-width: 1024px) {
  .hud-main-frame {
    grid-template-columns: 1.35fr 1fr;
    padding: 20px;
    gap: 20px;
  }
}

/* Left Panel: Stone Grid Container */
.hud-left-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Wood Header Plank */
.hud-wood-header {
  background: linear-gradient(180deg, #825028 0%, #5a3418 50%, #3d210d 100%);
  border: 3px solid #261305;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    inset 0 2px 0 #a96f3e,
    inset 0 -3px 0 #1e0d03,
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.hud-wood-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #f7e6d2;
  text-transform: uppercase;
  text-shadow: 
    0 2px 0 #200f04,
    0 3px 0 #120802,
    0 4px 6px rgba(0, 0, 0, 0.6);
}

.hud-wood-sync-badge {
  background: linear-gradient(180deg, #261e12 0%, #140f08 100%);
  border: 2px solid #544026;
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 #7b613e, inset 0 -2px 0 #0a0804;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffdf9e;
}

.hud-gem-green {
  width: 9px;
  height: 9px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66, 0 0 16px rgba(0, 255, 102, 0.6);
  display: inline-block;
  animation: hudGemPulse 2s infinite ease-in-out;
}

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

/* Modular Stone Input Slabs */
.hud-stone-row {
  background: linear-gradient(180deg, #222a46 0%, #191f35 100%);
  border: 3px solid #2d3759;
  border-bottom: 5px solid #101423;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.hud-stone-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-stone-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 3D Chunky Square Icon Badges */
.hud-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Badge 1: Blue Character / Agent */
.hud-icon-box-blue {
  background: linear-gradient(180deg, #1e3a66 0%, #10213d 100%);
  border: 3px solid #284c85;
  border-bottom: 4px solid #0a1426;
  box-shadow: inset 0 2px 0 #4a75ba, inset 0 -2px 0 #080f1d;
}

/* Badge 2: Green Growth Arrow */
.hud-icon-box-green {
  background: linear-gradient(180deg, #0e4c27 0%, #062a14 100%);
  border: 3px solid #176f3b;
  border-bottom: 4px solid #03180b;
  box-shadow: inset 0 2px 0 #28ba65, inset 0 -2px 0 #021107;
}

/* Badge 3: Gold Coin */
.hud-icon-box-gold {
  background: linear-gradient(180deg, #664d0a 0%, #3d2c04 100%);
  border: 3px solid #947012;
  border-bottom: 4px solid #211701;
  box-shadow: inset 0 2px 0 #e6b22b, inset 0 -2px 0 #140e01;
}

/* Badge 4: Red Lightning */
.hud-icon-box-red {
  background: linear-gradient(180deg, #6e181e 0%, #3d0a0e 100%);
  border: 3px solid #9c252d;
  border-bottom: 4px solid #210406;
  box-shadow: inset 0 2px 0 #e6404c, inset 0 -2px 0 #140203;
}

.hud-input-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #e5ebff;
  letter-spacing: -0.01em;
}

/* 3D Value Badges */
.hud-value-badge {
  background: linear-gradient(180deg, #2b2118 0%, #17110c 100%);
  border: 2px solid #59422f;
  border-bottom: 3px solid #0f0b07;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffeedb;
  box-shadow: inset 0 1px 0 #856549, 0 2px 5px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.hud-value-badge-orange {
  background: linear-gradient(180deg, #7c3b12 0%, #441c05 100%);
  border: 2px solid #b85b1f;
  border-bottom: 3px solid #240d02;
  color: #ffe6d4;
  box-shadow: inset 0 1px 0 #e87b38, 0 2px 5px rgba(0,0,0,0.4);
}

/* 3D Recessed Slider Track Container */
.hud-slider-wrap {
  position: relative;
  width: 100%;
  padding: 4px 0;
}

.hud-slider-track {
  height: 14px;
  background: #0d101c;
  border: 2px solid #1b2138;
  border-top: 2px solid #080a12;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
}

.hud-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.05s ease-out;
}

.hud-fill-blue {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: inset 0 1px 0 #93c5fd, inset 0 -1px 0 #1e3a8a, 0 0 8px rgba(59, 130, 246, 0.4);
}

.hud-fill-green {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  box-shadow: inset 0 1px 0 #6ee7b7, inset 0 -1px 0 #064e3b, 0 0 8px rgba(16, 185, 129, 0.4);
}

.hud-fill-gold {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  box-shadow: inset 0 1px 0 #fde68a, inset 0 -1px 0 #78350f, 0 0 8px rgba(245, 158, 11, 0.4);
}

.hud-fill-orange {
  background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
  box-shadow: inset 0 1px 0 #fdba74, inset 0 -1px 0 #7c2d12, 0 0 8px rgba(249, 115, 22, 0.4);
}

/* Range input styling mapped on top */
.hud-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  margin: 0;
}

/* Range Markers */
.hud-range-markers {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.76rem;
  color: #8b9bb4;
  margin-top: 6px;
  font-weight: 600;
}

/* 3D Voxel Knob Overlay on the fill bar */
.hud-voxel-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 
    inset 0 2px 0 rgba(255,255,255,0.7),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    0 2px 6px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 4;
  transition: left 0.05s ease-out;
}

.hud-knob-blue {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border: 2px solid #1d4ed8;
}

.hud-knob-green {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border: 2px solid #047857;
}

.hud-knob-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border: 2px solid #b45309;
}

.hud-knob-orange {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border: 2px solid #c2410c;
}

/* Left Panel Footer */
.hud-left-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: #92a4be;
}

.hud-info-badge {
  width: 24px;
  height: 24px;
  background: linear-gradient(180deg, #1e3a66 0%, #0e1d35 100%);
  border: 2px solid #2d5594;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #70a7ff;
  box-shadow: inset 0 1px 0 #578fe6, 0 2px 4px rgba(0,0,0,0.4);
}

.hud-reset-link {
  color: #70a7ff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.15s ease;
}
.hud-reset-link:hover {
  color: #a3c7ff;
}

/* Right Panel: MODELED SYNTHESIS HUD */
.hud-right-panel {
  background: linear-gradient(180deg, #14182e 0%, #0c0f1e 100%);
  border: 4px solid #242c4b;
  border-bottom: 6px solid #080a14;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hud-right-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid #1c223a;
}

.hud-cube-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-cube-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #0c3e34 0%, #05201b 100%);
  border: 2px solid #146e5c;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 #1ed1ae, 0 0 8px rgba(0, 255, 224, 0.3);
}

.hud-synthesis-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #00ffe0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 224, 0.5);
}

.hud-version-badge {
  background: linear-gradient(180deg, #2b2016 0%, #15100a 100%);
  border: 2px solid #543e2a;
  border-radius: 6px;
  padding: 3px 10px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffdfba;
}

/* Modeled Added Annual Revenue Hero Box */
.hud-revenue-hero {
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-rev-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8fa0c0;
  text-transform: uppercase;
}

.hud-rev-number {
  font-family: 'Space Grotesk', monospace;
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1.05;
  color: #00ffe0;
  letter-spacing: -0.02em;
  text-shadow: 
    0 0 12px rgba(0, 255, 224, 0.7),
    0 0 28px rgba(0, 255, 224, 0.35),
    0 4px 0 #005247;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .hud-rev-number {
    font-size: 3.4rem;
  }
}

.hud-runrate-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  color: #b0c2de;
  font-weight: 600;
}
.hud-runrate-text strong {
  color: #ffffff;
}

/* Two Side-by-Side Middle Inset Cards */
.hud-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hud-inset-card {
  background: linear-gradient(180deg, #181d33 0%, #111526 100%);
  border: 2px solid #242c4c;
  border-bottom: 4px solid #090b14;
  border-radius: 12px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-inset-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8b9bb4;
  text-transform: uppercase;
}

.hud-inset-badge-blue {
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
  border: 2px solid #3b82f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 #93c5fd;
}

.hud-inset-badge-red {
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
  border: 2px solid #ef4444;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 #fca5a5;
}

.hud-inset-big-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.hud-inset-sub {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  color: #7b8ca5;
  font-weight: 600;
}

/* Speed-to-Lead Acceleration Box */
.hud-speed-box {
  background: linear-gradient(180deg, #181d33 0%, #111526 100%);
  border: 2px solid #242c4c;
  border-bottom: 4px solid #090b14;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hud-speed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-speed-info h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
}

.hud-speed-info span {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  color: #8b9bb4;
}

.hud-speed-badge {
  background: linear-gradient(180deg, #0d3822 0%, #061f12 100%);
  border: 2px solid #176f3b;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: inset 0 1px 0 #28ba65, 0 0 10px rgba(0, 255, 102, 0.2);
}

.hud-speed-faster-text {
  font-family: 'Space Grotesk', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  color: #00ff66;
  white-space: nowrap;
}

/* Stepped Voxel Bar Graph */
.hud-voxel-graph {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.hud-graph-bar {
  width: 5px;
  background: #00ff66;
  border-radius: 1px;
  box-shadow: 0 0 4px #00ff66;
}

/* Bottom Deploy Row */
.hud-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.hud-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-bottom-text h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #e5ebff;
  margin: 0;
}

.hud-bottom-text p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: #8fa0c0;
  margin: 0;
}

/* 3D Chunky Orange Deploy Button */
.hud-deploy-btn {
  background: linear-gradient(180deg, #ff7a29 0%, #ff5500 50%, #d43d00 100%);
  border: 3px solid #ff914d;
  border-bottom: 6px solid #8a2400;
  border-radius: 12px;
  padding: 12px 24px;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    inset 0 2px 0 #ffa366,
    0 8px 18px rgba(255, 85, 0, 0.45);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-bottom 0.1s ease;
  text-decoration: none;
  width: 100%;
}

@media (min-width: 640px) {
  .hud-deploy-btn {
    width: auto;
  }
  .hud-bottom-row {
    flex-direction: row;
  }
}

.hud-deploy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 2px 0 #ffa366,
    0 12px 24px rgba(255, 85, 0, 0.6);
  border-bottom: 7px solid #8a2400;
}

.hud-deploy-btn:active {
  transform: translateY(3px);
  box-shadow: 
    inset 0 1px 0 #ffa366,
    0 2px 6px rgba(255, 85, 0, 0.4);
  border-bottom: 2px solid #8a2400;
}

/* ============================================================
   MINECRAFT / VOXEL AUTONOMOUS INGESTION PIPELINE (PURE CSS)
   ============================================================ */
.mc-font {
  font-family: 'Silkscreen', 'JetBrains Mono', monospace;
  letter-spacing: 0px;
  font-size: 11px;
}

@media (min-width: 640px) {
  .mc-font {
    font-size: 13px;
  }
}

/* Master Static Container */
.mc-pipeline-box {
  background: #070a14;
  border: 4px solid #1c2438;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 14px;
  position: relative;
  user-select: none;
}

@media (min-width: 640px) {
  .mc-pipeline-box {
    padding: 22px;
  }
}

/* 1. Oak Wood Header Sign */
.mc-sign-wood {
  background: linear-gradient(180deg, #9d683a 0%, #7d4d23 45%, #633916 100%);
  border: 4px solid #3d200a;
  box-shadow: 
    inset 0 4px 0 #b87e4c,
    inset 0 -4px 0 #4a270d,
    inset 4px 0 0 #b87e4c,
    inset -4px 0 0 #4a270d,
    0 6px 0 #241103;
  border-radius: 4px;
  padding: 10px 12px 10px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

@media (min-width: 640px) {
  .mc-sign-wood {
    padding: 12px 16px 12px 50px;
    gap: 12px;
  }
}

/* Hanging 3D Minecraft Lantern */
.mc-lantern-wrap {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.mc-lantern-chain {
  width: 6px;
  height: 6px;
  background: #374151;
  border: 2px solid #111827;
  border-radius: 1px;
  margin-bottom: -2px;
  z-index: 2;
}

.mc-lantern-body {
  width: 22px;
  height: 28px;
  background: linear-gradient(180deg, #ffdd55 0%, #ff9900 50%, #e65100 100%);
  border: 3px solid #1f2937;
  box-shadow: 
    0 0 14px rgba(255, 170, 0, 0.8),
    inset 0 0 6px #ffffff;
  border-radius: 2px;
  position: relative;
}

.mc-lantern-body::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: #1f2937;
}

.mc-lantern-body::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 1px;
  right: 1px;
  height: 3px;
  background: #1f2937;
}

.mc-lantern-core {
  position: absolute;
  inset: 2px;
  background: #ffffff;
  opacity: 0.9;
  border-radius: 1px;
}

/* Minecraft Iron Gear Icon */
.mc-gear-box {
  width: 28px;
  height: 28px;
  background: #94a3b8;
  border: 3px solid #1e293b;
  box-shadow: 
    inset 0 2px 0 #cbd5e1,
    inset 0 -2px 0 #475569;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

/* Wooden Title */
.mc-sign-title {
  color: #ffffff;
  text-shadow: 2px 2px 0 #281404, 3px 3px 0 #000;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  white-space: normal;
}

@media (min-width: 640px) {
  .mc-sign-title {
    font-size: 13.5px;
  }
}

/* Green v4.2 Production Badge */
.mc-badge-green {
  background: #0f172a;
  border: 3px solid #1e293b;
  box-shadow: 
    inset 0 2px 0 #334155,
    inset 0 -2px 0 #020617,
    0 2px 0 #000;
  border-radius: 3px;
  color: #00ff66;
  font-family: 'Silkscreen', 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 7px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .mc-badge-green {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ============================================================
   SEQUENTIAL FLOWING CURRENT ANIMATION FOR ARROWS (TOP TO BOTTOM)
   ============================================================ */
@keyframes mcCurrentPulse {
  0%, 28%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 0 #0f172a);
  }
  10% {
    transform: translateY(1px) scale(1.15);
    filter: drop-shadow(0 0 10px #00FFE0) drop-shadow(0 0 18px rgba(0, 255, 224, 0.7));
  }
  18% {
    transform: translateY(3px) scale(1.28);
    filter: drop-shadow(0 0 14px #38bdf8) drop-shadow(0 0 22px rgba(255, 170, 0, 0.8));
  }
  25% {
    transform: translateY(2px) scale(1.08);
    filter: drop-shadow(0 0 6px #00FFE0);
  }
}

@keyframes mcEnergyFlowStem {
  0%, 28%, 100% {
    background: #475569;
    box-shadow: inset 0 2px 0 #64748b;
    border-color: #1e293b;
  }
  10% {
    background: #38bdf8;
    box-shadow: inset 0 2px 0 #e0f2fe, 0 0 12px #00FFE0;
    border-color: #ffffff;
  }
  18% {
    background: #ffffff;
    box-shadow: inset 0 2px 0 #ffffff, 0 0 16px #38bdf8;
    border-color: #38bdf8;
  }
  25% {
    background: #00FFE0;
    box-shadow: inset 0 2px 0 #ffffff, 0 0 8px #00FFE0;
    border-color: #1e293b;
  }
}

@keyframes mcEnergyFlowHead {
  0%, 28%, 100% {
    border-top-color: #475569;
    filter: drop-shadow(0 2px 0 #0f172a);
  }
  10% {
    border-top-color: #38bdf8;
    filter: drop-shadow(0 0 8px #00FFE0);
  }
  18% {
    border-top-color: #ffffff;
    filter: drop-shadow(0 0 14px #00FFE0) drop-shadow(0 0 20px #ff9900);
  }
  25% {
    border-top-color: #00FFE0;
    filter: drop-shadow(0 0 6px #00FFE0);
  }
}

.mc-arrow-step {
  display: flex;
  justify-content: center;
  margin: 8px 0;
  position: relative;
}

.mc-pixel-arrow {
  width: 26px;
  height: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mc-arrow-stem {
  width: 12px;
  height: 9px;
  background: #475569;
  border: 2px solid #1e293b;
  border-bottom: none;
  box-shadow: inset 0 2px 0 #64748b;
  transition: all 0.2s ease;
}

.mc-arrow-head {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 11px solid #475569;
  filter: drop-shadow(0 2px 0 #0f172a);
  transition: all 0.2s ease;
}

/* 4-Stage Cascading Current Delays (Top -> Down in Perfect Sequence) */
.mc-arrow-1 .mc-pixel-arrow {
  animation: mcCurrentPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.mc-arrow-1 .mc-arrow-stem {
  animation: mcEnergyFlowStem 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.mc-arrow-1 .mc-arrow-head {
  animation: mcEnergyFlowHead 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.mc-arrow-2 .mc-pixel-arrow {
  animation: mcCurrentPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}
.mc-arrow-2 .mc-arrow-stem {
  animation: mcEnergyFlowStem 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}
.mc-arrow-2 .mc-arrow-head {
  animation: mcEnergyFlowHead 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.mc-arrow-3 .mc-pixel-arrow {
  animation: mcCurrentPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}
.mc-arrow-3 .mc-arrow-stem {
  animation: mcEnergyFlowStem 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}
.mc-arrow-3 .mc-arrow-head {
  animation: mcEnergyFlowHead 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

.mc-arrow-4 .mc-pixel-arrow {
  animation: mcCurrentPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.8s;
}
.mc-arrow-4 .mc-arrow-stem {
  animation: mcEnergyFlowStem 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.8s;
}
.mc-arrow-4 .mc-arrow-head {
  animation: mcEnergyFlowHead 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.8s;
}

/* Block 1: Smooth Stone / Cobblestone */
.mc-block-stone {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
  border: 4px solid #1f2937;
  box-shadow: 
    inset 0 3px 0 #cbd5e1,
    inset 0 -3px 0 #374151,
    inset 3px 0 0 #cbd5e1,
    inset -3px 0 0 #374151,
    0 5px 0 #111827;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 640px) {
  .mc-block-stone {
    padding: 12px 16px;
  }
}

/* Block 2: Lapis Lazuli / Dark Blue with Cyan Glow */
.mc-block-lapis {
  background: linear-gradient(180deg, #1e3a5f 0%, #152744 50%, #0d192c 100%);
  border: 4px solid #080f1a;
  box-shadow: 
    inset 0 3px 0 #2d558a,
    inset 0 -3px 0 #08111e,
    inset 3px 0 0 #2d558a,
    inset -3px 0 0 #08111e,
    0 5px 0 #04080e,
    0 0 20px rgba(0, 255, 224, 0.15);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 640px) {
  .mc-block-lapis {
    padding: 12px 16px;
  }
}

/* Block 3: Deepslate / Obsidian */
.mc-block-deepslate {
  background: linear-gradient(180deg, #374151 0%, #28303d 50%, #1e242e 100%);
  border: 4px solid #0f1318;
  box-shadow: 
    inset 0 3px 0 #4b5563,
    inset 0 -3px 0 #14181f,
    inset 3px 0 0 #4b5563,
    inset -3px 0 0 #14181f,
    0 5px 0 #080a0d;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 640px) {
  .mc-block-deepslate {
    padding: 12px 16px;
  }
}

/* Block 4: Acacia Wood / Copper Glow */
.mc-block-copper {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  border: 4px solid #431407;
  box-shadow: 
    inset 0 3px 0 #f97316,
    inset 0 -3px 0 #7c2d12,
    inset 3px 0 0 #f97316,
    inset -3px 0 0 #7c2d12,
    0 5px 0 #270b04,
    0 0 25px rgba(234, 88, 12, 0.3);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 640px) {
  .mc-block-copper {
    padding: 12px 16px;
  }
}

/* Inset Icon Squares */
.mc-icon-inset {
  width: 34px;
  height: 34px;
  background: #111827;
  border: 3px solid #0b0f17;
  box-shadow: 
    inset 0 2px 0 #000, 
    inset 0 -2px 0 #374151;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-icon-cyan {
  border-color: #00FFE0;
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.5), inset 0 0 6px rgba(0, 255, 224, 0.3);
}

.mc-icon-orange {
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4), inset 0 0 6px rgba(249, 115, 22, 0.3);
}

/* Right Action/Telemetry Badges */
.mc-btn-pill {
  background: #1e293b;
  border: 3px solid #0f172a;
  box-shadow: 
    inset 0 2px 0 #334155, 
    inset 0 -2px 0 #050811, 
    0 2px 0 #000;
  border-radius: 3px;
  color: #ffffff;
  font-family: 'Silkscreen', 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 5px 9px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.mc-btn-cyan {
  background: #082f49;
  border-color: #00FFE0;
  color: #00FFE0;
  box-shadow: 
    0 0 12px rgba(0, 255, 224, 0.4), 
    inset 0 2px 0 #0369a1, 
    0 2px 0 #000;
  text-shadow: 0 0 6px rgba(0, 255, 224, 0.6);
}

.mc-btn-gold {
  background: #78350f;
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 
    0 0 14px rgba(245, 158, 11, 0.5), 
    inset 0 2px 0 #b45309, 
    0 2px 0 #3b1604;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  font-family: 'Silkscreen', 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 5px 9px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 3px;
}


/* ====================================================================
   LAYOUT FIXES (v2.2) — header offset, calculator responsiveness, perf
   Loaded after the rules above, so these intentionally override them.
   ==================================================================== */

/* ---- 1. Fixed-header offset: no more content hidden under the floating nav ---- */
:root {
  --hdr-top: 12px;                       /* header: top-3  */
  --hdr-h: 64px;                         /* header: h-16   */
  --hdr-offset: calc(var(--hdr-top) + var(--hdr-h));
}
@media (min-width: 640px) {
  :root { --hdr-top: 24px; --hdr-h: 64px; }   /* sm:top-6 + h-16 (sm:h-18 is not a Tailwind class, so the bar stays 64px) */
}

/* anchor links (#services, #contact-audit, ...) land BELOW the header */
html { scroll-padding-top: calc(var(--hdr-offset) + 16px); }

/* every page starts below the header, with one consistent gap */
main.site-main {
  padding-top: calc(var(--hdr-offset) + 1.75rem);
}
@media (min-width: 640px) {
  main.site-main { padding-top: calc(var(--hdr-offset) + 2.5rem); }
}

/* ---- 2. Calculator: never wider than its card ---- */
.hud-calculator-wrapper {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  filter: none;                          /* big drop-shadow filter = expensive repaint on scroll */
}
.hud-main-frame {
  grid-template-columns: minmax(0, 1fr); /* lets grid children shrink instead of overflowing */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hud-main-frame { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.hud-left-panel, .hud-right-panel, .hud-stone-row, .hud-inset-card, .hud-speed-box { min-width: 0; }

.hud-wood-header { flex-wrap: wrap; gap: 8px 12px; }
.hud-wood-title  { font-size: clamp(0.9rem, 3.8vw, 1.15rem); min-width: 0; overflow-wrap: anywhere; }
.hud-wood-sync-badge { flex: 0 0 auto; }

.hud-stone-row-header { flex-wrap: wrap; gap: 10px 12px; }
.hud-stone-row-left   { flex: 1 1 11rem; min-width: 0; }
.hud-input-label      { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.hud-value-badge      { flex: 0 0 auto; max-width: 100%; }

/* slider: knob/fill are positioned from one variable (--p: 0..1) so the knob
   stays inside the track at both ends */
.hud-slider-wrap  { padding: 10px 0; touch-action: pan-y; }
.hud-slider-track { margin: 0; }
.hud-slider-fill  { width: calc(9px + (100% - 18px) * var(--p, 0)); transition: none; }
.hud-voxel-knob   { left: calc(9px + (100% - 18px) * var(--p, 0)); transition: none; }

.hud-range-input {
  -webkit-appearance: none; appearance: none;
  background: transparent; height: 100%; touch-action: pan-y;
}
.hud-range-input::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.hud-range-input::-moz-range-track              { background: transparent; height: 100%; }
.hud-range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 34px; border: 0; background: transparent; }
.hud-range-input::-moz-range-thumb     { width: 18px; height: 34px; border: 0; background: transparent; }

.hud-range-markers { gap: 6px; font-size: clamp(0.62rem, 2.7vw, 0.76rem); }
.hud-range-markers span { min-width: 0; }

.hud-right-top-bar { flex-wrap: wrap; gap: 8px 12px; }
.hud-right-panel   { container-type: inline-size; }

/* big result number scales with the card, so +$405,000,000 can't overflow */
.hud-rev-number {
  font-size: clamp(1.6rem, 9vw, 2.8rem);
  font-size: clamp(1.6rem, 12cqi, 3.4rem);
  overflow-wrap: anywhere;
}
.hud-runrate-text { overflow-wrap: anywhere; }

.hud-middle-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.hud-inset-card  { container-type: inline-size; }
.hud-inset-big-val { font-size: clamp(1.05rem, 5.5vw, 1.45rem); font-size: clamp(1.05rem, 11cqi, 1.45rem); overflow-wrap: anywhere; }
.hud-inset-sub, .hud-inset-header { overflow-wrap: anywhere; }

.hud-speed-box  { flex-wrap: wrap; }
.hud-speed-left { flex: 1 1 12rem; min-width: 0; }
.hud-bottom-left { min-width: 0; }

@media (max-width: 479px) {
  .hud-main-frame { border-width: 4px; outline-width: 3px; padding: 10px; gap: 12px; border-radius: 16px; }
  .hud-left-panel { gap: 10px; }
  .hud-wood-header { padding: 8px 12px; }
  .hud-stone-row   { padding: 12px; gap: 8px; border-radius: 12px; }
  .hud-stone-row-left { gap: 10px; }
  .hud-icon-box    { width: 42px; height: 42px; min-width: 42px; }
  .hud-icon-box svg { width: 24px; height: 24px; }
  .hud-input-label { font-size: 0.95rem; }
  .hud-value-badge { padding: 5px 10px; font-size: 0.88rem; }
  .hud-right-panel { padding: 14px; gap: 12px; border-radius: 14px; }
  .hud-deploy-btn  { padding: 12px 16px; }
}

/* ---- 3. Performance / comfort ---- */
.tilt-card-3d { will-change: auto; }                 /* don't keep dozens of cards on their own GPU layers */
@media (hover: none) { .tilt-card-3d { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  #bg-depth-canvas { display: none; }
}

/* calculator: evenly spaced slider scale labels (can't collide on narrow screens) */
.hud-range-markers span { flex: 1 1 0; }
.hud-range-markers span:first-child { text-align: left; }
.hud-range-markers span:nth-child(2) { text-align: center; }
.hud-range-markers span:last-child { text-align: right; }
.hud-calculator-wrapper .material-symbols-outlined { white-space: nowrap; overflow-wrap: normal; }
.hud-bottom-row  { flex-wrap: wrap; }
.hud-bottom-left { flex: 1 1 14rem; }
