/* Only the active opening dialog can lock the document. */
html:has(> body.orbit-site) { scroll-behavior: auto; }

html.orbit-entry-open:not(:has(#vicel-entry:modal)) {
  overflow: visible;
  overscroll-behavior: auto;
}

html.orbit-entry-open:not(:has(#vicel-entry:modal)) body.orbit-site {
  position: static;
  inset: auto;
  overflow-x: clip;
  overflow-y: visible;
}

html.orbit-entry-open:not(:has(#vicel-entry:modal)) body.orbit-site >
  :is(.orbit-nav, .orbit-home, #vicel-footer, .r14-benji-shell, .orbit-wa) {
  visibility: visible;
}

body.orbit-site :is(.orbit-home, .vp-main, .r94-main) {
  min-width: 0;
  touch-action: auto;
}

html:not(:has(#vicel-entry:modal)) > body.orbit-site {
  overflow-x: clip !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
}

@media (max-width: 1080px), (pointer: coarse) {
  body.orbit-site .orbit-nav {
    background: #0b1425;
    backdrop-filter: none;
  }

  body.orbit-site .orbit-links {
    overscroll-behavior-y: auto;
    touch-action: pan-y pinch-zoom;
  }

  body.orbit-site :is(.vp-gallery-track, .vicel-area-swipe) {
    overscroll-behavior-block: auto;
    touch-action: pan-x pan-y pinch-zoom;
  }

  body.orbit-site .vicel-area-swipe { touch-action: pan-y pinch-zoom; }

  body.orbit-site #main :is(.vp-hero, .vp-card, .vp-premium-art, .vp-art-panel, .vp-gallery-art) {
    overflow: clip !important;
  }

  body.orbit-site #benjiPublicMessages { overscroll-behavior-block: auto; }

  body.orbit-site :is(.vicel-scene, .r94-section):not(.vicel-scene-active) {
    animation-play-state: paused;
  }
}

/* Illustrated reading surfaces. Keep tint beneath the foreground text. */
body.orbit-site.orbit-inner[data-cinema-image] {
  background: #0a1628 !important;
}

body.orbit-site #main.r94-main {
  width: min(calc(100% - clamp(24px, 5vw, 88px)), 78rem);
  margin-inline: auto;
  padding-inline: 0;
}

body.orbit-site #main.r94-main > .r94-hero,
body.orbit-site #main.r94-main > .r94-section,
html body.orbit-site[data-vicel-public-release] #main .vi-inception,
html body.orbit-site[data-vicel-public-release] #main .vi-member-details {
  --reading-tint: linear-gradient(113deg, #08152af7, #101e34ed 52%, #0c1932c7);
  background: var(--reading-tint), var(--reading-art, var(--cinema-image, none)) center / cover no-repeat, #0d1b32 !important;
  border: 1px solid #6c8dad59;
  border-radius: clamp(14px, 2vw, 24px);
  padding: clamp(22px, 4vw, 52px) !important;
  color: #eaf3ff;
}

body.orbit-site #main.r94-main > .r94-hero,
body.orbit-site #main.r94-main > .r94-section {
  margin-block: 0 clamp(16px, 3vw, 34px);
}

body.orbit-site #main.r94-main > .r94-hero {
  --reading-art: url("/assets/vicel-scene-cover-metodo-iacv-20261128.webp");
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(280px, 32vw, 407px);
  align-content: center;
}

body.orbit-site #main.r94-main > .r94-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.65rem);
  max-width: 18ch;
}

body.orbit-site #main.r94-main > .r94-hero .r94-lead {
  max-width: 53ch;
}

body.orbit-site #main.r94-main > .r94-section :is(h2,h3,b),
body.orbit-site #main :is(.vi-inception,.vi-member-details) :is(h1,h2,h3,b,strong) {
  color: #f0f7ff !important;
}

body.orbit-site #main.r94-main :is(.r94-lead,.r94-section p:not(.r94-eyebrow)),
body.orbit-site #main :is(.vi-inception,.vi-member-details) p {
  color: #c9daef !important;
}

body.orbit-site #main.r94-main .r94-eyebrow,
body.orbit-site #main.r94-main .r94-process li::before {
  color: #9ce8ff !important;
}

body.orbit-site #main.r94-main .r94-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

body.orbit-site #main.r94-main .r94-process > li,
body.orbit-site #main .vi-member-details .vi-member-note {
  background: #111f37e6;
  border: 1px solid #7192b65c;
  border-radius: 12px;
  padding: clamp(14px, 2vw, 24px);
}

body.orbit-site #main.r94-main .r94-process li :is(b,p) {
  margin-block: 5px 0;
  line-height: 1.53;
}

body.orbit-site #main.r94-main .r94-note {
  background: #101f36f0;
  border: 1px solid #7192b65c;
  border-inline-start: 3px solid #8ddaf3;
  border-radius: 10px;
}

body.orbit-site #main .vi-inception {
  --reading-art: url("/assets/vicel-scene-cover-nvidia-inception-20261128.webp");
}

body.orbit-site #main .vi-member-details {
  --reading-art: url("/assets/vicel-scene-method-20261128.webp");
}

body.orbit-site #main .vi-inception figure {
  min-width: 0;
  background: #0b1528;
  margin: 0;
  overflow: hidden;
  border: 1px solid #7192b65c;
  border-radius: 12px;
}

body.orbit-site #main .vi-inception figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.orbit-site #main .vi-inception .vi-more,
body.orbit-site #main .vi-inception .vi-member { color: #a4e8ff; }

@media (max-width: 580px) {
  body.orbit-site #main.r94-main .r94-process { grid-template-columns: minmax(0, 1fr); }
}
