body {
    margin: 0 !important;
    padding: 0;
}

#hero, #hero-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
}

#hero {
    z-index: -4;          
    pointer-events: none; 
}

#hero-dimmer {
    background: rgba(118, 184, 146, 0.2);
    z-index: -3;                    
}

.vignette-overlay {
  position: fixed;
  inset: 0;                  /* top:0 right:0 bottom:0 left:0 */
  pointer-events: none;
  z-index: -2;                /* above canvas / background, below tooltips if you want */

  /* Simple vignette using radial-gradient */
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0.75) 100%
    );
}


/* Existing styles... */

.inspect-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -130%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.inspect-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -160%);
}

/* Equivalent to: pointer-events-none fixed inset-0 -z-10 */
.grain-overlay {
  position: fixed;
  inset: 0;             /* top:0; right:0; bottom:0; left:0; */
  z-index: -1;
  pointer-events: none;
}

/* Equivalent to: w-full h-full mix-blend-soft-light opacity-80 */
.grain-overlay-svg {
  width: 100%;
  height: 100%;
  mix-blend-mode: soft-light;
  opacity: 0.8;
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* .page-content {
  padding: 24px;
} */

/* ===========================
   DESKTOP DOCK
   =========================== */

.floating-dock-desktop {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  height: 64px;
  padding: 0 16px 12px; /* base horizontal padding */
  display: none; /* toggled via media queries */
  align-items: flex-end;
  gap: 0; /* spacing handled by margins in JS */
  border-radius: 16px;
  border: 2px solid rgba(6, 95, 70, 0.7);
  background: linear-gradient(
    135deg,
    rgba(6, 95, 70, 0.95),
    rgba(4, 47, 46, 0.9)
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  z-index: 20;
  transition: padding 0.18s ease-out;
}

@media (min-width: 768px) {
  .floating-dock-desktop {
    display: flex;
  }

  .floating-dock-mobile {
    display: none;
  }
}

/* Dock item (circle) */
.dock-link {
  text-decoration: none;
}

.dock-item {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #15803d, #065f46);
  border: 1px solid rgba(6, 78, 59, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 100%; /* grow upwards */
  will-change: transform, margin;
  margin: 0 8px; /* base; JS adjusts on hover */
}

/* Icon wrapper */
.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;   /* base size */
  height: 20px;  /* base size */
  color: #ecfdf5;
}

/* SVG inside icon */
.dock-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tooltip */
.dock-tooltip {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%) translateY(6px);
  padding: 2px 8px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  color: #0f172a;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 30;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===========================
   MOBILE DOCK
   =========================== */

.floating-dock-mobile {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: flex-end;
  flex-direction: column;
}

/* Only show mobile dock < 768px */
@media (max-width: 767.98px) {
  .floating-dock-desktop {
    display: none;
  }

  .floating-dock-mobile {
    display: flex;
  }
}

/* Mobile menu (icons above toggle) */
.mobile-menu {
  position: relative;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.floating-dock-mobile.open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile items reuse dock styles but look lighter */
.mobile-menu .dock-item {
  background: rgba(22, 163, 74, 0.2);
}

/* Mobile toggle button */
.mobile-toggle-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #ecfdf5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 0;
}

.mobile-toggle-button:hover {
  background: #d1fae5;
}

.mobile-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #15803d;
}

/* Mobile dock links alignment */
.mobile-menu .dock-link {
  align-self: flex-end;
}

.route-page {
  display: none;
}

.route-page.active {
  display: block;
}

/* Home route layout */
.route-home .home-hero {
  min-height: calc(100vh - 160px); /* adjust if you have header/dock */
  display: flex;
  align-items: center;
  justify-content: center;
}
.route-blog .wip, .route-me .wip {
  min-height: calc(100vh - 160px); /* adjust if you have header/dock */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pixel art image – scale but keep it sharp */
.home-pixel-art {
  width: 384px;   /* 64 * 3 */
  height: 384px;
  image-rendering: pixelated;
  image-rendering: crisp-edges; /* fallback hint */
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-pixelated;

  animation: floatUpDown 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65));

}

/* Smooth up–down float */
@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}
