/* ══════════════════════════════════════════════════════════════
 * Sampingan.io Coming Soon — Bento 8×8 Bayer Dither Illustration Stage
 * Cohesive with ridgeline-footer.css (Glacier Blue + Electric Green #00f172)
 * ══════════════════════════════════════════════════════════════ */

.bento-card {
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover {
  border-color: rgba(0, 241, 114, 0.34);
  box-shadow:
    inset 0 1px 0 0 rgba(0, 241, 114, 0.14),
    0 20px 44px -24px rgba(37, 99, 235, 0.45),
    0 12px 28px -18px rgba(0, 241, 114, 0.24);
}

/* Full-bleed Bayer dither artwork stage inside each Bento card */
.bento-graphic-stage.bento-dither-stage {
  position: relative;
  height: 16.5rem;
  padding: 0;
  display: block;
  overflow: hidden;
  background-color: #0b1120;
  cursor: crosshair;
  isolation: isolate;
}

@media (min-width: 640px) {
  .bento-graphic-stage.bento-dither-stage {
    height: 17.5rem;
    padding: 0;
  }
}

/* Crisp pixelated Bayer dither canvas (matches .rdf-scene canvas) */
.bento-dither-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-dither-stage.is-dither-ready .bento-dither-canvas {
  opacity: 1;
}

/* Progressive no-JS / pre-load dark monochrome fallback */
.bento-dither-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: contrast(1.2) brightness(0.82) saturate(0);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.bento-dither-stage.is-dither-ready .bento-dither-fallback {
  opacity: 0;
}

/* Subtle top-edge Sampingan blue-to-green ambient glow on hover */
.bento-dither-aura {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 48% at 50% 0%,
    rgba(37, 99, 235, 0.14),
    transparent 72%
  );
}

.bento-dither-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 52% at 50% 6%,
    rgba(0, 241, 114, 0.14),
    rgba(37, 99, 235, 0.08) 50%,
    transparent 76%
  );
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .bento-dither-aura::after {
  opacity: 1;
}

/* Soft edge dissolve so the artwork melts seamlessly into #0b1120 card surface */
.bento-dither-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(11, 17, 32, 0.32) 0%,
      transparent 15%,
      transparent 66%,
      rgba(11, 17, 32, 0.88) 90%,
      #0b1120 100%
    ),
    linear-gradient(
      to right,
      rgba(11, 17, 32, 0.48) 0%,
      transparent 11%,
      transparent 89%,
      rgba(11, 17, 32, 0.48) 100%
    );
}

/* Precision floating cursor pin + telemetry tag (mirrors footer's .rdf-alt) */
.bento-dither-reticle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.28s ease;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f8fafc;
}

.bento-dither-reticle i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #00f172;
  box-shadow:
    0 0 0 1.5px #0b1120,
    0 0 12px rgba(0, 241, 114, 0.9);
}

.bento-dither-reticle b {
  position: absolute;
  left: -0.5px;
  bottom: 6px;
  width: 1px;
  height: 20px;
  background: rgba(248, 250, 252, 0.55);
}

.bento-dither-reticle span {
  position: absolute;
  left: 0;
  bottom: 28px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px 4px;
  border-radius: 9999px;
  background: rgba(11, 17, 32, 0.88);
  border: 1px solid rgba(0, 241, 114, 0.36);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Flip stem below cursor when pointer is near top edge of stage */
.bento-dither-reticle.is-flipped b {
  bottom: auto;
  top: 6px;
}

.bento-dither-reticle.is-flipped span {
  bottom: auto;
  top: 28px;
}

/* Subtle interactive cue on card hover for eyebrow color */
.bento-card .bento-eyebrow {
  transition: color 0.3s ease;
}

.bento-card:hover .bento-eyebrow {
  color: #00f172;
}

@media (prefers-reduced-motion: reduce) {
  .bento-dither-reticle {
    display: none;
  }

  .bento-dither-canvas,
  .bento-dither-aura::after {
    transition: none;
  }
}
