/* ==========================================================================
   RepuNEXT TV — Insights page (/insights/, page-insights.php)
   1. Banner         – breadcrumb, heading, lead + animated art (AI network, broadcast rings, level meter)
   2. Recent posts   – 8 post cards (4 / 2 / 1 columns; card styles in post-cards.css)
   (3. Collaborate card: collab.css + media-art.css, shared with the homepage)
   Animations use transform / opacity / stroke-dashoffset only and stop with "reduce motion".
   ========================================================================== */
.insights-page { padding-bottom: 0; }

/* ---------- 1. Banner ---------- */
.insights-hero { padding-inline: clamp(10px, 1.4vw, 20px); }   /* a little wider than the content below */
.insights-hero__panel {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1560px; margin-inline: auto;
  min-height: clamp(300px, 32vw, 420px);
  display: flex; align-items: flex-end;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-deep) 0%, var(--ink) 62%, var(--sq-1) 100%);
  color: #fff;
  box-shadow: 0 6px 0 var(--sq-5);
}
.insights-hero__content {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  padding: clamp(28px, 4vw, 56px);
}

/* Breadcrumb */
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; letter-spacing: .02em; }
.breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--sq-5); font-weight: 700; }
.breadcrumb__item a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s, color .2s; }
.breadcrumb__item a:hover { color: var(--sq-7); border-color: var(--sq-7); }
.breadcrumb__item [aria-current="page"] { color: var(--sq-7); }

.insights-hero__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.04em;
}
.insights-hero__lead { margin: 16px 0 0; max-width: 46ch; color: #C6D4DE; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; }

/* Animated art (decorative): right side, fades out towards the text */
.insights-hero__art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 20%, rgba(0,0,0,.7) 45%, #000 60%);
  mask-image: linear-gradient(to right, transparent 20%, rgba(0,0,0,.7) 45%, #000 60%);
}
.insights-hero__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px;
  animation: ih-grid 24s linear infinite;
}
@keyframes ih-grid { to { background-position: 0 40px, 40px 0; } }
.insights-hero__glow {
  position: absolute; right: 8%; top: 50%; width: 46%; aspect-ratio: 1; translate: 0 -50%;
  background: radial-gradient(circle, rgba(3,174,184,.32), transparent 62%);
  animation: ih-breathe 7s ease-in-out infinite alternate;
}
@keyframes ih-breathe { from { opacity: .6; scale: .92; } to { opacity: 1; scale: 1.06; } }
.insights-hero__svg { position: absolute; top: 4%; right: clamp(12px, 3vw, 48px); width: min(52%, 620px); height: 92%; }
.pixels.insights-hero__mark { --u: clamp(9px, 1.1vw, 14px); position: absolute; top: clamp(20px, 3vw, 34px); right: clamp(20px, 3vw, 34px); opacity: .9; }

.ih-links path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.4; }
.ih-signals path {
  fill: none; stroke: var(--sq-5); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 14 400; stroke-dashoffset: 0;
  animation: ih-signal 4.6s linear infinite; animation-delay: var(--t, 0s);
}
@keyframes ih-signal { to { stroke-dashoffset: -414; } }
.ih-nodes circle {
  fill: var(--sq-7); transform-box: fill-box; transform-origin: center;
  animation: ih-node 3.2s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes ih-node { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.ih-rings circle {
  fill: none; stroke: var(--sq-5); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: ih-ring 4s ease-out infinite; animation-delay: var(--d, 0s);
}
@keyframes ih-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.ih-chip rect { fill: var(--ink-deep); stroke: var(--sq-5); stroke-width: 2; }
.ih-chip__pins path { fill: none; stroke: rgba(82,194,166,.75); stroke-width: 3; stroke-linecap: round; }
.ih-chip text { fill: #fff; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.ih-meter rect {
  fill: var(--sq-4); opacity: .55;
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: ih-meter 1.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes ih-meter { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* Stepped squares (the logo mark in CSS; same as the homepage) */
.pixels { --u: 14px; position: relative; width: calc(var(--u) * 3.54); height: calc(var(--u) * 3.54); flex: none; }
.pixels i { position: absolute; width: var(--u); height: var(--u); border-radius: 3px; }
.pixels i:nth-child(1) { left: calc(var(--u) * .54);  top: 0;                        background: var(--sq-2); }
.pixels i:nth-child(2) { left: calc(var(--u) * 1.54); top: 0;                        background: var(--sq-4); }
.pixels i:nth-child(3) { left: calc(var(--u) * 2.54); top: 0;                        background: var(--sq-5); }
.pixels i:nth-child(4) { left: calc(var(--u) * 2.54); top: var(--u);                 background: var(--sq-6); }
.pixels i:nth-child(5) { left: calc(var(--u) * 2.54); top: calc(var(--u) * 2);       background: var(--sq-7); }
.pixels i:nth-child(6) { left: calc(var(--u) * 1);    top: calc(var(--u) * 1.27);    background: var(--sq-3); }
.pixels i:nth-child(7) { left: 0;                     top: calc(var(--u) * 2.54);    background: var(--sq-1); }

/* ---------- 2. Recent posts ---------- */
.insights-list { padding-top: clamp(48px, 6vw, 88px); }
.insights-list__head { margin-bottom: clamp(24px, 3vw, 36px); }
.insights-list__head .eyebrow { margin: 0 0 10px; }
.insights-list__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; }

.insights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
/* The cards themselves: assets/css/post-cards.css (shared with the homepage) */
.insights-empty { padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .insights-hero__panel { min-height: 0; }
  .insights-hero__content { padding-top: clamp(150px, 44vw, 210px); }   /* art above, text below */
  .ih-meter { display: none; }
  .insights-hero__art {
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,.25) 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 30%, rgba(0,0,0,.25) 70%, transparent 100%);
  }
  .insights-hero__svg { top: 0; right: 50%; translate: 50% 0; width: min(92%, 460px); height: clamp(150px, 44vw, 210px); }
}
@media (max-width: 599px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card__title, .insight-card__excerpt { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .insights-hero__art *, .ih-signals path, .ih-nodes circle, .ih-rings circle, .ih-meter rect { animation: none !important; }
  .ih-rings circle { opacity: 0; }
  .ih-signals path { opacity: 0; }
  .insight-card, .insight-card__media img { transition: none; }
}
