/* Insights page — dark operational direction, matching the homepage's
   double-border card system. Scoped so it doesn't affect other pages. */
.insights-immersive-page {
  --insights-ink: #eef4fb;
  --insights-cyan: #5fd8ff;
  background: #03070f;
  color: var(--insights-ink);
}

.insights-poster {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/video/insights-master-v3-tech.png") center / cover no-repeat;
  filter: saturate(.86) contrast(1.08) brightness(.6);
}
.insights-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  filter: saturate(.86) contrast(1.08) brightness(.6);
  transition: opacity .4s ease;
}
.insights-video.is-ready { opacity: 1; }
@media (min-width: 901px) {
  .insights-poster { display: none; }
  body.insights-video-fallback .insights-poster { display: block; }
}
.insights-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,8,18,.96) 0%, rgba(3,8,18,.86) 32%, rgba(3,8,18,.5) 60%, rgba(3,8,18,.18) 88%), linear-gradient(180deg, rgba(3,8,18,.5), transparent 22%, transparent 70%, rgba(3,8,18,.85));
}

.insights-immersive-page .insights-content { position: relative; z-index: 3; }
.insights-immersive-page .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;
}
/* Insights keeps the shared header geometry; its single frosted material has
   no gradient, only a soft lower edge. */
.insights-immersive-page .site-nav { background: rgba(3,8,18,.56); box-shadow: 0 8px 20px rgba(3,8,18,.18); backdrop-filter: blur(18px) saturate(118%); -webkit-backdrop-filter: blur(18px) saturate(118%); }

.insights-hero {
  min-height: min(540px, 88svh);
  display: flex;
  align-items: center;
  padding: 152px 0 60px;
}
.insights-hero__content { width: min(720px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
.insights-immersive-page .eyebrow {
  margin: 0;
  color: var(--insights-cyan);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.insights-hero h1 {
  max-width: 14ch;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .98;
}
.insights-hero p { max-width: 48ch; margin: 0; color: #b7c6d8; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; }

.insights-filters { padding: 0 0 clamp(24px, 3vw, 40px); }
.insights-filters__bar { display: flex; align-items: center; gap: 10px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.insights-filters__scroller { display: flex; overflow-x: auto; scrollbar-width: none; }
.insights-filters__scroller::-webkit-scrollbar { display: none; }
.insights-filters__row { display: flex; gap: 10px; }
.filter-pill {
  flex: 0 0 auto;
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #c3d1e0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.filter-pill:hover { border-color: rgba(95,216,255,.5); color: #fff; }
.filter-pill.is-active { background: rgba(95,216,255,.16); border-color: rgba(95,216,255,.7); color: #fff; }
.insights-filters__nudge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(3,8,18,.5);
  color: #c3d1e0;
  cursor: pointer;
}
.insights-filters__nudge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.insights-list { padding: 0 0 clamp(70px, 8vw, 110px); }
.insights-list__stack { display: grid; gap: clamp(56px, 6vw, 88px); width: min(920px, calc(100% - 48px)); margin: 0 auto; }

/* Insight cards reuse the shared .glass-card housing+depth double-border
   system, laid out as a media+copy row instead of a stacked block. The
   housing panel bleeds outside the card box (see secondary.css inset), so
   .insights-list__stack's gap above must clear that bleed or neighbouring
   cards visibly overlap on scroll. */
.insight-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --edge-hover-offset: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 228px) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 28px 20px 20px;
  opacity: 0;
  transition: opacity .5s ease;
  transition-delay: var(--about-delay, 0ms);
}
.insight-card.is-visible { opacity: 1; }
.insight-card.is-reveal-prepared {
  will-change: opacity, transform;
}
.insight-card.is-reveal-prepared .glass-card__housing,
.insight-card.is-reveal-prepared .glass-card__depth {
  will-change: backdrop-filter;
}
.insight-card.is-visible:hover {
  transform: translate3d(0, -3px, 0) perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}
/* Dark frosted depth panel — override the white .glass-card__depth from
   secondary.css so insight cards match the dark tech theme instead of
   rendering as light-grey blocks. */
.insights-immersive-page .glass-card__housing {
  background-color: rgba(9,13,20,.44);
  box-shadow: 0 20px 48px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(.95);
  -webkit-backdrop-filter: blur(14px) saturate(.95);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.insights-immersive-page .glass-card__depth {
  background: linear-gradient(145deg, rgba(9,20,38,.62), rgba(4,10,22,.5));
  box-shadow: 0 18px 44px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06), inset 0 0 0 1px rgba(120,190,235,.1);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  transition: box-shadow .25s ease;
}
.insights-immersive-page .glass-card__depth::before {
  background: conic-gradient(from calc((var(--insights-progress, .3) + var(--edge-hover-offset, 0)) * 1turn), transparent 0 78%, rgba(227,243,250,.06) 83%, rgba(238,250,255,.92) 88%, rgba(189,219,232,.16) 93%, transparent 100%);
}
.insight-card:hover .glass-card__housing {
  background-color: rgba(13,16,20,.48);
  box-shadow: 0 34px 82px rgba(0,0,0,.5), inset 0 1px rgba(244,246,248,.1), inset 0 0 44px rgba(184,190,196,.035);
}
.insight-card:hover .glass-card__depth {
  box-shadow: 0 38px 90px rgba(0,0,0,.58), 0 0 64px rgba(58,180,231,.2), inset 0 0 0 1px rgba(255,255,255,.1);
}
/* Category-filter states (driven by the shared main.js). */
.insight-card.is-filtering { opacity: 0; transform: translateY(16px); }
.insight-card.is-filtered { display: none; }
.insight-card__media { position: relative; z-index: 2; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #0b1b33; }
.insight-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) contrast(1.05) brightness(.92); transition: transform .8s cubic-bezier(.22,1,.36,1), filter .5s ease; }
.insight-card.is-visible:hover .insight-card__media img { transform: scale(1.05); filter: saturate(.95) contrast(1.05) brightness(1); }
.insight-card__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.insight-card h3 { margin: 0 0 10px; color: #fff; font-size: clamp(1.1rem, 1.4vw, 1.32rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.16; }
.insight-card__copy > p { margin: 0 0 16px; max-width: 46ch; color: #aebccc; font-size: .92rem; line-height: 1.5; }
.insight-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.insight-card__date { color: #7c8ea3; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.insight-card__tag { padding: 3px 10px; border-radius: 999px; background: rgba(95,216,255,.14); color: var(--insights-cyan); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.insight-card.is-clickable { cursor: pointer; }
.insight-card.is-clickable:focus-visible { outline: 3px solid var(--insights-cyan); outline-offset: 6px; }
.insights-immersive-page .insight-card__link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--insights-cyan); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.insights-immersive-page .insight-card__link:hover { color: #fff; }
.insights-immersive-page .insight-card__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .25s ease; }
.insight-card:hover .insight-card__link svg { transform: translateX(4px); }

.insights-list__empty { max-width: 640px; margin: 40px auto 0; color: #aebccc; text-align: center; }

.insights-cta { padding: 0; background: #062349; }
.insights-cta__band {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(110deg, #062349, #075886);
}
.insights-cta__band h2 { max-width: 20ch; margin: 0 0 10px; color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; }
.insights-cta__band p { margin: 0 0 22px; color: #cfe4ec; font-size: 1rem; }

@media (max-width: 760px) {
  .insights-hero { padding: 128px 0 44px; min-height: 0; }
  .insights-hero__content { margin: 0 24px; width: auto; }
  .insights-hero h1 { max-width: 11ch; font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .insights-list { padding-top: 72px; }
  .insight-card { grid-template-columns: 1fr; gap: 16px; padding: 16px 18px 20px; }
  .insight-card__media { aspect-ratio: 16 / 10; }
  .insights-list__stack { width: min(560px, calc(100% - 40px)); }
  .insights-list__empty { max-width: 26ch; margin: 34px auto 0; padding: 0 24px; line-height: 1.45; }
  .insights-cta__band { min-height: 0; padding: 38px 28px 40px; }
  .insights-cta__band h2 { max-width: 16ch; font-size: clamp(1.7rem, 7.4vw, 2.15rem); }
  .insights-cta__band p { max-width: 26ch; margin-right: auto; margin-left: auto; font-size: .95rem; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  .insight-card { transition: none; }
}
