/* NOVA stage: hero slot, dock, captions, presenters. */
#nova-slot { position: relative; width: 300px; height: 380px; margin: 0 auto; }
#nova-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 5; padding-bottom: 4px; }
#nova-host { position: relative; width: 300px; height: 300px; flex: none; cursor: pointer; border-radius: 50%; outline-offset: 4px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#nova-host::before { content: ""; position: absolute; inset: 12% 10% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125,255,179,0.10), rgba(255,92,28,0.08) 60%, transparent); pointer-events: none; }
.nv-boot, .nv-p { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s ease; }
.nv-boot { object-fit: contain; }
.nv-p { opacity: 0; display: block; }
.nv-ready .nv-p { opacity: 1; }
.nv-ready .nv-boot { opacity: 0; }
.nv-inner { position: absolute; inset: 0; }
.nv-poster img, .nv-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.nv-video video.nv-noalpha { mix-blend-mode: lighten; }
.nv-overlay { position: absolute; border-radius: 50%; }
.nv-face .nv-bezel { position: absolute; inset: 18%; border-radius: 50%; padding: 6%;
  background: radial-gradient(circle at 35% 30%, #5b6673, #262c35 55%, #12161c); box-shadow: 0 0 0 3px #3a434f, 0 10px 30px rgba(0,0,0,.6), inset 0 0 12px rgba(0,0,0,.8); }
.nv-face .nv-screen { width: 100%; height: 100%; border-radius: 50%; display: block; background: #020608; box-shadow: 0 0 18px rgba(80,220,255,.25); }
.nv-bob { animation: nv-bob 4s ease-in-out infinite; }
@keyframes nv-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }

.nv-cap { width: min(100%, 340px); min-height: 0; text-align: center; pointer-events: none; }
#nova-meta { font: 500 0.62rem/1.3 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--nova); opacity: .75; min-height: 1em; }
#nova-caption { font: 500 1rem/1.35 "IBM Plex Mono", monospace; color: #e6fff1; text-shadow: 0 2px 8px #000; margin-top: 2px; }
.nv-controls { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; z-index: 3; }
.nv-controls button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: rgba(16,19,26,.85); color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.nv-controls button:hover { color: var(--text); border-color: var(--amber-dim); }
#nova-hear, #nova-chip { font: 800 0.82rem "Saira Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 8px 14px; border: 1px solid var(--nova-dim); background: rgba(26,61,44,.6); color: var(--nova); }
#nova-hear:hover, #nova-chip:hover { background: rgba(26,61,44,.9); }
#nova-chip { position: absolute; top: 250px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 4; border-color: var(--amber-dim); background: rgba(40,28,6,.9); color: var(--amber); animation: nv-pulse 1.6s ease-in-out infinite; }
@keyframes nv-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,92,28,.45); } 50% { box-shadow: 0 0 0 8px rgba(255,92,28,0); } }
.nv-has-chip #nova-hear { visibility: hidden; }

/* Dock: the same stage, fixed in the corner once the hero has scrolled away */
body.nova-docked #nova-stage { position: fixed; inset: auto 16px 16px auto; width: 200px; height: auto; z-index: 60; animation: nv-dockin .35s ease both; }
body.nova-docked #nova-host { width: 200px; height: 200px; }
body.nova-docked #nova-hear { display: none; }
body.nova-docked #nova-chip { top: auto; bottom: 100%; margin-bottom: 4px; }
body.nova-docked .nv-cap { position: absolute; right: 0; bottom: calc(100% + 40px); width: min(320px, 72vw); text-align: right; min-height: 0; }
body.nova-docked.nv-cap-empty .nv-cap { display: none; }
body.nova-docked #nova-caption:not(:empty) { display: inline-block; background: rgba(10,11,13,.92); border: 1px solid var(--nova-dim); padding: 8px 10px; text-align: left; }
@keyframes nv-dockin { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }

body.nova-hidden #nova-stage { display: none; }
#nova-show { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; font: 800 .78rem "Saira Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--nova-dim); background: rgba(16,19,26,.92); color: var(--nova); cursor: pointer; }
body.nova-hidden #nova-show { display: block; }

@media (max-width: 819px) {
  #nova-slot { width: 220px; height: 300px; }
  #nova-host { width: 210px; height: 210px; }
  #nova-chip { top: 172px; }
  #nova-hear { flex: none; }
  body.nova-docked #nova-stage { width: 104px; inset: auto 10px 10px auto; }
  body.nova-docked #nova-host { width: 104px; height: 104px; }
  body.nova-docked .nv-controls { transform: scale(.8); transform-origin: top right; top: -6px; right: -6px; }
  body.nova-docked .nv-cap { bottom: calc(100% + 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-bob, #nova-chip, body.nova-docked #nova-stage { animation: none; }
  .nv-boot, .nv-p { transition: none; }
}
/* While she talks, the caption takes the place of the button (it would overlap on small screens). */
.nv-talking #nova-hear { visibility: hidden; }
