/* M&M "Patriot Honeycomb" - SITE-WIDE (owner approved 16 Nov 2026). Loads after mm.css + pages.css on every page.
   Metallic navy honeycomb + travelling red / white / blue cell light (honeycomb.js), hex accents on cards, buttons,
   dividers and footer. Logo, flag and hero lettering are never covered. Reduced motion: everything static.
   OWNER RULE: NO honeycomb pattern in any hero (homepage cinematic hero or inner page heroes). */
:root {
  --hx-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45' viewBox='0 0 25.98 45'%3E%3Cpath d='M12.99 0L25.98 7.5V22.5L12.99 30L0 22.5V7.5Z M12.99 30V45' fill='none' stroke='%23ffffff' stroke-width='1.1'/%3E%3C/svg%3E");
  --hx-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45' viewBox='0 0 25.98 45'%3E%3Cpath d='M12.99 0L25.98 7.5V22.5L12.99 30L0 22.5V7.5Z M12.99 30V45' fill='none' stroke='%2313295c' stroke-width='1.1'/%3E%3C/svg%3E");
  --hx-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45' viewBox='0 0 25.98 45'%3E%3Cpath d='M12.99 0L25.98 7.5V22.5L12.99 30L0 22.5V7.5Z M12.99 30V45' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E");
  --hx-trio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='22' viewBox='0 0 46 22'%3E%3Cpath d='M7.8 1.5l6.3 3.6v7.3l-6.3 3.6-6.3-3.6V5.1z' fill='%23d2213a'/%3E%3Cpath d='M23 5.9l6.3 3.6v7.3L23 20.4l-6.3-3.6V9.5z' fill='%23f2f5fa'/%3E%3Cpath d='M38.2 1.5l6.3 3.6v7.3l-6.3 3.6-6.3-3.6V5.1z' fill='%233a6fe0'/%3E%3C/svg%3E");
}

/* canvas layer behind section content */
.hx-host { position: relative; isolation: isolate; }
.hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hx-host > :not(.hx-canvas):not(.cta-flag):not(.beacon):not(#smoke):not(.hero-fade):not(.hero-shine):not(picture):not(.f-flag) { position: relative; z-index: 1; }
/* old homepage hero panel (kept for the archived layout): plain gradient, no honeycomb */
.home .hero-panel { background: linear-gradient(180deg, rgba(5,11,24,0) 0%, rgba(5,11,24,.45) 38%, rgba(5,11,24,.82) 100%); }

/* signature: red / white / blue hex trio replaces the eyebrow line */
.eyebrow::before { width: 46px; height: 22px; background: var(--hx-trio) center / contain no-repeat; }

/* cards: metallic hex skin, lit around the pointer on hover */
.hx-skin { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: .09;
  background: var(--hx-line) 0 0 / 22px 38px; transition: opacity .35s ease;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%); }
.svc-card:hover .hx-skin, .svc-card[aria-expanded="true"] .hx-skin, .s9:hover .hx-skin, .ind:hover .hx-skin,
.job-pick:hover .hx-skin, .job-pick[aria-pressed="true"] .hx-skin, .s-card:hover .hx-skin,
.feature:hover .hx-skin, .rel-card:hover .hx-skin, .hub-card:hover .hx-skin, .c-card:hover .hx-skin {
  opacity: .5; background-image: var(--hx-line), radial-gradient(circle at var(--hx, 50%) var(--hy, 30%), rgba(64,118,236,.55), rgba(226,40,63,.25) 40%, transparent 65%);
  background-size: 22px 38px, 100% 100%;
  -webkit-mask-image: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 30%), #000, transparent 75%); mask-image: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 30%), #000, transparent 75%); }
.svc-card > :not(.hx-skin), .job-pick > :not(.hx-skin), .s-card > :not(.hx-skin), .feature > :not(.hx-skin), .c-card > :not(.hx-skin),
.hub-card > :not(.hx-skin), .ind > div { position: relative; z-index: 1; }
.rel-card > :not(.hx-skin):not(i) { position: relative; z-index: 1; }
.rel-card > i { z-index: 1; }
.ind .hx-skin, .s9 .hx-skin { z-index: 0; }
.s9 .hx-skin { border-radius: 10px; }
.job-pick, .c-card, .rel-card { position: relative; overflow: hidden; }
.s-card .hx-skin { background-image: var(--hx-navy); opacity: .12; }
.s-card:hover .hx-skin { background-image: var(--hx-navy), radial-gradient(circle at var(--hx, 50%) var(--hy, 30%), rgba(64,118,236,.35), rgba(226,40,63,.18) 40%, transparent 65%); }
.hub-card .hx-skin { opacity: .06; }

/* buttons: brushed metal with a faint honeycomb weave */
.btn { background-image: var(--hx-line), var(--b); background-size: 15px 26px, 100% 100%; background-blend-mode: soft-light, normal; }
.btn.ghost { background-image: none; }
.btn.steel { background-blend-mode: multiply, normal; }
.call-bar a, .call-pill { background-image: var(--hx-line), var(--red-metal); background-size: 15px 26px, 100% 100%; background-blend-mode: soft-light, normal; }
.call-bar a:last-child { background-image: var(--hx-line), var(--navy-metal); }

/* section divider: a strip of steel cells with red-white-blue light travelling along the cell walls */
.hx-divider { position: relative; height: 46px; margin: 0; overflow: hidden; background: #05091a; border-block: 1px solid rgba(255,255,255,.06); }
.hx-divider::before { content: ""; position: absolute; inset: 0; background: var(--hx-line) center / 26px 45px; opacity: .14; }
.hx-divider i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 20%, rgba(226,40,63,.95) 32%, rgba(255,255,255,.95) 40%, rgba(64,118,236,.95) 48%, transparent 60% 100%) 0 0 / 200% 100%;
  -webkit-mask: var(--hx-solid) center / 26px 45px; mask: var(--hx-solid) center / 26px 45px; animation: hxTravel 9s linear infinite; opacity: .75; }
.hx-divider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #05091a, transparent 18%, transparent 82%, #05091a); }
@keyframes hxTravel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* footer: honeycomb canvas + hex trio by the logo */
.site-footer { overflow: hidden; }
.f-tag::before { content: ""; display: inline-block; width: 38px; height: 18px; margin-right: 8px; vertical-align: middle; background: var(--hx-trio) center / contain no-repeat; }

/* readability: keep text panels solid above the cells */
.job-out, .about-card, .quote-shell, .q-side, .portal, .em-card, .contact-extra { position: relative; z-index: 1; }

/* inner page heroes: never a honeycomb (owner rule) - make sure no canvas can attach there */
.page-hero .hx-canvas, .cine .hx-canvas { display: none; }

@media (max-width: 720px) {
  .hx-divider { height: 30px; }
  .btn, .call-bar a, .call-pill { background-size: 12px 21px, 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-divider i { animation: none; background-position: 50% 0; opacity: .45; }
  .hx-skin { transition: none; }
}
