/* VitalBridge review site: gradient grounds (Christian, 2026-11-27: "create gradients in the eleven labs style to replace these
   solid color backgrounds we have been using in order to modernize the look of the site").

   Original gradients, made for VitalBridge from its own palette. ElevenLabs was studied for its approach only
   (site/gradients/reference-elevenlabs-2026-11-27/; nothing of theirs is copied): large, soft, blurred colour glows over a calm
   ground, a fine film grain, and the glow moving from band to band so no two bands in a row look the same.

   - Navy bands and the footer: navy-900 to navy-950, with a royal-blue glow, a dimmer electric-blue glow and a deep indigo pool.
     The brightest point any glow reaches is darker than royal-600 under white text (checked by pixel, tools/gradient_contrast).
   - Light-blue bands: sky-50 with a white bloom and a sky-200 pool.
   - White bands (white-bands.css) stay plain white: they are the 20% white Christian asked for.
   - Not touched: the heroes (the hero photograph and Harbour Horizon), the header, "the crossing" on home (it animates its own
     ground), the home close photograph band, and every card, form and table surface.
   - Calm background, Stronger contrast and forced colours turn every gradient off: plain navy or plain light blue.
   Loaded after white-bands.css on every page (src/partials/head.html).
   Undo: delete this file and its <link>, then run python3 tools/build.py. */

:root {
  /* Film grain: an inline SVG noise tile (img-src allows data:). About 3% visible; the eye reads texture, never dots. */
  --vb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navy grounds ---------- */
:is(.band-navy, .band-harbour,
    .band-2:not(:has(.table-scroll, .form, .form-panel)), .band-sage:not(:has(.table-scroll, .form, .form-panel)), .band-steel:not(:has(.table-scroll, .form, .form-panel)),
    .site-footer):not(.vb-cross, .cta-47, .home-hero, .page-hero) {
  --g1x: 8%;  --g1y: 0%;    /* royal glow */
  --g2x: 96%; --g2y: 100%;  /* electric glow */
  --g3x: 70%; --g3y: 30%;   /* indigo pool */
  background-color: var(--vb-navy-900);
  background-image:
    var(--vb-grain),
    radial-gradient(55% 75% at var(--g1x) var(--g1y), rgba(11, 79, 179, .50), rgba(11, 79, 179, 0) 72%),
    radial-gradient(42% 60% at var(--g2x) var(--g2y), rgba(54, 169, 245, .16), rgba(54, 169, 245, 0) 70%),
    radial-gradient(50% 70% at var(--g3x) var(--g3y), rgba(30, 26, 110, .45), rgba(30, 26, 110, 0) 70%),
    linear-gradient(180deg, var(--vb-navy-900), var(--vb-navy-950));
  background-size: 160px 160px, auto, auto, auto, auto;
}
/* every other band mirrors the glows, so neighbours never repeat */
main > :is(.band-navy, .band-harbour, .band-2, .band-sage, .band-steel):nth-of-type(even) {
  --g1x: 92%; --g1y: 0%; --g2x: 4%; --g2y: 100%; --g3x: 30%; --g3y: 40%;
}
.site-footer { --g1x: 50%; --g1y: 0%; --g2x: 100%; --g2y: 100%; --g3x: 0%; --g3y: 100%; }

/* ---------- Light-blue grounds (plain sections on the body's sky-50, and the sky-100 bands that hold a form or table) ---------- */
main > :is(.section, .section-tight):not(.band-navy, .band-harbour, .band-2, .band-sage, .band-steel, .band-white, .band-paper2, .page-hero, .home-hero, .vb-cross, .cta-47, .vb-strip),
main > .band-paper2:not(.cta-47),
main > :is(.band-2, .band-sage, .band-steel):has(.table-scroll, .form, .form-panel) {
  --l1x: 88%; --l1y: 0%;
  --l2x: 0%;  --l2y: 100%;
  background-color: var(--vb-sky-50);
  background-image:
    var(--vb-grain),
    radial-gradient(55% 70% at var(--l1x) var(--l1y), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 75% at var(--l2x) var(--l2y), rgba(181, 215, 244, .70), rgba(181, 215, 244, 0) 70%),
    linear-gradient(180deg, #E5F0FC, #DCEBFA);
  background-size: 160px 160px, auto, auto, auto;
}
main > :is(.section, .section-tight, .band-paper2, .band-2, .band-sage, .band-steel):nth-of-type(even):not(.band-navy, .band-harbour, .band-white) {
  --l1x: 10%; --l1y: 0%; --l2x: 100%; --l2y: 100%;
}

/* ---------- Off switches ---------- */
html:is([data-vb-calm], [data-vb-contrast]) :is(.band-navy, .band-harbour, .band-2, .band-sage, .band-steel, .band-paper2, .site-footer, main > .section, main > .section-tight):not(.home-hero, .page-hero, .band-white, .cta-47) {
  background-image: none !important;
}
@media (forced-colors: active) {
  :is(.band-navy, .band-harbour, .band-2, .band-sage, .band-steel, .band-paper2, .site-footer, main > .section, main > .section-tight) { background-image: none !important; }
}
@media print {
  :is(.band-navy, .band-harbour, .band-2, .band-sage, .band-steel, .band-paper2, .site-footer, main > .section, main > .section-tight) { background-image: none !important; }
}
