/* ==========================================================================
   EWD Site — "Insights" section
   A compact, two-card preview of the blog/news feed: a big heading with a
   circular "view all" button (reuses the site-wide magnetic-button system
   from hero.js), and two article cards whose thumbnail art drifts on
   scroll (classic parallax-inside-a-clipped-frame) while the whole card
   tilts gently toward the cursor on hover (fine pointers only). Entrance
   reveal reuses the shared [data-reveal-on-scroll] system in style.css/
   reveal.js. Self-contained; reuses the design tokens declared on :root
   in style.css.
   ========================================================================== */

.insights {
  position: relative;
  padding: 20px 0 40px;
  /* background: var(--bg); */
  overflow: hidden;
}

.insights__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 45% at 85% 10%, rgba(73, 46, 159, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(138, 207, 235, 0.1), transparent 60%);
}

.insights__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.insights__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 50px;
}

.insights__heading {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 96px;
    /* font-weight: 800; */
    font-weight: 700;
    line-height: 130px;
    letter-spacing: -0.96px;
    text-transform: capitalize;
}

.insights__nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: var(--text);
    transition: 0.5s;
    border: 1px solid #492E9F;
    background: rgba(25, 14, 61, 0.72);
    box-shadow: 0 4px 44px 0 rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    padding-left: 5px;
}
.insights__nav:hover {
  background: #39b54b;
  border-color: #39b54b;
  box-shadow: 0px 0px 18px #39b54b;
}

/* ---------- Grid ---------- */

.insights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.insights__card {
  position: relative;
  display: block;
  border-radius: 20px;
  perspective: 1200px;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
  transform: unset !important;
}

.insights__card:hover {
  transform: translateY(-8px);
}

article.insights__card:last-child {
    margin-top: 60px;
}

/* ---------- Media / parallax art ---------- */

.insights__media {
    position: relative;
    display: block;
    /* aspect-ratio: 4 / 3; */
    border-radius: 18px;
    overflow: hidden;
    /* background: var(--surface); */
    /* border: 1px solid var(--border); */
}

.insights__media img {
    width: 100%;
    height: 418px;
    object-fit: cover;
}

.insights__media-art {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 136%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.insights__media-art--social {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.14), transparent 55%),
    var(--gradient-brand);
}

.insights__media-art--hardware {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(150deg, #23283a 0%, #14161f 55%, #0a0b12 100%);
}

.insights__media-icon {
  opacity: 0.92;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.insights__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* ---------- Body ---------- */

.insights__body {
  padding: 1.25rem 0.15rem 0;
}

.insights__meta {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.insights__title {
    margin-bottom: 23px;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    color: #FFF;
    font-size: 24px;
    font-weight: 500;
    line-height: 37px;
}

.insights__title a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.25s var(--ease-out), background-size 0.35s var(--ease-out);
}

.insights__title a:hover {
  color: rgb(160, 235, 225);
  background-size: 100% 1px;
}

.insights__text {
    margin-bottom: 23px;
    font-family: var(--font-third);
    color: #929292;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: -0.32px;
}

.insights__link {
    display: inline-flex;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text);
    text-decoration: underline;
    font-size: 15px;
    font-weight: normal;
    line-height: 40px;
    letter-spacing: -0.15px;
    transition: .5s;
}

.insights__link:hover {
  color: #39b54b;
  /* text-shadow: 0px 3px 5px #39b54b; */
  text-decoration: unset;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .insights__grid {
    grid-template-columns: 1fr;
  }

  .insights__header {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .insights__heading {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .insights__nav {
    width: 44px;
    height: 44px;
  }
}

/* ---------- Reduced motion ---------- */

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

  .insights__card:hover {
    transform: none;
  }

  .insights__media-art {
    top: 0;
    height: 100%;
  }

  .insights__title a {
    transition: color 0.2s var(--ease-out);
  }
}
