/* ==========================================================================
   EXPERIMENTAL LAYER: Architectural Botanical Tree Shadows & Foliage
   100% Isolated — Remove <link> & <script> from index.html to revert cleanly
   ========================================================================== */

html.botanical-exp main > section,
html.botanical-exp .site-footer {
  position: relative;
  overflow-x: clip;
}

html.botanical-exp main > section > .wrap,
html.botanical-exp .site-footer > .wrap {
  position: relative;
  z-index: 2;
}

/* Soft limestone dappled-sunlight texture glaze on light sections */
html.botanical-exp #services,
html.botanical-exp #materials,
html.botanical-exp #process {
  background-image:
    radial-gradient(ellipse 68% 48% at 8% 18%, rgba(30, 59, 16, 0.045) 0%, transparent 70%),
    radial-gradient(ellipse 58% 44% at 92% 76%, rgba(176, 141, 87, 0.065) 0%, transparent 72%);
}

html.botanical-exp #transformation,
html.botanical-exp #projects,
html.botanical-exp #faq {
  background-image:
    radial-gradient(ellipse 64% 46% at 92% 20%, rgba(30, 59, 16, 0.05) 0%, transparent 72%),
    radial-gradient(ellipse 54% 42% at 10% 82%, rgba(109, 19, 26, 0.03) 0%, transparent 70%);
}

/* Botanical SVG Silhouette Backdrop Container */
.botanical-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.botanical-motif {
  position: absolute;
  width: var(--b-w, clamp(320px, 38vw, 620px));
  height: auto;
  opacity: var(--b-op, 0.075);
  color: var(--olive);
  filter: blur(var(--b-blur, 1.2px));
  transform-origin: var(--b-origin, top left);
  will-change: transform;
  transform: translate3d(0, var(--b-drift, 0px), 0);
}

.botanical-motif svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: botanicalWindSway var(--b-dur, 16s) ease-in-out infinite alternate;
  transform-origin: var(--b-origin, top left);
}

/* Placement Presets */
.botanical-motif--tr {
  top: -36px;
  right: -64px;
  --b-origin: top right;
}

.botanical-motif--tl {
  top: -36px;
  left: -64px;
  --b-origin: top left;
}

.botanical-motif--br {
  bottom: -48px;
  right: -54px;
  --b-origin: bottom right;
}

.botanical-motif--bl {
  bottom: -48px;
  left: -54px;
  --b-origin: bottom left;
}

/* Soft sun-cast dappled shadow look on light sections */
.botanical-motif--shadow {
  --b-op: 0.072;
  --b-blur: 2.2px;
  color: #182b0d;
  mix-blend-mode: multiply;
}

/* Crisp architectural botanical engraving look (secondary layer) */
.botanical-motif--etch {
  --b-op: 0.085;
  --b-blur: 0px;
  color: var(--bronze);
}

/* Deep Royal Forest & Burgundy bands: subtle Champagne Gold botanical filigree */
.section--deep .botanical-motif,
#contact .botanical-motif,
.site-footer .botanical-motif {
  color: var(--gold-light);
  --b-op: 0.09;
  --b-blur: 0.4px;
  mix-blend-mode: screen;
}

/* Hero Foreground Canopy Shadow Framing */
.hero-canopy-shadow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-canopy-branch {
  position: absolute;
  top: -24px;
  width: clamp(240px, 28vw, 460px);
  color: #081205;
  opacity: 0.34;
  filter: blur(2.6px);
  transform-origin: top left;
}

.hero-canopy-branch--left {
  left: -48px;
  transform-origin: top left;
}

.hero-canopy-branch--right {
  right: -48px;
  transform-origin: top right;
}

.hero-canopy-branch svg {
  display: block;
  width: 100%;
  height: auto;
  animation: botanicalWindSway 13s ease-in-out infinite alternate;
  transform-origin: inherit;
}

.hero-canopy-branch--right svg {
  animation-duration: 15.5s;
  animation-delay: -4s;
}

@keyframes botanicalWindSway {
  0% {
    transform: rotate(-1.4deg) translate3d(0px, 0px, 0);
  }
  50% {
    transform: rotate(1.1deg) translate3d(5px, 4px, 0);
  }
  100% {
    transform: rotate(-0.6deg) translate3d(-3px, 2px, 0);
  }
}

/* Keep mobile uncluttered & fast */
@media (max-width: 760px) {
  .botanical-motif {
    width: clamp(220px, 64vw, 340px);
    --b-op: 0.055;
  }

  .hero-canopy-branch {
    width: 190px;
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .botanical-motif svg,
  .hero-canopy-branch svg {
    animation: none !important;
  }

  .botanical-motif {
    transform: none !important;
  }
}
