/* ============================================
   HEADER BACKGROUND: "Dawn" (23 Nov 2026)
   ============================================
   One shared header background, two layouts:
   - Banner: Team (.team-banner), Companies (.companies-banner) and Knowledge
     (.kn-hero). Midnight navy at the top, light blue rising from the bottom.
   - Shoreline: every blog post header (.kn-post-hero, templates/post.html).
     The same light pressed into a band along the bottom of the header.
   Soft layers of blue that components/banner.js moves along smooth random paths.

   Linked after each page's own stylesheet, so these rules win over the old
   flat-navy banner rules in team.css / portfolio.css / knowledge.css.

   Parked alternates (the original CSS-animated Dawn, Aurora Lively, Aurora
   Bold) live on the local git tag parked/banner-options. */

.team-banner,
.companies-banner,
.kn-hero {
    background: linear-gradient(to bottom, var(--navy-deep) 0%, #031330 38%, #0a2550 72%, #16427e 100%);
}

/* The old dot texture and corner glow are replaced by the layers below */
.team-banner::before, .team-banner::after,
.companies-banner::before, .companies-banner::after,
.kn-hero::before, .kn-hero::after { display: none; }

/* Layer host, injected by banner.js as the banner's first child. It sits
   above the background and below the banner text (z-index 2). */
.gf-dawn {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    animation: gf-dawn-in 1.2s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes gf-dawn-in { to { opacity: 1; } }

.gf-dawn i {
    position: absolute;
    display: block;
    border-radius: 50%;
    will-change: transform, opacity;
}
/* The main glow along the bottom edge */
.gf-dawn .w1 { width: 150%; height: 130%; left: -18%; top: 50%;
    background: radial-gradient(closest-side, rgba(156, 200, 255, 0.70), rgba(74, 144, 217, 0.38) 45%, rgba(44, 92, 222, 0)); }
/* Ice blue */
.gf-dawn .w2 { width: 70%; height: 90%; left: 50%; top: 58%;
    background: radial-gradient(closest-side, rgba(205, 230, 255, 0.55), rgba(156, 200, 255, 0.15) 55%, rgba(156, 200, 255, 0)); }
/* Cobalt */
.gf-dawn .w3 { width: 70%; height: 90%; left: -5%; top: 66%;
    background: radial-gradient(closest-side, rgba(44, 92, 222, 0.65), rgba(44, 92, 222, 0)); }
/* Royal blue, high on the right */
.gf-dawn .w4 { width: 60%; height: 110%; left: 48%; top: -55%;
    background: radial-gradient(closest-side, rgba(29, 63, 168, 0.45), rgba(29, 63, 168, 0)); }
/* Mid blue */
.gf-dawn .w5 { width: 55%; height: 80%; left: 20%; top: 70%;
    background: radial-gradient(closest-side, rgba(120, 178, 245, 0.50), rgba(120, 178, 245, 0)); }
/* Greenfield blue */
.gf-dawn .w6 { width: 50%; height: 85%; left: 70%; top: 64%;
    background: radial-gradient(closest-side, rgba(84, 156, 232, 0.55), rgba(84, 156, 232, 0)); }

/* Finish: fine film grain (a 128px tile) plus a shade on the title side so
   the text always reads cleanly over the moving light */
.gf-dawn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("/assets/images/banner-grain.webp") repeat 0 0 / 128px 128px,
                linear-gradient(90deg, rgba(0, 10, 31, 0.72) 0%, rgba(0, 10, 31, 0.42) 32%, rgba(0, 10, 31, 0) 58%);
}

@media (max-width: 768px) {
    .gf-dawn:not(.gf-dawn--post) .w2 { width: 60%; }
    .gf-dawn:not(.gf-dawn--post) .w5, .gf-dawn:not(.gf-dawn--post) .w6 { width: 90%; }
    .gf-dawn:not(.gf-dawn--post)::after {
        background: url("/assets/images/banner-grain.webp") repeat 0 0 / 128px 128px,
                    linear-gradient(90deg, rgba(0, 10, 31, 0.55) 0%, rgba(0, 10, 31, 0.2) 70%, rgba(0, 10, 31, 0) 100%);
    }
}

/* ---------- Shoreline: blog post headers ----------
   Top stays midnight navy; the light lives in a band along the bottom edge,
   under the title, authors and cover. The header text sits above it. */
.kn-post-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(to bottom, var(--navy-deep) 0%, var(--navy-deep) 45%, #061a3e 78%, #0f3468 100%);
}
.kn-post-hero-inner { position: relative; z-index: 2; }
.gf-dawn--post .w1 { width: 140%; height: 80%; left: -20%; top: 74%; }
.gf-dawn--post .w2 { width: 50%;  height: 55%; left: 55%;  top: 80%; }
.gf-dawn--post .w3 { width: 55%;  height: 55%; left: -6%;  top: 78%; }
.gf-dawn--post .w5 { width: 45%;  height: 50%; left: 26%;  top: 84%; }
.gf-dawn--post .w6 { width: 40%;  height: 50%; left: 74%;  top: 78%; }
/* grain only: the text sits on navy, so no shade is needed */
.gf-dawn--post::after { background: url("/assets/images/banner-grain.webp") repeat 0 0 / 128px 128px; }
@media (max-width: 900px) {
    .gf-dawn--post .w1 { top: 80%; }
}

@media (prefers-reduced-motion: reduce) {
    .gf-dawn { animation: none; opacity: 1; }
}
