/* ════════════════════════════════════════════════════════════════════
   INSIGHT — Cinematic Hero
   Isolated component (see blog-hero.js). Replaces the previous
   .page-header banner on blogs.html only. Full-bleed photographic
   composition (Hero/insight.*) of the analyst-with-binoculars / data-city
   visual, with a single left-to-right scrim carrying the headline — one
   full-inset photo + one scrim, matching the site's established hero
   convention (.op-hero in process-hero.css, .q-hero in quality-hero.css,
   .oj-hero in journey-hero.css), not a boxed image stitched against a
   separately drawn background. A three-item feature row sits under the
   CTA inside the left content column.

   Motion contract: only transform / opacity are animated on anything
   that runs continuously. Width, height, margin, left and top are
   never transitioned.
   ════════════════════════════════════════════════════════════════════ */

.ins-hero {
  --navy: #061B49;
  --navy-mid: #08265C;
  --navy-deep: #020814;
  --ink: #F5F7FB;
  --ink-dim: #B9C4DE;
  --accent: #FF6B00;
  --accent-2: #FF7518;
  --accent-hot: #FFC24B;
  position: relative;
  min-height: 96vh;
  height: 96vh;
  min-height: 820px;
  max-height: 1220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ink);
}

@media (max-width: 900px) {
  .ins-hero { height: auto; min-height: 100svh; max-height: none; padding-bottom: 2.5rem; }
}

.ins-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ══ full-bleed photo — the plate itself already carries the world-map
   texture, HUD analytics, data city, binocular figure and the bottom
   orange curve accent, so no separate decorative layer duplicates them ══ */
.ins-hero-visual { position: absolute; inset: 0; overflow: hidden; }

.ins-hero-visual picture,
.ins-hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ins-hero-visual-img {
  object-fit: cover;
  object-position: 62% 46%;
  transform: scale(1.055);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@media (max-width: 900px) {
  .ins-hero-visual-img { object-position: 58% 40%; }
}

/* subtle warm breathing glow over the visual's own light source, kept
   very low-opacity so it reads as atmosphere, not a new light */
.ins-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 42% 55% at 78% 38%, rgba(255, 137, 34, .22), transparent 62%);
  opacity: .7;
  animation: insGlowBreathe 6s ease-in-out infinite;
}

@keyframes insGlowBreathe {
  0%, 100% { opacity: .7; }
  50% { opacity: .85; }
}

@media (max-width: 900px) {
  .ins-hero-glow { display: none; }
}

/* single scrim reinforcing the plate's own navy field so the headline
   stays readable at any crop */
.ins-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, var(--navy) 0%, rgba(6, 27, 73, .93) 26%, rgba(6, 27, 73, .76) 42%, rgba(6, 27, 73, .4) 58%, rgba(6, 27, 73, .1) 74%, transparent 88%),
    linear-gradient(180deg, rgba(2, 8, 20, .35) 0%, transparent 16%, transparent 62%, rgba(2, 8, 20, .5) 100%);
}

@media (max-width: 900px) {
  .ins-hero-scrim {
    background:
      linear-gradient(180deg, rgba(6, 27, 73, .78) 0%, rgba(6, 27, 73, .4) 24%, rgba(6, 27, 73, .3) 44%, rgba(2, 8, 20, .58) 66%, rgba(2, 8, 20, .95) 100%),
      linear-gradient(90deg, rgba(6, 27, 73, .5) 0%, transparent 45%, transparent 60%, rgba(6, 27, 73, .35) 100%);
  }
}

/* ── faint technical grid, low opacity, confined to the content field ── */
.ins-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .05;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 58%);
  mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 58%);
  animation: insGridDrift 20s linear infinite;
}

@keyframes insGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 84px 0, 0 84px; }
}

@media (max-width: 900px) {
  .ins-hero-grid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ins-hero-grid { animation: none !important; }
  .ins-hero-glow { animation: none !important; }
}

/* ── subtle orange data-pulse points overlaid on the existing visual —
   analytics/data-node signals only, reusing the plate's own HUD/data-city
   imagery as backdrop rather than drawing new graphics ── */
.ins-pulse-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.ins-pulse-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(255, 107, 0, .25);
  opacity: .2;
  transform: translate(-50%, -50%) scale(.85);
  animation-name: insPulseDot;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.ins-pulse-dot--sm { width: 2px; height: 2px; }
.ins-pulse-dot--lg { width: 5px; height: 5px; background: var(--accent-2); }

@keyframes insPulseDot {
  0%, 100% { opacity: .2; transform: translate(-50%, -50%) scale(.85); box-shadow: 0 0 5px rgba(255, 107, 0, .25); }
  50% { opacity: .75; transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 9px rgba(255, 107, 0, .45); }
}

.ins-pulse-dot--signal::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, .5);
  opacity: 0;
  animation-name: insPulseSignal;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes insPulseSignal {
  0% { transform: scale(.8); opacity: .45; }
  100% { transform: scale(1.8); opacity: 0; }
}

.ins-pulse-dot:nth-child(1) { animation-delay: 0s; animation-duration: 4.2s; }
.ins-pulse-dot:nth-child(2) { animation-delay: .9s; animation-duration: 3.8s; }
.ins-pulse-dot:nth-child(3) { animation-delay: 1.8s; animation-duration: 4.6s; }
.ins-pulse-dot:nth-child(4) { animation-delay: .5s; animation-duration: 3.4s; }
.ins-pulse-dot:nth-child(5) { animation-delay: 2.1s; animation-duration: 4s; }
.ins-pulse-dot:nth-child(6) { animation-delay: 1.3s; animation-duration: 3.6s; }
.ins-pulse-dot:nth-child(7) { animation-delay: 2.7s; animation-duration: 4.4s; }
.ins-pulse-dot:nth-child(8) { animation-delay: .3s; animation-duration: 3.9s; }
.ins-pulse-dot:nth-child(9) { animation-delay: 1.6s; animation-duration: 4.1s; }
.ins-pulse-dot:nth-child(10) { animation-delay: 2.4s; animation-duration: 3.3s; }
.ins-pulse-dot:nth-child(11) { animation-delay: .7s; animation-duration: 4.5s; }
.ins-pulse-dot:nth-child(12) { animation-delay: 1.9s; animation-duration: 3.7s; }

.ins-pulse-dot--signal:nth-child(1)::after { animation-delay: .6s; animation-duration: 3s; }
.ins-pulse-dot--signal:nth-child(2)::after { animation-delay: 1.6s; animation-duration: 3.4s; }
.ins-pulse-dot--signal:nth-child(3)::after { animation-delay: 2.6s; animation-duration: 2.8s; }

/* thin out decorative nodes on smaller screens, keeping the earliest
   (most important / signal) nodes first in the markup */
@media (max-width: 1100px) {
  .ins-pulse-dot:nth-child(n+9) { display: none; }
}

@media (max-width: 640px) {
  .ins-pulse-dot:nth-child(n+7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ins-pulse-dot { animation: none !important; opacity: .25; transform: translate(-50%, -50%) scale(1); }
  .ins-pulse-dot--signal::after { animation: none !important; display: none; }
}

/* ── drifting glow-dot particles (mirrors .hero-particles on the
   homepage / .ph-particles on the products page) — a separate rising
   float layer, distinct from the stationary .ins-pulse-dot signal
   points above. Plain spans injected once by blog-hero.js with
   randomized CSS custom properties, animated purely by the keyframe
   below. ── */
.ins-hero-particles { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }

.ins-hero-particle {
  position: absolute;
  bottom: -5%;
  left: var(--x, 50%);
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--hue, var(--accent-2));
  box-shadow: 0 0 6px 1px var(--hue, rgba(255, 117, 24, .6));
  opacity: 0;
  animation: insHeroParticleFloat var(--dur, 16s) ease-in var(--delay, 0s) infinite;
}

@keyframes insHeroParticleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .7; }
  85% { opacity: .35; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 20px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ins-hero-particle { animation: none !important; }
}

/* ══ content ══ */
.ins-hero-inner {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.25rem) 1.75rem 4rem;
}

.ins-hero-content { max-width: 660px; }

.ins-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-hot);
  opacity: 0;
}

.ins-hero-eyebrow-icon { display: flex; flex-shrink: 0; color: var(--accent); }
.ins-hero-eyebrow-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ins-hero-eyebrow-line {
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.ins-hero-heading {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  text-transform: none;
  font-size: clamp(2.5rem, 4.4vw + 1vh, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.ins-hero-heading .line { display: block; opacity: 0; }
.ins-hero-heading .ink { color: var(--ink); }
.ins-hero-heading .accent {
  color: var(--accent);
  filter: drop-shadow(0 0 26px rgba(255, 107, 0, .32));
}

.ins-hero-desc {
  margin-top: 1.2rem;
  max-width: 46ch;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-dim);
  padding: .95rem 1.3rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0;
}

/* ── CTA: orange pill, white text, arrow badge ── */
.ins-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.9rem;
  padding: .5rem .5rem .5rem 1.55rem;
  border-radius: 3rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 26px rgba(255, 107, 0, .28);
  opacity: 0;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}

.ins-hero-cta:hover,
.ins-hero-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #E85D00, var(--accent));
  box-shadow: 0 16px 34px rgba(255, 107, 0, .4);
}

.ins-hero-cta:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
}

.ins-hero-cta-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ins-hero-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.ins-hero-cta-arrow svg { width: 16px; height: 16px; }

.ins-hero-cta:hover .ins-hero-cta-arrow,
.ins-hero-cta:focus-visible .ins-hero-cta-arrow {
  transform: translateX(5px);
}

/* ══ three-item feature row, left-aligned under the CTA ══ */
.ins-hero-features {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.ins-feature {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  flex: 1;
  min-width: 0;
  outline: none;
  opacity: 0;
  transform: translateY(14px);
}

.ins-feature-divider {
  align-self: stretch;
  width: 1px;
  min-height: 46px;
  background: rgba(255, 255, 255, .14);
  flex-shrink: 0;
}

.ins-feature-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 107, 0, .26), rgba(255, 107, 0, .06));
  border: 1.5px solid rgba(255, 107, 0, .45);
  color: var(--accent-hot);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, box-shadow .28s ease, color .28s ease;
}

/* ── idle "flex" pulse: a soft ring breathing outward behind each icon,
   kept on a pseudo-element (not the icon's own transform) so it never
   fights the hover-scale above ── */
.ins-feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-hot);
  box-shadow: 0 0 0 0 rgba(255, 194, 75, .5);
  opacity: 0;
  animation: insIconFlex 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
}

.ins-feature:nth-child(1) .ins-feature-icon::after { animation-delay: 0s; }
.ins-feature:nth-child(3) .ins-feature-icon::after { animation-delay: .85s; }
.ins-feature:nth-child(5) .ins-feature-icon::after { animation-delay: 1.7s; }

@keyframes insIconFlex {
  0% { transform: scale(1); opacity: .9; }
  75% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.ins-feature-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ins-feature-title {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .28s ease;
}

.ins-feature-sub {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--ink-dim);
}

.ins-feature:hover,
.ins-feature:focus-visible {
  transform: translateY(-2px);
}

.ins-feature:hover .ins-feature-icon,
.ins-feature:focus-visible .ins-feature-icon {
  transform: scale(1.08);
  border-color: var(--accent-hot);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 117, 24, .14), 0 0 18px rgba(255, 194, 75, .4);
}

.ins-feature:hover .ins-feature-title,
.ins-feature:focus-visible .ins-feature-title { color: var(--accent-hot); }

@media (max-width: 1100px) {
  .ins-hero-content { max-width: 540px; }
  .ins-hero-features { gap: 1.1rem; }
  .ins-feature-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ins-feature, .ins-feature:hover, .ins-feature:focus-visible { transform: none !important; }
  .ins-feature-icon::after { animation: none !important; display: none; }
}

/* ══ mobile: text and features stack centered over the same full-bleed
   photo, no separate boxed card — matches the homepage / leadership
   hero ══ */
@media (max-width: 900px) {
  .ins-hero-inner { padding: calc(var(--nav-h) + 1.6rem) 1.25rem 0; display: block; }

  .ins-hero-content { max-width: none; text-align: center; }

  .ins-hero-eyebrow { justify-content: center; }

  .ins-hero-desc { margin-left: auto; margin-right: auto; }

  .ins-hero-cta { margin-left: auto; margin-right: auto; }

  .ins-hero-features {
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    margin-top: 2.2rem;
    padding-bottom: 0;
  }

  .ins-feature { flex: 0 1 auto; min-width: 44%; }
  .ins-feature-sub { display: block; }
  .ins-feature-divider { display: none; }

  .ins-hero-visual-img { object-position: 58% 30%; }

  .ins-hero-glow { display: none; }
}

@media (max-width: 560px) {
  .ins-feature { min-width: 100%; }
  .ins-feature-divider { display: none; }
  .ins-hero-features { gap: 1.4rem; }
}

/* ══ LOW-END MOBILE: decorative background-position sweep/drift forces a
   repaint every frame and (where paired) costs extra compositing via
   mix-blend-mode; simplify it away below the tablet breakpoint regardless
   of the user's reduced-motion preference, since most low-end-phone users
   won't have that OS setting enabled ══ */
@media (max-width: 760px) {
  .ins-hero-grid { animation: none !important; }
}

/* ══ LOW-POWER MODE: same grid-drift simplification as the mobile
   breakpoint above, keyed off device capability (.low-power-mode)
   instead of viewport width ══ */
.low-power-mode .ins-hero-grid { animation: none !important; }
