/* NOVARIS CLEAN — former image on sliding door leaves, black behind them. */
.nc-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .75s ease, visibility 0s linear .75s;
}

.nc-intro.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .35s ease, visibility 0s;
}

.nc-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.nc-door-pending .nc-intro.is-done {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

body.nc-door-playing {
  overflow: hidden;
}

.nc-intro-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.nc-door-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.nc-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(5,9,6,.94), rgba(9,15,11,.48)), url('/assets/novaris-intro-premium-fast-v1.webp') center / cover no-repeat;
  box-shadow: inset 0 0 46px rgba(0,0,0,.60), inset 0 0 0 1px rgba(207,172,93,.24);
  transition: transform 1.8s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}

.nc-door::before {
  content: "";
  position: absolute;
  inset: clamp(28px, 5.5vh, 68px) clamp(20px, 3.5vw, 58px);
  border: 1px solid rgba(211,177,102,.24);
  box-shadow: inset 0 0 0 5px rgba(4,7,5,.42), inset 0 0 0 6px rgba(211,177,102,.10);
}

.nc-door::after {
  content: "";
  position: absolute;
  top: 43%;
  width: 4px;
  height: 14%;
  border-radius: 4px;
  background: linear-gradient(90deg, #826535, #f1d38c 45%, #9d7c41);
  box-shadow: 0 0 18px rgba(221,184,105,.3), 0 0 0 5px rgba(216,181,104,.07);
}

.nc-door-left {
  left: 0;
  border-right: 1px solid rgba(232,199,123,.72);
}

.nc-door-left::after {
  right: clamp(20px, 3.5vw, 54px);
}

.nc-door-right {
  right: 0;
  border-left: 1px solid rgba(232,199,123,.72);
}

.nc-door-right::after {
  left: clamp(20px, 3.5vw, 54px);
}

.nc-intro.is-open .nc-door-left {
  transform: translateX(-100%);
}

.nc-intro.is-open .nc-door-right {
  transform: translateX(100%);
}

.nc-intro-center {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  opacity: 1;
  transition: opacity .45s ease;
}

.nc-intro-center img {
  display: block;
  width: min(280px, 55vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
}

.nc-intro-center span {
  margin-top: 16px;
  color: #d6ad57;
  font: 500 10px/1.5 'DM Mono', monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nc-intro.is-open .nc-intro-center {
  opacity: 0;
}

.nc-intro-skip {
  position: absolute;
  z-index: 4;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(224,191,113,.68);
  background: rgba(4,7,5,.55);
  color: #f0d28b;
  font: 500 9px/1.2 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nc-intro-skip:hover,
.nc-intro-skip:focus-visible {
  background: #d8b467;
  color: #0a0c09;
  outline: 2px solid #f1d38c;
  outline-offset: 3px;
}

.nc-intro-skip span {
  font: 14px/1 Arial, sans-serif;
}

@media (max-width: 700px) {
  .nc-door { width: 51%; }
  .nc-door::before {
    inset: 24px 14px;
    box-shadow: inset 0 0 0 3px rgba(4,7,5,.42), inset 0 0 0 4px rgba(211,177,102,.10);
  }
  .nc-door::after {
    width: 3px;
    height: 12%;
    top: 44%;
  }
  .nc-door-left::after { right: 17px; }
  .nc-door-right::after { left: 17px; }
  .nc-intro-center img { width: min(190px, 52vw); }
  .nc-intro-center span { font-size: 8px; letter-spacing: .18em; }
  .nc-intro-skip {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    padding: 10px 12px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-intro,
  .nc-door,
  .nc-intro-center {
    transition-duration: .01ms !important;
  }
}
