/* V121 — two editorial carousel stories for Agenz Insights. */
.visual-insights {
  position: relative;
  padding: 112px 5vw;
  overflow: clip;
  color: #101b35;
  background:
    radial-gradient(circle at 88% 6%, rgba(36, 112, 255, .15), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(81, 59, 205, .1), transparent 30%),
    #f2f6fd;
}

.visual-insights::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 57, 112, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 57, 112, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.visual-insights-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin-inline: auto;
}

.visual-insights-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}

.visual-insights-kicker {
  margin: 0 0 14px;
  color: #246cf4;
  font: 800 .65rem/1.4 Manrope, sans-serif;
  letter-spacing: .15em;
}

.visual-insights-head h2 {
  max-width: 870px;
  margin: 0;
  color: #101b35;
  font-size: clamp(3rem, 6.3vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.075em;
}

.visual-insights-head h2 span {
  color: transparent;
  background: linear-gradient(105deg, #5d42d6, #286df4 60%, #19acd4);
  background-clip: text;
  -webkit-background-clip: text;
}

.visual-insights-intro {
  max-width: 470px;
  margin: 0 0 5px;
  color: #65718a;
  font-size: clamp(.95rem, 1.45vw, 1.12rem);
  line-height: 1.75;
}

.visual-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.visual-insight-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 35, 73, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 65px rgba(26, 46, 92, .09);
  transition: transform .38s cubic-bezier(.2, .75, .2, 1), box-shadow .38s ease;
}

.visual-insight-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 85px rgba(26, 46, 92, .16);
}

.visual-insight-cover {
  position: relative;
  aspect-ratio: 4 / 4.35;
  overflow: hidden;
  background: #dfe7f4;
}

.visual-insight-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 11, 24, .28));
}

.visual-insight-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
}

.visual-insight-card:hover .visual-insight-cover img {
  transform: scale(1.025);
}

.visual-insight-slide-count {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(4, 13, 27, .68);
  backdrop-filter: blur(12px);
  font: 800 .62rem/1 Manrope, sans-serif;
  letter-spacing: .09em;
}

.visual-insight-copy {
  padding: 28px 30px 30px;
}

.visual-insight-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: #246cf4;
  font: 800 .59rem/1.4 Manrope, sans-serif;
  letter-spacing: .11em;
}

.visual-insight-meta span:last-child {
  color: #7c879d;
}

.visual-insight-copy h3 {
  margin: 0;
  color: #101b35;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.visual-insight-copy p {
  min-height: 3.4em;
  margin: 15px 0 24px;
  color: #68748b;
  font-size: .94rem;
  line-height: 1.7;
}

.visual-insight-open {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(105deg, #161f38, #213768 55%, #286df4);
  cursor: pointer;
  font: 800 .69rem/1 Manrope, sans-serif;
  letter-spacing: .08em;
}

.visual-insight-open i {
  font-style: normal;
  font-size: 1.05rem;
  transition: transform .25s ease;
}

.visual-insight-open:hover i,
.visual-insight-open:focus-visible i {
  transform: translateX(4px);
}

.insight-carousel-dialog {
  width: min(1060px, calc(100vw - 28px));
  max-width: none;
  height: min(930px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #f7f9ff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #07101d;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .55);
}

.insight-carousel-dialog::backdrop {
  background: rgba(3, 8, 16, .82);
  backdrop-filter: blur(12px);
}

.insight-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.insight-dialog-head {
  min-height: 74px;
  padding: 14px 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.insight-dialog-title {
  min-width: 0;
}

.insight-dialog-title small {
  display: block;
  margin-bottom: 4px;
  color: #78a9ff;
  font: 800 .55rem/1.2 Manrope, sans-serif;
  letter-spacing: .12em;
}

.insight-dialog-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(.92rem, 2vw, 1.18rem);
}

.insight-dialog-close {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-size: 1.2rem;
}

.insight-dialog-stage {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 14px;
  align-items: center;
}

.insight-dialog-image-wrap {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(77, 116, 190, .16), transparent 42%),
    #030812;
  touch-action: pan-y;
}

.insight-dialog-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.insight-dialog-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background .22s ease, transform .22s ease;
}

.insight-dialog-arrow:hover,
.insight-dialog-arrow:focus-visible {
  background: #286df4;
  transform: scale(1.05);
}

.insight-dialog-foot {
  padding: 14px 18px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.insight-dialog-counter,
.insight-dialog-hint {
  color: rgba(255, 255, 255, .66);
  font: 800 .57rem/1.3 Manrope, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

.insight-dialog-thumbs {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.insight-dialog-thumbs::-webkit-scrollbar {
  display: none;
}

.insight-dialog-thumb {
  width: 46px;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #172033;
  cursor: pointer;
  opacity: .54;
}

.insight-dialog-thumb[aria-current="true"] {
  border-color: #5d91ff;
  opacity: 1;
}

.insight-dialog-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.insight-dialog-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .visual-insights-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .visual-insights-grid {
    grid-template-columns: 1fr;
  }

  .visual-insight-cover {
    aspect-ratio: 4 / 4.7;
  }

  .visual-insight-card {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .visual-insights {
    padding: 82px 16px;
  }

  .visual-insights-head {
    margin-bottom: 30px;
  }

  .visual-insights-head h2 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .visual-insight-card {
    border-radius: 20px;
  }

  .visual-insight-copy {
    padding: 23px 20px 22px;
  }

  .visual-insight-copy p {
    min-height: 0;
  }

  .insight-carousel-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .insight-dialog-head {
    min-height: 66px;
    padding: 10px 12px 10px 16px;
  }

  .insight-dialog-stage {
    padding: 10px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .insight-dialog-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .insight-dialog-image-wrap {
    border-radius: 9px;
  }

  .insight-dialog-foot {
    padding: 10px 12px 14px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .insight-dialog-hint {
    display: none;
  }

  .insight-dialog-thumb {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-insight-card,
  .visual-insight-cover img,
  .visual-insight-open i,
  .insight-dialog-arrow {
    transition: none;
  }
}
