/* Darkness to light, with no people after the first screen. Each section uses a man-free piece of the film (plates).
   --dark = shadow over the plate (lower is lighter). --glow = golden light from the top right. --tint = warmth.
   --shield = extra shadow behind the text side. --boost = extra shadow on phones. --mkl = optional faint StormShift mark. */
body #training, body #services, body #audit, body #serve, body #about, body #certifications, body #gap-finder, body #faq, body #contact {
  position: relative; isolation: isolate; background: var(--ink, #030810);
}
body #training       { --img: url('/assets/film/plates/p1-lightning.webp'); --pos: 55% 50%; --dark: 0.66; --glow: 0; --tint: 0; --shield: 0; --fade: 150px; --mkl: url('/assets/film/plates/mark-faint.webp') right 5% center / auto 70% no-repeat; }
body #services       { --img: url('/assets/film/plates/p2-clouds.webp'); --pos: 70% 50%; --dark: 0.78; --glow: 0; --tint: 0.01; --shield: 0; --fade: 150px; --mkl: linear-gradient(transparent, transparent); }
body #audit          { --img: url('/assets/film/plates/p3-dock.webp'); --pos: 70% 40%; --dark: 0.74; --glow: 0.06; --tint: 0.03; --shield: 0.06; --fade: 130px; --mkl: url('/assets/film/plates/mark-faint.webp') left 4% center / auto 70% no-repeat; }
body #serve          { --img: url('/assets/film/plates/p2-clouds.webp'); --pos: 15% 50%; --dark: 0.7; --glow: 0.14; --tint: 0.05; --shield: 0.32; --fade: 120px; --mkl: linear-gradient(transparent, transparent); }
body #about          { --img: url('/assets/film/plates/p3-dock.webp'); --pos: 15% 40%; --dark: 0.66; --glow: 0.19; --tint: 0.065; --shield: 0.42; --fade: 110px; --mkl: linear-gradient(transparent, transparent); }
body #certifications { --img: url('/assets/film/plates/p4-rays.webp'); --pos: 30% 28%; --dark: 0.62; --glow: 0.24; --tint: 0.08; --shield: 0.45; --fade: 100px; --mkl: linear-gradient(transparent, transparent); }
body #gap-finder     { --img: url('/assets/film/plates/p4-rays.webp'); --pos: 55% 80%; --dark: 0.52; --glow: 0.38; --tint: 0.12; --shield: 0.42; --fade: 90px; --mkl: linear-gradient(transparent, transparent); }
body #faq            { --img: url('/assets/film/plates/p5-golden.webp'); --pos: 30% 25%; --dark: 0.48; --glow: 0.44; --tint: 0.14; --shield: 0.62; --fade: 75px; --mkl: linear-gradient(transparent, transparent); }
body #contact        { --img: url('/assets/film/plates/p5-golden.webp'); --pos: 45% 85%; --dark: 0.42; --glow: 0.5; --tint: 0.16; --shield: 0.82; --fade: 60px; --mkl: url('/assets/film/plates/mark-faint.webp') left 3% bottom 4% / auto 56% no-repeat; }

body #training::before, body #services::before, body #audit::before, body #serve::before, body #about::before, body #certifications::before, body #gap-finder::before, body #faq::before, body #contact::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--mkl), var(--img) var(--pos) / cover no-repeat;
  opacity: 1; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
body #training::after, body #services::after, body #audit::after, body #serve::after, body #about::after, body #certifications::after, body #gap-finder::after, body #faq::after, body #contact::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,8,16,var(--shield)) 0%, rgba(3,8,16,calc(var(--shield) * .55)) 48%, transparent 82%),
    linear-gradient(180deg, rgba(3,8,16,calc(var(--shield) * .75)) 0%, transparent 42%),
    radial-gradient(ellipse 60% 55% at 88% 14%, rgba(255,176,64,var(--glow)), transparent 72%),
    rgba(255,150,40,var(--tint)),
    linear-gradient(90deg, rgba(3,8,16,calc(var(--dark) + var(--boost, 0) + .07)) 0%, rgba(3,8,16,calc(var(--dark) + var(--boost, 0))) 42%, rgba(3,8,16,calc(var(--dark) + var(--boost, 0) - .2)) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}

/* With JavaScript, plates load only when you get close, so the top of the page stays fast. */
html.jn-lazy body #training:not(.seen)::before, html.jn-lazy body #services:not(.seen)::before, html.jn-lazy body #audit:not(.seen)::before, html.jn-lazy body #serve:not(.seen)::before, html.jn-lazy body #about:not(.seen)::before, html.jn-lazy body #certifications:not(.seen)::before, html.jn-lazy body #gap-finder:not(.seen)::before, html.jn-lazy body #faq:not(.seen)::before, html.jn-lazy body #contact:not(.seen)::before { background: none; opacity: 0; }

/* Phones: a bit more shadow so words stay easy to read, and the mark stays small */
@media (max-width: 700px) {
  body #training, body #services, body #audit, body #serve, body #about, body #certifications, body #gap-finder, body #faq, body #contact { --boost: .12; --mkl: linear-gradient(transparent, transparent); }
  body #training::before, body #services::before, body #audit::before, body #serve::before, body #about::before, body #certifications::before, body #gap-finder::before, body #faq::before, body #contact::before { background-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body #training::before, body #services::before, body #audit::before, body #serve::before, body #about::before, body #certifications::before, body #gap-finder::before, body #faq::before, body #contact::before { transition: none; }
}

/* Soft dark halo behind words that sit on bright sky, so the light can stay bright and the text stays readable */
body #gap-finder .sec-title, body #contact .sec-title, body #certifications .sec-title, body #serve .sec-title, body #about .sec-title, body #faq .sec-title {
  filter: drop-shadow(0 0 14px rgba(75,168,255,.5)) drop-shadow(0 2px 10px rgba(3,8,16,.85));
}
body #gap-finder .sec-lead, body #contact .sec-lead, body #certifications .sec-lead, body #serve .sec-lead, body #faq .sec-lead,
body #gap-finder .eyebrow, body #contact .eyebrow, body #contact .crow, body #serve .eyebrow, body #about .eyebrow, body #certifications .eyebrow, body #faq .eyebrow {
  text-shadow: 0 1px 10px rgba(3,8,16,.9), 0 0 3px rgba(3,8,16,.6);
}

/* Lightning line between sections: one repeating signature */
.bolt-rule { position: relative; z-index: 3; height: 22px; background: var(--ink, #030810); filter: drop-shadow(0 0 8px rgba(75,168,255,.85)); pointer-events: none; }
.bolt-rule svg { display: block; width: 100%; height: 22px; }
