/*
 VB PROFESSIONAL — BACKGROUND CONTINUUM / MASTER 1.0
 Applies to all six pages and HU / EN / DE / SK.
 Single design invariant: every section begins and ends at --vb-flow-base,
 so no rectangular background edge is visible during scrolling.
 Only one static artwork is painted through HERO + its first editorial block.
*/
:root {
  --vb-flow-base: #03100b;
  --vb-flow-mid: #061b13;
  --vb-flow-subtle: #04160f;
}

/* A common dark canvas behind the complete page. */
body {
  background: var(--vb-flow-base);
}

/* HERO and first editorial section share the same physical image plane. */
.hero-continuum {
  background: var(--vb-flow-base);
}
.hero-continuum::before {
  background-image: url("emerald-waves.webp");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 106%;
  opacity: .92;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 31%,
    rgba(0,0,0,.96) 42%,
    rgba(0,0,0,.82) 55%,
    rgba(0,0,0,.53) 72%,
    rgba(0,0,0,.22) 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 31%,
    rgba(0,0,0,.96) 42%,
    rgba(0,0,0,.82) 55%,
    rgba(0,0,0,.53) 72%,
    rgba(0,0,0,.22) 86%,
    transparent 100%
  );
}
.hero-continuum::after {
  background:
    linear-gradient(
      to right,
      rgba(3,16,11,.99) 0%,
      rgba(3,16,11,.93) 18%,
      rgba(3,16,11,.76) 38%,
      rgba(3,16,11,.27) 67%,
      rgba(3,16,11,.08) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(3,16,11,.08) 0%,
      rgba(3,16,11,.09) 30%,
      rgba(3,16,11,.19) 52%,
      rgba(3,16,11,.46) 75%,
      rgba(3,16,11,.83) 91%,
      var(--vb-flow-base) 100%
    );
}

/* New surfaces can be emerald in their middle, but must resolve back to
   exactly the base colour at both section boundaries. */
body > section.section-surface {
  background:
    radial-gradient(
      ellipse 47% 54% at 90% 51%,
      rgba(29,78,54,.22) 0%,
      rgba(15,48,34,.07) 52%,
      transparent 78%
    ),
    linear-gradient(
      to bottom,
      var(--vb-flow-base) 0%,
      var(--vb-flow-subtle) 17%,
      var(--vb-flow-mid) 44%,
      var(--vb-flow-mid) 56%,
      var(--vb-flow-subtle) 82%,
      var(--vb-flow-base) 100%
    ) !important;
}

/* Existing decorative glow must fade out before each section boundary. */
body > section.section-surface::before {
  -webkit-mask-image: linear-gradient(
    to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%
  );
  mask-image: linear-gradient(
    to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%
  );
}

/* Plain sections still receive a faint central ambience — no new images,
   no horizontal hard boundary, no foreground effects. */
body > section.section:not(.section-surface) {
  background:
    linear-gradient(
      to bottom,
      var(--vb-flow-base) 0%,
      transparent 22%,
      transparent 76%,
      var(--vb-flow-base) 100%
    ),
    radial-gradient(
      ellipse 45% 58% at 86% 50%,
      rgba(19,58,41,.14),
      transparent 81%
    ),
    var(--vb-flow-base);
}

/* Fade naturally from the last editorial area into the footer.
   Keep the existing gold hairline as a deliberate structural separator. */
.site-footer {
  background: linear-gradient(
    to bottom, var(--vb-flow-base), #030e09 42%, #030e09 100%
  );
}

/* Artwork position is tuned, not replaced, at responsive breakpoints. */
@media (max-width:930px) {
  .hero-continuum::before {
    background-position: 64% top;
    background-size: auto 100%;
    opacity: .79;
  }
  .hero-continuum::after {
    background:
      linear-gradient(
        to right,
        rgba(3,16,11,.95) 0%,
        rgba(3,16,11,.80) 40%,
        rgba(3,16,11,.31) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(3,16,11,.04) 0%,
        rgba(3,16,11,.14) 45%,
        rgba(3,16,11,.62) 82%,
        var(--vb-flow-base) 100%
      );
  }
}
@media (max-width:620px) {
  .hero-continuum::before {
    background-size: auto max(1200px, 88%);
    background-position: 63% top;
    opacity: .60;
  }
  .hero-continuum::after {
    background:
      linear-gradient(
        to right,
        rgba(3,16,11,.94) 0%,
        rgba(3,16,11,.79) 57%,
        rgba(3,16,11,.46) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(3,16,11,.03) 0%,
        rgba(3,16,11,.19) 47%,
        rgba(3,16,11,.68) 83%,
        var(--vb-flow-base) 100%
      );
  }
  body > section.section-surface {
    background:
      radial-gradient(
        ellipse 78% 40% at 85% 52%,
        rgba(28,72,49,.13),
        transparent 78%
      ),
      linear-gradient(
        to bottom,
        var(--vb-flow-base) 0%,
        var(--vb-flow-subtle) 23%,
        #061911 50%,
        var(--vb-flow-subtle) 77%,
        var(--vb-flow-base) 100%
      ) !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .hero-continuum::before {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
