/* NATALIA / activation cards v2: additive visual window only. Does NOT style grid, buttons, text. */
.nx-window { position:absolute; inset:0; overflow:hidden; border-radius:inherit; pointer-events:none; isolation:isolate; z-index:0; background:#eee8e4; }
.nx-window__scene, .nx-window__accent { position:absolute; inset:-3%; width:106%; height:106%; object-fit:cover; display:block; pointer-events:none; transform:translate3d(0,0,0); transition: transform 550ms cubic-bezier(.18,.65,.28,1); }
.nx-window__accent { opacity:.72; mix-blend-mode:screen; }
/* To preserve original text/buttons the integration must position their existing content wrapper above the window. */
.nx-window__wash { position:absolute; inset:0; z-index:1; pointer-events:none; }
.nx-window__wash--lead { background:linear-gradient(90deg,rgba(247,242,244,.94) 0%,rgba(247,242,244,.80) 30%,rgba(247,242,244,.10) 74%,transparent 100%); }
@media (prefers-reduced-motion:reduce) { .nx-window__scene,.nx-window__accent { transition:none!important; transform:none!important; } }

/* Exact existing card geometry is preserved by restricting all overrides to v2 artwork. */
.activation-card.nx-card .card-cover {
  overflow: hidden;
  transform: none !important; /* no double movement from the legacy hover cover effect */
  transition: none !important;
  will-change: auto;
}
.activation-card.nx-card.minor .card-cover { position: relative; }
.activation-card.nx-card.featured .card-cover::after { content:none !important; display:none !important; }
.activation-card.nx-card.featured .card-content { z-index:2; }
.activation-card.nx-card .nx-window { background:transparent; }
.activation-card.nx-card .nx-window__scene { object-position:center center; }
.activation-card.nx-card.featured .nx-window__scene { object-position:60% center; }
.activation-card.nx-card .nx-window__accent { opacity:.65; }
@media (max-width:720px) {
  /* Existing mobile layout places text BELOW the visual; no wash is needed. */
  .activation-card.nx-card.featured .nx-window__wash--lead { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .activation-card.nx-card .nx-window__scene,
  .activation-card.nx-card .nx-window__accent {
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
  }
}

/* v0.3.5 - opaque clipped scenes: removes accidental right-hand strips
   from the old cover behind the floating image. Fallback is restored only if
   WebP cannot load. No image source files are modified. */
.activation-card.nx-card .card-cover {background-image:none!important;background-color:#ebe5e4;}
.activation-card.nx-card .card-cover.nx-fallback {background-image:var(--nx-fallback-cover)!important;}
.activation-card.nx-card .card-cover.nx-fallback .nx-window {display:none;}
.activation-card.nx-card .nx-window {inset:0;overflow:hidden;border-radius:0; background:#eae3e4;}
.activation-card.nx-card .nx-window__scene {inset:-7%;width:114%;height:114%;max-width:none;}
.activation-card.nx-card.featured .nx-window__scene {inset:-4%;width:108%;height:108%;}
.activation-card.nx-card .nx-window__accent {inset:-7%;width:114%;height:114%;max-width:none;}

/* v0.3.6: mobile composition correction — show the doorway and the foot
   of the stones without changing desktop cards, text or scene files. */
@media (max-width:720px) {
  .activation-card.nx-card.featured .card-cover,
  .activation-card.nx-card.minor .card-cover {
    flex:0 0 clamp(235px, 75vw, 305px);
    height:clamp(235px, 75vw, 305px);
  }
  .activation-card.nx-card .nx-window__scene,
  .activation-card.nx-card .nx-window__accent {
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    transform:none;
    transition:none;
  }
  .activation-card.nx-card .nx-window__scene {object-fit:cover;object-position:center 50%;}
  /* High arch must show the top of its opening. */
  .activation-card.nx-card[data-scene="arch"] .nx-window__scene {object-position:center 40%;}
  /* Bottom alignment reveals the lower stones rather than their middles. */
  .activation-card.nx-card[data-scene="stones"] .nx-window__scene {object-position:center 100%;}
}

/* v0.3.7: DESKTOP ONLY -- restore full doorway arch composition.
   Isolated art direction: no changes to mobile rules, card geometry, grid,
   parallax limits, textual area, or the other three cards. */
@media (min-width:721px) {
  .activation-card.nx-card[data-scene="arch"] .nx-window__scene {
    inset:-1%; width:102%; height:102%;
    object-fit:cover;
    object-position:center 18%;
  }
  .activation-card.nx-card[data-scene="arch"] .nx-window__accent {
    inset:-1%; width:102%; height:102%;
  }
}
/* Desktop/laptop visual window: show the complete high doorway instead of
   cutting away its upper curve. Feather the minimal square-image side gutters
   into the SAME original scene; no segmented objects, extra files or overlays. */
@media (min-width:721px) {
  .activation-card.nx-card[data-scene="arch"] .nx-window::before {
    content:"";
    position:absolute;
    inset:-10%;
    background:url('02-tebe-mozhno.webp') center center / cover no-repeat;
    filter:blur(14px);
    opacity:.85;
  }
  .activation-card.nx-card[data-scene="arch"] .nx-window__scene {
    inset:0;
    width:100%; height:100%;
    object-fit:contain;
    object-position:center center;
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-image:linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
  }
}

/* v0.3.8: keep 4px of safe overdraw for tiny touch parallax.
   Frame geometry, crop focal points and desktop art remain unchanged. */
@media (max-width:720px) and (prefers-reduced-motion:no-preference) {
 .activation-card.nx-card .nx-window__scene,
 .activation-card.nx-card .nx-window__accent {
    inset:-4px;
    width:calc(100% + 8px);
    height:calc(100% + 8px);
    transition:none;
 }
}
@media (prefers-reduced-motion:reduce) {
 .activation-card.nx-card .nx-window__scene,
 .activation-card.nx-card .nx-window__accent {transform:none!important;transition:none!important;}
}
