/* Nordpaa Motion for Divi - Base Styles */
.np-motion-relative { position: relative; }
.np-motion-overflow-hidden { overflow: hidden; }

/* Ambient overlay */
.np-ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
}

/* Marquee */
.np-marquee { position: relative; overflow: hidden; }
.np-marquee .np-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  align-items: center;
}
.np-marquee .np-marquee-item { flex: 0 0 auto; font-weight: 700; letter-spacing: 0.02em; opacity: 0.9; }
.np-marquee-fade-left, .np-marquee-fade-right { position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none; }
.np-marquee-fade-left{ left:0; } .np-marquee-fade-right{ right:0; }

/* Stacked cards */
.np-stacked-scene { position: relative; }

/* Trustkey-style split layout (left intro + right stacked cards) */
.np-stacked-scene .np-stacked-grid {
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: start;
  padding: 72px var(--np-side-pad, 20px);
  box-sizing: border-box;
}
.np-stacked-scene .np-scene-intro{
  max-width: 520px;
}
.np-stacked-scene .np-intro-title{
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.np-stacked-scene .np-intro-body{
  margin-top: 14px;
  opacity: 0.78;
  font-size: 16px;
  line-height: 1.55;
}
.np-stacked-scene .np-scene-stage{ position: relative; height: 100%; }

.np-stacked-scene.np-layout-split .np-card{
  left: 0;
  right: 0;
  transform: none;
  margin-left: auto;
  width: min(var(--np-card-maxw, 560px), 100%);
}

/* Card layout: illustration on left/right + content */
.np-stacked-scene .np-card-inner{
  display: flex;
  gap: 24px;
  align-items: center;
}
.np-stacked-scene.np-thumb-right .np-card-inner{ flex-direction: row-reverse; }
.np-stacked-scene .np-card-media{
  flex: 0 0 auto;
  width: var(--np-thumb-size, 96px);
  height: var(--np-thumb-size, 96px);
  border-radius: var(--np-thumb-radius, 18px);
  margin: 0;
}
.np-stacked-scene .np-card-media img{ object-fit: cover; }
.np-stacked-scene .np-card-content{ flex: 1 1 auto; min-width: 0; }

@media (max-width: 980px){
  .np-stacked-scene .np-stacked-grid{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px var(--np-side-pad, 20px);
  }
  .np-stacked-scene .np-scene-intro{ max-width: 680px; }
  .np-stacked-scene.np-layout-split .np-card{ width: 100%; }
}
.np-stacked-scene .np-card {
  border-radius: 18px;
  overflow: hidden;
  position: absolute;
  will-change: transform, opacity;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  /* Centered stack (Framer-like) */
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--np-card-maxw, 860px), calc(100% - (var(--np-card-pad, 20px) * 2)));
}
.np-stacked-scene .np-card-inner{ padding: 32px; }
.np-stacked-scene .np-card-title{ font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.np-stacked-scene .np-card-body{ opacity: 0.86; line-height: 1.55; }

/* Card thumbnail / illustration */
.np-card-media{
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.np-card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Stacked scene defaults (v0.1.7) */
.np-stacked-scene{ z-index: 5; }

/* ------------------------------ */
/* NP Task Panel (Framer-style)   */
/* ------------------------------ */

.np-task-panel{ position: relative; max-width: 100%; }

.np-task-panel__shell{
  position: relative;
  border-radius: var(--np-panel-radius, 26px);
  padding: 18px;
  background: rgba(255,255,255,var(--np-panel-bg-alpha, 0.03));
  border: 1px solid rgba(255,255,255,var(--np-panel-border-alpha, 0.10));
  backdrop-filter: blur(var(--np-panel-blur, 12px));
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
}

/* soft vignette / mask */
.np-task-panel__shell:before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 80% at 50% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 60%);
  pointer-events: none;
}

.np-task-panel__inner{
  position: relative;
  border-radius: calc(var(--np-panel-radius, 26px) - 10px);
  padding: 12px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.08);
}

.np-task-panel__tabs{
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.np-task-panel__tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.np-task-panel__tab.is-active{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
}

.np-task-panel__list{ display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.np-task-panel__item{
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.np-task-panel__icon{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.np-task-panel__icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.np-task-panel__text{ min-width: 0; }
.np-task-panel__title{ font-size: 13px; font-weight: 700; margin: 0; color: rgba(255,255,255,0.92); }
.np-task-panel__meta{ font-size: 11px; margin: 2px 0 0; color: rgba(255,255,255,0.55); }

.np-task-panel__status{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.70);
  opacity: 0.95;
}

.np-task-panel__item.is-hidden{ display: none; }

/* Task list loop animation (Framer-like) */
.np-task-panel .np-tp-viewport{
  /* Remaining height after tabs + spacing */
  height: calc(var(--np-tp-h, 300px) - 64px);
  overflow: hidden;
  position: relative;
  /* soft fade top/bottom */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 14%,
    rgba(0,0,0,1) 86%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 14%,
    rgba(0,0,0,1) 86%,
    rgba(0,0,0,0) 100%
  );
}

.np-task-panel .np-tp-list{
  will-change: transform;
}

@media (prefers-reduced-motion: reduce){
  .np-task-panel .np-tp-list{ transform: none !important; }
}

/* Internal config nodes (JS reads these) */
.np-motion-config{display:none!important}


/* -------------------------------------------------------------------------
   NP Pulse Flow (integration card)
---------------------------------------------------------------------------*/
.np-pulse-flow { width: 100%; }

.np-pulse-flow__card {
  position: relative;
  border-radius: 20px;
  padding: 28px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

.np-pulse-flow__card:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 10%, rgba(255,255,255,0.06), rgba(255,255,255,0.00) 55%);
  pointer-events: none;
}

.np-pulse-flow__frame {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.10);
}

.np-pulse-flow__layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.np-pulse-flow__side {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.np-pulse-flow__box {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.np-pulse-flow__box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}

.np-pulse-flow__label {
  font-size: 12px;
  line-height: 1;
  color: rgba(255,255,255,0.70);
}

.np-pulse-flow__targets {
  position: relative;
  min-height: 92px;
  display: grid;
  align-items: center;
}

.np-pulse-flow__target {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.np-pulse-flow__target.is-active { pointer-events: auto; }

.np-pulse-flow__targetTitle {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.np-pulse-flow__targetDesc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.np-pulse-flow__lines {
  position: relative;
  height: 2px;
  margin: 8px 0;
}

.np-pulse-flow__line {
  position: absolute;
  left: 150px;
  right: 24px;
  top: 0;
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
}

.np-pulse-flow__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 54px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(150,90,255,0), rgba(150,90,255,0.95), rgba(150,90,255,0));
  filter: drop-shadow(0 0 10px rgba(150,90,255,0.65));
}

.np-pulse-flow__pulseDot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(160,110,255,0.95);
  box-shadow: 0 0 18px rgba(160,110,255,0.85);
}

@media (max-width: 767px) {
  .np-pulse-flow__layout { grid-template-columns: 1fr; }
  .np-pulse-flow__line { left: 24px; }
  .np-pulse-flow__target { grid-template-columns: 74px 1fr; }
}
