/* Mycelium Capital — living-layer enhancements (visual only, no copy changes) */

/* retire the static decorative curves */
section [class*="opacity-[0.07]"] svg[viewBox="0 0 1000 1000"] {
  display: none;
}

/* injected living-network canvas */
.myc-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
}

/* scroll-bound growth rail down the right margin */
.myc-rail {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  pointer-events: none;
  z-index: 30;
}

/* whisper-faint fruiting bodies: witch's breath */
@keyframes myc-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.015); }
}
.myc-fruit {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  filter: saturate(0.8);
  clip-path: inset(100% 0 0 0);
  transition: opacity 4s ease, clip-path 4.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom center;
  animation: myc-breathe 26s ease-in-out infinite alternate;
}
.myc-fruit-on {
  opacity: 0.075;
  clip-path: inset(0 0 0 0);
}
@media (max-width: 767px) {
  .myc-rail, .myc-fruit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .myc-fruit { transition: none; animation: none; clip-path: none; }
}

/* slow drift on the hero forest */
@keyframes myc-hero-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.06) translateY(-1.5%); }
}
#home div[class*="bg-cover"] {
  animation: myc-hero-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

html { scroll-behavior: smooth; }

::selection {
  background: rgba(201, 184, 168, 0.45);
  color: #1e1d1b;
}

/* gentle lift on white cards */
section div[class*="bg-white"][class*="shadow"] {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
section div[class*="bg-white"][class*="shadow"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(43, 42, 40, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  #home div[class*="bg-cover"] { animation: none; }
  html { scroll-behavior: auto; }
  section div[class*="bg-white"][class*="shadow"],
  section div[class*="bg-white"][class*="shadow"]:hover {
    transition: none;
    transform: none;
  }
}
