/* ============================================================
   TechMEPi — Futuristic 2026 layer
   Loaded AFTER main.css + components.css. Purely additive.
   Brand tokens (navy/gold, Sora/Inter) inherited from main.css.
   Goal: crisp photography + glass, aurora, blueprint-grid, gold
   glow and HUD detailing — a 2026 "engineering command" aesthetic.
   ============================================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bd: 1px solid rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
  --grid-line: rgba(255, 255, 255, 0.055);
  --grid-line-dk: rgba(11, 24, 57, 0.06);
  --glow-gold: 0 10px 40px rgba(199, 154, 46, 0.30);
  --glow-gold-sm: 0 0 22px rgba(199, 154, 46, 0.35);
  --ink-grad: linear-gradient(104deg, #ffffff 0%, #e7ecf8 48%, var(--gold-light) 118%);
  --navy-glass: rgba(9, 20, 52, 0.55);

  /* --- Unified card system (additive; composes navy #13265c / navy-deep #0b1839 / gold) --- */
  --card-bd: 1px solid rgba(19, 38, 92, 0.14);        /* navy-tinted hairline, reads intentional on white AND off-white */
  --card-shadow: 0 1px 2px rgba(11, 24, 57, 0.06), 0 8px 24px rgba(11, 24, 57, 0.10);  /* contact + ambient = grounded */
  --card-shadow-hv: 0 2px 6px rgba(11, 24, 57, 0.10), 0 20px 46px rgba(11, 24, 57, 0.16);
  --card-ring-gold: 0 0 0 1px rgba(199, 154, 46, 0.30);
  --card-hi: inset 0 1px 0 rgba(255, 255, 255, 0.65);  /* top glass highlight on light cards */
  --card-bd-dk: 1px solid rgba(255, 255, 255, 0.14);
  --card-shadow-dk: 0 10px 30px rgba(0, 0, 0, 0.28);
  --card-shadow-dk-hv: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(199, 154, 46, 0.12);
  --arc: 30px;                                          /* signature top-right "arc-bite" radius */
}

/* screen-reader-only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Global photo clarity (crisp, bright, high-end) ---------- */
.hero-slide .bg,
.checker-cell--img img,
.hotspot-map > img,
.parallax-band,
.about-collage .media img,
.ba img,
.page-hero--img,
.mega-feature img,
.post-card .thumb img {
  filter: saturate(1.1) contrast(1.05) brightness(1.03);
}
.sector-mini .thumb { filter: saturate(1.12) contrast(1.06) brightness(1.05); }
.post-card .thumb img { filter: saturate(1.12) contrast(1.1) brightness(1.06); }

/* ---------- Scroll progress bar (top of viewport) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 3000; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, #fff);
  box-shadow: 0 0 12px rgba(199, 154, 46, 0.6);
  transition: width 0.1s linear;
}

/* ---------- FX helpers: aurora glow + blueprint grid ---------- */
.fx-aurora { position: relative; isolation: isolate; overflow: hidden; }
.fx-aurora::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 12% 8%, rgba(199, 154, 46, 0.16), transparent 62%),
    radial-gradient(48% 66% at 92% 16%, rgba(60, 96, 208, 0.34), transparent 60%),
    radial-gradient(50% 60% at 78% 108%, rgba(199, 154, 46, 0.10), transparent 60%);
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}
.fx-aurora > .container { position: relative; z-index: 2; }

.fx-grid { position: relative; }
.fx-grid::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
}
@media (prefers-reduced-motion: reduce) { .fx-aurora::before { animation: none; } }

/* Dark sections become depth surfaces */
.section--dark {
  background:
    radial-gradient(60% 90% at 85% -20%, rgba(60, 96, 208, 0.20), transparent 55%),
    radial-gradient(50% 80% at 8% 120%, rgba(199, 154, 46, 0.10), transparent 55%),
    var(--navy-deep);
  position: relative;
}
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(140% 90% at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(140% 90% at 50% 0%, #000, transparent 72%);
  opacity: 0.7;
}
.section--dark > .container { position: relative; z-index: 2; }
/* gold hairline crowning each dark band */
.section--dark { border-top: 1px solid rgba(199, 154, 46, 0.22); }

/* ---------- Kicker: pulse dot + gradient ---------- */
.kicker { position: relative; }
.kicker::before { box-shadow: 0 0 10px rgba(199, 154, 46, 0.7); }
.kicker::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light); margin-left: 2px; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(199, 154, 46, 0.55);
  animation: kicker-pulse 2.4s ease-out infinite;
}
@keyframes kicker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199, 154, 46, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(199, 154, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 154, 46, 0); }
}
@media (prefers-reduced-motion: reduce) { .kicker::after { animation: none; } }

/* Big section headings get a subtle luminous ink on dark */
.section--dark .section-head h2 {
  background: var(--ink-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons: glow + shine sweep ---------- */
.btn { position: relative; overflow: hidden; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--gold:hover { box-shadow: 0 14px 46px rgba(199, 154, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn--outline-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   HERO — HUD command deck
   ============================================================ */
.hero-slider { border-bottom: 1px solid rgba(199, 154, 46, 0.25); }

/* crisp directional scrim: dark only behind copy, clear on the right */
.hero-slide .overlay {
  background:
    linear-gradient(96deg,
      rgba(6, 14, 38, 0.94) 0%,
      rgba(8, 18, 48, 0.82) 26%,
      rgba(8, 18, 48, 0.55) 50%,
      rgba(8, 18, 48, 0.18) 72%,
      rgba(8, 18, 48, 0.03) 100%),
    linear-gradient(to top, rgba(6, 14, 38, 0.72), transparent 42%);
}
/* hero photo gets its own brighter clarity pass */
.hero-slide .bg { filter: saturate(1.12) contrast(1.06) brightness(1.08); }
/* Mobile: copy spans full width, so a vertical scrim is needed for legibility */
@media (max-width: 760px) {
  .hero-slide .overlay {
    background: linear-gradient(180deg, rgba(6, 14, 38, 0.9) 0%, rgba(6, 14, 38, 0.55) 55%, rgba(6, 14, 38, 0.78) 100%);
  }
  .hero-chip, .hero-status { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 20, 52, 0.72); }
}
@media (max-width: 420px) {
  .hero-status { white-space: nowrap; letter-spacing: 0.12em; font-size: 0.66rem; }
}
/* faint HUD grid + vignette layered over the hero */
.hero-slider::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 40%, #000, transparent 80%);
          mask-image: radial-gradient(120% 120% at 70% 40%, #000, transparent 80%);
}
.hero-slider::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 150px rgba(6, 14, 38, 0.5);
}

/* corner brackets */
.hud-frame { position: absolute; inset: 22px; z-index: 5; pointer-events: none; }
.hud-frame span { position: absolute; width: 34px; height: 34px; opacity: 0.7; }
.hud-frame span::before, .hud-frame span::after { content: ""; position: absolute; background: var(--gold-light); box-shadow: 0 0 8px rgba(199,154,46,.6); }
.hud-frame span::before { width: 100%; height: 2px; } .hud-frame span::after { width: 2px; height: 100%; }
.hud-frame .tl { top: 0; left: 0; } .hud-frame .tl::before { top: 0; } .hud-frame .tl::after { left: 0; }
.hud-frame .tr { top: 0; right: 0; } .hud-frame .tr::before { top: 0; right: 0; } .hud-frame .tr::after { right: 0; }
.hud-frame .bl { bottom: 0; left: 0; } .hud-frame .bl::before { bottom: 0; } .hud-frame .bl::after { left: 0; bottom: 0; }
.hud-frame .br { bottom: 0; right: 0; } .hud-frame .br::before { bottom: 0; right: 0; } .hud-frame .br::after { right: 0; bottom: 0; }
@media (max-width: 700px) { .hud-frame { inset: 12px; } }

/* live status chip (top-left of hero content zone) */
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
  background: var(--navy-glass); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-status .live { width: 8px; height: 8px; border-radius: 50%; background: #35e08b; box-shadow: 0 0 0 0 rgba(53, 224, 139, 0.6); animation: kicker-pulse 2s infinite; }
.hero-status b { color: var(--gold-light); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .hero-status .live { animation: none; } }

/* headline luminous ink; keep gold span */
.hero-copy h1, .hero-copy .h1 { text-shadow: 0 2px 40px rgba(6, 14, 38, 0.5); }
.hero-copy .gold { text-shadow: 0 0 34px rgba(199, 154, 46, 0.45); }

/* glass credential chips replacing the plain hero-trust line */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.9);
  background: var(--navy-glass); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 9px 15px; border-radius: 10px;
}
.hero-chip svg { width: 15px; height: 15px; color: var(--gold-light); flex: 0 0 auto; }

/* right-edge vertical data rail */
.hero-rail {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; z-index: 5; pointer-events: none;
  font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 1100px) { .hero-rail { display: none; } }

/* slider dots: glowing */
.slider-dot.is-active { box-shadow: 0 0 12px rgba(199, 154, 46, 0.8); }
.slide-progress { box-shadow: 0 0 12px rgba(199, 154, 46, 0.7); }
.slider-arrow { backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); background: rgba(255, 255, 255, 0.05); }

/* ============================================================
   TRUST STRIP → glowing marquee
   ============================================================ */
.trust-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-marquee .track { display: flex; width: max-content; gap: 0; animation: marquee 34s linear infinite; }
.trust-marquee:hover .track { animation-play-state: paused; }
.trust-marquee .trust-item { padding: 0 40px; position: relative; }
.trust-marquee .trust-item::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust-marquee .track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .trust-marquee .track .dup { display: none; }
}

/* ============================================================
   GLASS CARDS — services (dark) + generic cards
   ============================================================ */
.section--dark .svc-card,
.section--dark .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: var(--card-bd-dk);
  border-radius: var(--radius) var(--arc) var(--radius) var(--radius);   /* arc-bite signature */
  box-shadow: var(--card-shadow-dk);                                     /* glass had NO resting shadow before */
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  position: relative; overflow: hidden;
}
.section--dark .post-card:hover { transform: translateY(-8px); border-color: rgba(199, 154, 46, 0.45); box-shadow: var(--card-shadow-dk-hv); }
.section--dark .svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 154, 46, 0.9), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.section--dark .svc-card:hover { transform: translateY(-8px); border-color: rgba(199, 154, 46, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(199, 154, 46, 0.12); }
.section--dark .svc-card:hover::before { opacity: 1; }
.svc-card .icon-badge { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 24px rgba(199, 154, 46, 0.15); }

/* Light cards: unified hairline + two-layer shadow live in main.css (.card) so
   component overrides like .post-card{padding:0} still win. Here: the hover lift. */
.card { position: relative; }
.card:hover { transform: translateY(-6px); border-color: rgba(199, 154, 46, 0.38); box-shadow: var(--card-shadow-hv), var(--card-ring-gold); }

/* Signature gold corner-bracket — an "engineering reticle" revealed on hover.
   Scoped to the two feature families (svc + numbered); coexists with their ::before. */
.svc-card, .numbered { position: relative; }
.svc-card::after, .numbered::after {
  content: ""; position: absolute; left: 16px; bottom: 16px; width: 14px; height: 14px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  opacity: 0; transform: translate(-3px, 3px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; z-index: 2;
}
.svc-card:hover::after, .numbered:hover::after { opacity: 0.9; transform: none; }
.section--dark .svc-card::after { border-color: var(--gold-light); }

.icon-badge { position: relative; box-shadow: 0 8px 22px rgba(19, 38, 92, 0.28); }
.icon-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* ============================================================
   NUMBERED CAPABILITIES → glass bento tiles
   ============================================================ */
.numbered {
  background: linear-gradient(180deg, rgba(19, 38, 92, 0.035), rgba(19, 38, 92, 0.01));
  border: var(--card-bd);
  border-radius: var(--radius) var(--arc) var(--radius) var(--radius);   /* arc-bite signature */
  box-shadow: var(--card-shadow);                                        /* real container at rest */
  padding: 40px 32px 36px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.numbered::before {   /* slim gold cap — hierarchy, echoes svc-card top hairline */
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(199, 154, 46, 0.9), transparent); opacity: 0.6;
}
.numbered:hover { transform: translateY(-6px); border-color: rgba(199, 154, 46, 0.4); box-shadow: var(--card-shadow-hv), var(--card-ring-gold); }
/* Numeral: defined navy watermark instead of a ~2%-visible ghost — present, not loud */
.numbered .num-label { position: absolute; top: 14px; right: 22px; margin: 0; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(19, 38, 92, 0.20); opacity: 1; }
.section--dark .numbered .num-label { -webkit-text-stroke-color: rgba(255, 255, 255, 0.26); }
.numbered .icon-badge { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: var(--gold-light); border: 0; box-shadow: var(--glow-gold-sm); }

/* ============================================================
   STATS — glass tiles, gradient numerals
   ============================================================ */
.parallax-band { border-block: 1px solid rgba(199, 154, 46, 0.2); }
.parallax-band::before { background: radial-gradient(60% 100% at 20% 0%, rgba(19, 38, 92, 0.62), transparent 60%), rgba(6, 14, 38, 0.88); }
/* Stat tiles get a self-contained navy panel so numeral contrast is decoupled from
   whatever photo shows through — ONLY in dark/parallax contexts. On light bands
   (e.g. the About proof row) stats stay solid gold-on-white via main.css. */
.parallax-band .stats .stat,
.section--dark .stats .stat {
  background: rgba(9, 20, 52, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(199, 154, 46, 0.06), 0 10px 30px rgba(6, 14, 38, 0.35);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius); padding: 32px 22px; position: relative; overflow: hidden;
}
/* On a FLAT navy band (no photo behind), a navy-tinted tile is invisible — use white glass instead */
.section--dark .stats .stat { background: rgba(255, 255, 255, 0.05); }
.parallax-band .stats .stat::before,
.section--dark .stats .stat::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.parallax-band .stat .num, .parallax-band .stat .num--text,
.section--dark .stat .num, .section--dark .stat .num--text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, #fff2cf);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(6, 14, 38, 0.55));   /* drop-shadow works on clipped-text glyphs; text-shadow would be clipped away */
}
.stat .num--text { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: 0.01em; }   /* balance vs the counting numerals */

/* Kickers: default is AA-legible gold-ink (main.css) for LIGHT bands; restore bright gold on DARK bands */
.section--dark .kicker,
.parallax-band .kicker,
.hero-copy .kicker { color: var(--gold-light); }

/* Who-We-Are proof stats sit on a LIGHT band — give them real card containers with high-contrast
   NAVY numerals (gold-on-white fails AA) + a gold top-rule for the brand accent. */
.stats.about-proof .stat {
  position: relative; overflow: hidden;
  background: var(--white);
  border: var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 18px;
}
.stats.about-proof .stat::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats.about-proof .stat .num,
.stats.about-proof .stat .num--text {
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  background: none;
}
.stats.about-proof .stat .num--text { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 800; }
.stats.about-proof .stat .label { color: var(--grey-700); }

/* ============================================================
   HOTSPOT MAP + SECTORS + CHECKER
   ============================================================ */
.hotspot-map { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(199, 154, 46, 0.18); position: relative; }
.hotspot-map > img { filter: saturate(1.14) contrast(1.13) brightness(1.06); }
.hotspot-map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border: 1px solid rgba(199, 154, 46, 0.28); border-radius: var(--radius);
  box-shadow: inset 0 0 42px rgba(6, 14, 38, 0.24);
}
/* reticle-style markers: concentric ring + centre dot + radar pulse */
.hotspot {
  background: radial-gradient(circle at 50% 50%, var(--gold-light) 0 26%, transparent 30%),
              radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(199, 154, 46, 0.9) 60% 72%, transparent 74%);
  border: 0; color: transparent; font-size: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 22px rgba(199, 154, 46, 0.6);
}
.hotspot::after { border-color: rgba(199, 154, 46, 0.75); }

.section--dark .sector-mini {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
}
.sector-strip .sector-mini .thumb { height: 128px; position: relative; transition: transform 0.5s var(--ease); }
.sector-mini::after { content: ""; position: absolute; top: 10px; left: 10px; width: 14px; height: 14px; border-top: 2px solid var(--gold-light); border-left: 2px solid var(--gold-light); opacity: 0.75; z-index: 3; }
.sector-mini:hover .thumb { transform: scale(1.06); }
.sector-mini:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(199, 154, 46, 0.15); }

.checker-cell--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6, 14, 38, 0.28), transparent 55%); pointer-events: none; }
.checker-cell--text.alt { background: radial-gradient(80% 120% at 100% 0%, rgba(60, 96, 208, 0.22), transparent 60%), var(--navy-deep); }
.checker-cell--text .checker-year { text-shadow: 0 0 14px rgba(199, 154, 46, 0.4); }

/* ============================================================
   BEFORE / AFTER — glow handle
   ============================================================ */
.ba { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(199, 154, 46, 0.15); }
.ba-handle { box-shadow: 0 0 16px rgba(199, 154, 46, 0.6); }
.ba-handle::after { box-shadow: 0 0 22px rgba(199, 154, 46, 0.5), var(--shadow-md); }

/* ============================================================
   TILT / MAGNETIC micro-interaction base
   ============================================================ */
.tilt { transform-style: preserve-3d; transition: transform 0.2s var(--ease); will-change: transform; }

/* ============================================================
   FOOTER — aurora crown
   ============================================================ */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 340px; pointer-events: none;
  background: radial-gradient(60% 120% at 80% 0%, rgba(60, 96, 208, 0.20), transparent 60%), radial-gradient(40% 100% at 10% 0%, rgba(199, 154, 46, 0.12), transparent 60%);
}
.site-footer .footer-cta { border-bottom: 1px solid rgba(199, 154, 46, 0.2); position: relative; }
.site-footer > * { position: relative; z-index: 2; }

/* Page-hero (inner pages) gets the grid + brighter glow too */
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 100% at 70% 0%, #000, transparent 75%);
}
.page-hero .container { z-index: 2; }

/* Photo page-hero: restore the dark scrim that the .page-hero::after grid above
   was clobbering (same pseudo-element, equal specificity, futuristic loads last →
   the navy scrim in components.css lost). Higher specificity (.page-hero.page-hero--img,
   0-2-1) + later source order guarantees this wins. Two stacked gradients — horizontal
   (heaviest left, under the headline) + vertical (heaviest bottom, under the breadcrumb,
   tag and subtitle) — keep white text legible on ANY photo, however bright. */
.page-hero.page-hero--img::after {
  background:
    linear-gradient(96deg, rgba(9,18,45,.95) 0%, rgba(9,18,45,.78) 46%, rgba(9,18,45,.52) 100%),
    linear-gradient(0deg,  rgba(9,18,45,.92) 0%, rgba(9,18,45,.34) 44%, rgba(9,18,45,0) 100%);
  background-size: auto, auto;
  -webkit-mask-image: none;
          mask-image: none;
}

/* ============================================================
   WHATSAPP FLOAT — navy glass + gold ring (was template green)
   ============================================================ */
.wa-widget .wa-float {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-deep));
  border: 1.5px solid rgba(199, 154, 46, 0.6);
  box-shadow: 0 12px 30px rgba(6, 14, 38, 0.5), 0 0 22px rgba(199, 154, 46, 0.22);
  position: relative; /* anchor the online-dot to the button, not the widget */
}
.wa-float svg { fill: #fff; }
.wa-float::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: #35e08b; border: 2px solid var(--navy-deep);
  box-shadow: 0 0 8px rgba(53, 224, 139, 0.8);
}

/* ============================================================
   LIGHT-SECTION blueprint grid (so white bands stop reading "default")
   ============================================================ */
.section--tech { position: relative; isolation: isolate; }
.section--tech::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-dk) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dk) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 26%, transparent 80%);
          mask-image: radial-gradient(120% 92% at 50% 0%, #000 26%, transparent 80%);
}
.section--tech > .container { position: relative; z-index: 1; }

/* ---- Capabilities: 01 → 02 → 03 reads as a process flow ---- */
.cap-flow { position: relative; }
.cap-flow::before {
  content: ""; position: absolute; top: 70px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(199, 154, 46, 0.75) 0 7px, transparent 7px 15px);
}
.cap-flow .numbered { position: relative; z-index: 1; background: var(--white); }
@media (max-width: 960px) { .cap-flow::before { display: none; } }

/* ============================================================
   INSIGHTS + TESTIMONIALS on dark → glass, futuristic parity
   ============================================================ */
.section--dark .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.section--dark .post-card h3 a { color: #fff; }
.section--dark .post-card h3 a:hover { color: var(--gold-light); }
.section--dark .post-card .excerpt { color: rgba(255, 255, 255, 0.72); }
.section--dark .post-card:hover { transform: translateY(-8px); border-color: rgba(199, 154, 46, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(199, 154, 46, 0.12); }
.section--dark .tst .role { color: rgba(255, 255, 255, 0.55); }

/* ---- Before/After on dark: keep list text legible ---- */
.section--dark .check-list li { color: rgba(255, 255, 255, 0.82); }
.section--dark .check-list strong { color: #fff; }

/* ============================================================
   ABOUT collage — HUD bracket instead of dated solid gold frame
   ============================================================ */
.about-collage .media--accent { border: 1px solid rgba(199, 154, 46, 0.55) !important; }
.about-collage { --br: 18px; }
.about-collage::after {
  content: ""; position: absolute; right: -34px; bottom: -60px; width: 30px; height: 30px; z-index: 3;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  box-shadow: 0 0 12px rgba(199, 154, 46, 0.5);
}
@media (max-width: 640px) { .about-collage::after { right: -22px; } }

/* ============================================================
   HERO TELEMETRY — floating glass command panel (slide 1)
   ============================================================ */
.hero-telemetry {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 290px; z-index: 5; padding: 20px 20px 22px;
  border-radius: 16px; background: rgba(9, 20, 52, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(6, 14, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}
.hero-telemetry .tele-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light);
}
.hero-telemetry .tele-head .live { width: 8px; height: 8px; border-radius: 50%; background: #35e08b; box-shadow: 0 0 10px rgba(53, 224, 139, 0.8); animation: kicker-pulse 2s infinite; }
.hero-telemetry .tele-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem; padding: 7px 0; color: rgba(255, 255, 255, 0.72); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.hero-telemetry .tele-row:first-of-type { border-top: 0; }
.hero-telemetry .tele-row b { font-family: var(--font-display); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-telemetry .tele-row b.ok { color: #35e08b; }
.hero-telemetry .tele-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 2px 0 4px; }
.hero-telemetry .tele-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 10px rgba(199, 154, 46, 0.6); animation: tele-load 3.5s var(--ease) infinite alternate; }
@keyframes tele-load { from { width: 48%; } to { width: 68%; } }
@media (prefers-reduced-motion: reduce) { .hero-telemetry .tele-head .live { animation: none; } .hero-telemetry .tele-bar i { animation: none; width: 62%; } }
@media (max-width: 1180px) { .hero-telemetry { display: none; } }

/* ---------- Reveal: add a clip/blur flavor ---------- */
.reveal { filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal.in-view { filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none; } }

/* ============================================================
   ENHANCEMENTS: Ken Burns & Glass Hero
   ============================================================ */
.hero-slider .bg {
  transform: scale(1.02);
  transition: transform 7s linear;
}
.hero-slider .is-active .bg {
  transform: scale(1.08);
}
.hero-copy-glass {
  background: rgba(9, 20, 52, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 42px 48px;
  border-radius: var(--radius) var(--arc) var(--radius) var(--radius);
  max-width: 680px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}
@media (max-width: 760px) {
  .hero-copy-glass {
    padding: 28px 22px;
    margin-top: 0;
  }
}

/* ============================================================
   ENHANCEMENTS: Mega Menu Polish (Desktop Only)
   ============================================================ */
@media (min-width: 901px) {
  .nav-item-mega .mega {
    background: rgba(11, 24, 57, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(199, 154, 46, 0.4) !important;
    transform-origin: top;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
  .nav-item-mega:hover .mega,
  .nav-item-mega.open .mega,
  .nav-item-mega:focus-within .mega {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .nav-item-mega .mega-group li a {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .nav-item-mega .mega-group li a:hover {
    color: var(--navy-deep) !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }
  .nav-item-mega .mega-group li a .mi {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: var(--gold-light) !important;
  }
  .nav-item-mega .mega-group li a:hover .mi {
    background: var(--navy-deep) !important;
    border-color: var(--navy-deep) !important;
    color: var(--gold) !important;
  }
}
.mega-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.mega-feature img {
  transition: transform 0.6s var(--ease);
}
.mega-feature:hover img {
  transform: scale(1.06);
}
.mega-feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  border-radius: inherit;
}
.mega-feature:hover::after {
  border-color: var(--gold);
  box-shadow: inset 0 0 20px rgba(199, 154, 46, 0.3);
}
