/* ===== Homepage insights / blog strip (Framer “Newest trends” layout) ===== */
.news-section.insights-framer {
  --if-font: var(--font-sans, 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --if-text: rgb(10, 10, 10);
  --if-muted: rgba(10, 10, 10, 0.6);
  --if-radius-card: 18px;
  --if-radius-thumb: 12px;
  --if-max: min(100vw - 2.5rem, 1520px);
  --if-pad: clamp(1.25rem, 4vw, 2.25rem);

  background: #f2f2f2;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  font-family: var(--if-font);
  border-radius: 2rem;
  position: relative;
  z-index: 8;
  margin: -2rem 0;
}

.insights-framer .insights-container {
  max-width: var(--if-max);
  margin: 0 auto;
  padding: 0 var(--if-pad);
  box-sizing: border-box;
}

/* Top: headline + description row + See all */
.insights-framer .news-headline {
  text-align: left;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.insights-framer__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--if-text);
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 22ch;
}

.insights-framer__title-strong {
  font-weight: 600;
  color: var(--if-text);
}

.insights-framer__title-soft {
  font-weight: 600;
  color: var(--if-muted);
}

.insights-framer__subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.insights-framer__desc {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--if-text);
  opacity: 0.85;
}

.insights-framer__see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.9rem 1.65rem;
  background: var(--if-text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.insights-framer__see-all:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Three columns: two posts + promo */
.insights-framer__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: stretch;
}

/* Mini post cards */
.insights-framer .insights-framer__mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: var(--if-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.insights-framer .insights-framer__mini:hover,
.insights-framer .insights-framer__mini:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.insights-framer__mini-top {
  position: relative;
  padding: 10px 10px 0;
  isolation: isolate;
}

.insights-framer__mini-thumb {
  position: relative;
  border-radius: var(--if-radius-thumb);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}

.insights-framer__mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.insights-framer .insights-framer__mini:hover .insights-framer__mini-thumb img {
  transform: scale(1.04);
}

/* Plus pill (Framer) */
.insights-framer__plus {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(10, 10, 10);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.insights-framer__plus span {
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.insights-framer__plus span:first-child {
  width: 14px;
  height: 2px;
}

.insights-framer__plus span:last-child {
  width: 2px;
  height: 14px;
}

.insights-framer__mini-body {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.25rem) clamp(1.15rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.insights-framer__mini-body time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: rgb(9, 9, 9);
  opacity: 0.6;
}

.insights-framer__mini-title {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--if-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.insights-framer__mini-excerpt {
  margin: 0;
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  line-height: 1.45;
  color: var(--if-text);
  opacity: 0.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* Promo / hero card */
.insights-framer .insights-framer__promo {
  position: relative;
  display: block;
  min-height: clamp(280px, 42vw, 420px);
  border-radius: var(--if-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.insights-framer .insights-framer__promo:hover,
.insights-framer .insights-framer__promo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12);
}

.insights-framer__promo-bg {
  position: absolute;
  inset: 0;
}

.insights-framer__promo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.insights-framer .insights-framer__promo:hover .insights-framer__promo-bg img {
  transform: scale(1.03);
}

.insights-framer__promo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}

.insights-framer__promo-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem) 0;
}

.insights-framer__promo-brand {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.insights-framer__plus--light {
  position: relative;
  right: auto;
  bottom: auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.insights-framer__plus--light span {
  background: rgb(10, 10, 10);
}

.insights-framer__promo-copy {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 2vw, 1.35rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  text-align: right;
  pointer-events: none;
}

.insights-framer__promo-copy p {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .insights-framer__cards {
    grid-template-columns: 1fr 1fr;
  }

  .insights-framer .insights-framer__promo {
    grid-column: 1 / -1;
    min-height: clamp(260px, 55vw, 360px);
  }
}

@media (max-width: 640px) {
  .insights-framer__cards {
    grid-template-columns: 1fr;
  }

  .insights-framer .insights-framer__promo {
    grid-column: auto;
  }

  .insights-framer .news-headline {
    text-align: center;
  }

  .insights-framer__title {
    margin-left: auto;
    margin-right: auto;
  }

  .insights-framer__subrow {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-framer__see-all {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insights-framer .insights-framer__mini,
  .insights-framer .insights-framer__promo,
  .insights-framer__mini-thumb img,
  .insights-framer__promo-bg img {
    transition: none;
  }

  .insights-framer .insights-framer__mini:hover,
  .insights-framer .insights-framer__promo:hover {
    transform: none;
  }

  .insights-framer .insights-framer__mini:hover .insights-framer__mini-thumb img,
  .insights-framer .insights-framer__promo:hover .insights-framer__promo-bg img {
    transform: none;
  }

  .news-reveal-prep {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Scroll-in reveal — same as former news-section (news-reveal.js) */
.news-reveal-prep {
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  --news-ease: var(--ease-smooth-opacity, cubic-bezier(0.33, 1, 0.68, 1));
  --news-ease-soft: var(--ease-smooth-transform, cubic-bezier(0.22, 1, 0.42, 1));
  will-change: opacity, transform;
}

html.news-reveal-init .news-reveal-prep:not(.news-reveal-item--visible) {
  opacity: 0;
  transform: translate3d(0, 0.85rem, 0);
  transition:
    opacity 0.74s var(--news-ease),
    transform 0.86s var(--news-ease-soft);
  transition-delay: 0s;
}

html.news-reveal-init .news-reveal-item--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.84s var(--news-ease),
    transform 0.96s var(--news-ease-soft);
  transition-delay: 0s;
  will-change: auto;
}
