/* ==========================================================================
   Carrier Guardian · Round 7 imagery layer (preview only)
   Follows Muse "CG rebuild – art direction" DRAFT v1.0 (Dec 4 2026):
   navy photo overlays (overlay-hero-dark), dark photographic heroes in BOTH
   themes, framed mid-page images, calm motion (no Ken Burns; parallax none).
   Loads last. Adds no copy. Transform/opacity motion only.
   ========================================================================== */

/* ---- Photo hero: dark photographic band in both themes ---- */
.cg-hero{position:relative;isolation:isolate;overflow:hidden;background:#001020}
.cg-hero__media{position:absolute;inset:0;z-index:0;pointer-events:none;background:#001020}
.cg-hero__media picture,.cg-hero__media img{display:block;width:100%;height:100%}
.cg-hero__media img{object-fit:cover;object-position:var(--cg-pos-d,62% 50%)}
.cg-hero__media::before,.cg-hero__media::after{content:"";position:absolute;inset:0}
/* overlay-hero-dark: horizontal scrim + bottom join (Muse 3b) */
.cg-hero__media::before{background:linear-gradient(90deg,rgba(0,16,32,.92) 0%,rgba(0,16,32,.80) 40%,rgba(0,16,32,.40) 66%,rgba(0,16,32,.18) 100%)}
.cg-hero__media::after{background:linear-gradient(180deg,rgba(0,16,32,.42) 0%,rgba(0,16,32,0) 22%,rgba(0,16,32,0) 62%,rgba(0,16,32,.55) 86%,#001020 100%)}
/* subject on the left: type sits right (desktop) */
.cg-hero--flip .cg-hero__media::before{background:linear-gradient(270deg,rgba(0,16,32,.92) 0%,rgba(0,16,32,.80) 40%,rgba(0,16,32,.40) 66%,rgba(0,16,32,.18) 100%)}
/* darker all-over scrim for busy photos (ST-02 mist, ST-05 storm) */
.cg-hero--deep .cg-hero__media::before{background:linear-gradient(90deg,rgba(0,16,32,.94) 0%,rgba(0,16,32,.86) 45%,rgba(0,16,32,.62) 72%,rgba(0,16,32,.46) 100%)}
.cg-hero--deep.cg-hero--flip .cg-hero__media::before{background:linear-gradient(270deg,rgba(0,16,32,.94) 0%,rgba(0,16,32,.86) 45%,rgba(0,16,32,.62) 72%,rgba(0,16,32,.46) 100%)}

/* content above the photo */
.cg-hero > :not(.cg-hero__media){position:relative;z-index:1}
.cg-hero .hero__inner,.cg-hero .wrap{position:relative;z-index:1}
/* decorative radar art behind the home hero would fight the photo */
.cg-hero .pm-fx{display:none}

/* type on the photo: Muse dark text roles in BOTH themes */
.cg-hero,.cg-hero.hero,.cg-hero.section{
  color-scheme:dark;
  --bg:#001020; --bg-alt:#00142B; --bg-band:#00142B; --surface:#001D3B; --surface-2:#0F2B47; --surface-3:#0F2B47;
  --line:rgba(185,187,191,.22); --line-2:rgba(185,187,191,.34);
  --text:#F5F8FC; --muted:#C9D3E3; --faint:#B4C0D4; --accent:#7FB4FF; --accent-soft:rgba(0,108,254,.18);
  --focus:#7FB4FF;
  color:#F5F8FC;
}
.cg-hero h1,.cg-hero h2,.cg-hero .display,.cg-hero .display-2{color:#F5F8FC}
.cg-hero .lede,.cg-hero .sec-lede{color:#D6DEEB}
.cg-hero .kicker,.cg-hero .eyebrow{color:#9CC2FF}
.cg-hero .crumbs,.cg-hero .crumbs a,.cg-hero .fg-src,.cg-hero .fg-src a{color:#C9D3E3}
.cg-hero .hero__chips li{color:#C9D3E3}
.cg-hero a{color:#DCE8FF}
.cg-hero .btn--ghost{background:rgba(0,16,32,.42);color:#F5F8FC;border-color:rgba(214,222,235,.55)}
.cg-hero .btn--ghost:hover{background:rgba(15,43,71,.7);color:#FFFFFF;border-color:#D6DEEB}
/* accent word in headline: light blue, with a thin underline instead of a gradient */
.cg-hero .hl{color:#9CC2FF !important;-webkit-text-fill-color:#9CC2FF !important;background:none !important}

/* hero breathing room (Muse 6: generous whitespace) */
.cg-hero.hero--page .hero__inner{padding-bottom:clamp(88px,10vw,150px)}
.cg-hero.hero--page{padding-top:calc(var(--clear,72px) + clamp(48px,7vw,104px))}
.cg-hero.rb-page-hero{padding-top:calc(var(--clear,72px) + clamp(56px,8vw,120px));padding-bottom:clamp(72px,9vw,140px)}
.cg-hero .hero__copy{max-width:720px}
.cg-hero--flip .hero__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cg-hero--flip .hero__copy{grid-column:2}
.cg-hero--flip .wrap > .sec-head{margin-left:auto;max-width:640px}

@media (max-width:760px){
  .cg-hero__media img{object-position:var(--cg-pos-m,50% 30%)}
  /* phones: subject in the upper part, copy below on the darkened lower part */
  .cg-hero__media::before{background:linear-gradient(180deg,rgba(0,16,32,.30) 0%,rgba(0,16,32,.22) 28%,rgba(0,16,32,.70) 56%,rgba(0,16,32,.90) 100%)}
  .cg-hero--deep .cg-hero__media::before{background:linear-gradient(180deg,rgba(0,16,32,.40) 0%,rgba(0,16,32,.34) 26%,rgba(0,16,32,.80) 54%,rgba(0,16,32,.94) 100%)}
  .cg-hero--flip .cg-hero__media::before,.cg-hero--deep.cg-hero--flip .cg-hero__media::before{background:linear-gradient(180deg,rgba(0,16,32,.36) 0%,rgba(0,16,32,.30) 26%,rgba(0,16,32,.78) 54%,rgba(0,16,32,.93) 100%)}
  .cg-hero--flip .hero__inner{grid-template-columns:minmax(0,1fr)}
  .cg-hero--flip .hero__copy{grid-column:1}
  .cg-hero--flip .wrap > .sec-head{margin-left:0}
  .cg-hero.hero--page{padding-top:calc(var(--clear,64px) + 150px)}
  .cg-hero.hero--page .hero__inner{padding-bottom:64px}
  .cg-hero.rb-page-hero{padding-top:calc(var(--clear,64px) + 170px);padding-bottom:64px}
}

/* ---- Mid-page framed image band ---- */
.cg-band{padding:clamp(40px,6vw,96px) 0;background:var(--bg)}
.cg-band__frame{position:relative;margin:0;border-radius:24px;overflow:hidden;background:#001020;
  border:1px solid rgba(185,187,191,.16);box-shadow:0 24px 56px -24px rgba(0,0,0,.55)}
[data-theme=light] .cg-band__frame{border-color:rgba(0,20,43,.14);box-shadow:0 24px 56px -24px rgba(0,29,59,.30)}
.cg-band__frame picture,.cg-band__frame img{display:block;width:100%;height:auto}
.cg-band__frame::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  background:linear-gradient(90deg,rgba(0,16,32,.55) 0%,rgba(0,20,43,.40) 100%)}
[data-theme=light] .cg-band__frame::after{background:linear-gradient(90deg,rgba(0,20,43,.14) 0%,rgba(0,20,43,0) 60%)}
.cg-band__cap{margin:12px 2px 0;font:500 .75rem/1.4 'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}

/* split: framed image beside existing copy is not used; bands are full width of the grid */

/* ---- Illustration frame for Pixel UI renders ---- */
.cg-illus{margin:clamp(32px,4vw,64px) 0 0}
.cg-illus .cg-band__frame::after{background:none}

/* ---- Scroll reveal for mid-page images (opacity + 12px, once) ---- */
/* uses the existing site.js reveal observer (.reveal gets .is-in; reduced motion adds .is-in at once) */
.js .cg-band.reveal .cg-band__frame{opacity:0;transform:translateY(12px);transition:opacity 700ms cubic-bezier(.2,.7,.2,1),transform 700ms cubic-bezier(.2,.7,.2,1)}
.js .cg-band.reveal.is-in .cg-band__frame{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .cg-band.reveal .cg-band__frame{opacity:1!important;transform:none!important;transition:none!important}
}

/* ---- Round 7 mid-page illustrations (Pixel UI renders) and thin thank-you band ---- */
.cg-band--tight{padding-top:clamp(24px,3vw,48px)}
/* UI illustrations: no scrim, show the render as drawn */
.cg-illus .cg-band__frame::after{background:none;box-shadow:none}
.cg-illus--portrait .cg-band__frame{max-width:560px;margin-inline:auto}
/* Lex: planned-tool caption, verbatim, sentence case, directly under the frame */
.cg-planned-cap{margin:14px 2px 0;font:500 .875rem/1.5 var(--f-body,system-ui,sans-serif);letter-spacing:0;text-transform:none;color:var(--muted)}
.cg-illus--portrait .cg-planned-cap{max-width:560px;margin-inline:auto}
/* thin atmospheric band (thank-you), decorative, no text on the photo */
.cg-thin{position:relative;height:clamp(150px,20vw,280px);overflow:hidden;background:#001020}
.cg-thin picture,.cg-thin img{display:block;width:100%;height:100%}
.cg-thin img{object-fit:cover;object-position:70% 58%}
.cg-thin::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,var(--bg) 0%,rgba(0,16,32,0) 30%,rgba(0,16,32,0) 70%,var(--bg) 100%)}

/* ---- Round 7.3b: breadcrumb contrast on photo heroes (scrim behind the breadcrumb) ---- */
.cg-hero .crumbs{position:relative;isolation:isolate;width:fit-content;max-width:100%}
.cg-hero .crumbs::before{content:"";position:absolute;inset:-8px -12px;z-index:-1;border-radius:10px;background:rgba(0,16,32,.88)}
