html {
  height: 100%;
}

html body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* TWebForm applies this class to the page body; keep the letterbox black. */
.novidact-home {
  background-color: #000 !important;
}

.novidact-stage {
  --reveal: 0;
  --gold: #e6c06a;
  --ivory: #f6f1e7;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, calc(100vh * 16 / 9));
  width: min(100vw, calc(100dvh * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: #000;
  color: var(--ivory);
  font-family: Georgia, 'Times New Roman', serif;
}

.novidact-stage *, .novidact-dialog * { box-sizing: border-box; }

.novidact-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.novidact-background { z-index: 0; }
.novidact-film { z-index: 1; opacity: .55; }

/* Interface from the import, sized to the shared 16:9 scene, not the viewport. */
.novidact-stage .brand {
  position: absolute;
  z-index: 3;
  top: 5%;
  right: 4%;
  width: 35%;
  text-align: center;
  text-shadow: 0 2px 18px #000, 0 1px 3px #000;
  pointer-events: none;
}
.novidact-stage .brand::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2cqw -3cqw -2.2cqw;
  background: radial-gradient(ellipse at 50% 42%, rgba(3, 8, 15, .62), rgba(3, 8, 15, .4) 48%, transparent 75%);
  filter: blur(.65cqw);
  pointer-events: none;
}
.novidact-stage .brand-symbol { color: var(--gold); font-size: 1.35cqw; line-height: 1; margin-bottom: .55cqw; }
.novidact-stage .brand-name { font-size: 3.55cqw; letter-spacing: .055em; line-height: 1.05; }
.novidact-stage .brand-tagline { color: var(--gold); font-size: 1.5cqw; margin-top: .45cqw; line-height: 1.25; }
.novidact-stage .brand-subline { font-size: 1.08cqw; margin-top: .8cqw; line-height: 1.5; }

.novidact-stage .right-scrim {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 auto;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(3, 8, 15, .12) 25%, rgba(3, 8, 15, .64));
  opacity: var(--reveal);
  pointer-events: none;
}
.novidact-stage .reveal-ui {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: var(--reveal);
  transform: translateX(calc((1 - var(--reveal)) * 1.1cqw));
  filter: blur(calc((1 - var(--reveal)) * 1.5px));
  pointer-events: none;
}
.novidact-stage .reveal-ui.clickable a { pointer-events: auto; }
.novidact-stage .role-cards {
  position: absolute;
  top: 31%;
  right: 4%;
  width: 32%;
  display: grid;
  gap: .75cqw;
}
.novidact-stage .role-card {
  display: grid;
  grid-template-columns: 3cqw 1fr 1cqw;
  align-items: center;
  gap: 1cqw;
  height: 5.1cqw;
  padding: 0 1.4cqw;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid rgba(236, 213, 162, .5);
  border-radius: .85cqw;
  background: linear-gradient(100deg, rgba(5, 17, 29, .82), rgba(9, 20, 31, .65));
  box-shadow: 0 .6cqw 2cqw rgba(0, 0, 0, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.novidact-stage .role-card:hover { transform: translateX(-.2cqw); border-color: var(--gold); background: rgba(9, 20, 31, .92); }
.novidact-stage .role-card:focus-visible, .novidact-stage .info-menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.novidact-stage .role-icon { display: grid; place-items: center; color: var(--gold); }
.novidact-stage .role-icon svg { width: 2.7cqw; height: 2.7cqw; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.novidact-stage .role-copy { min-width: 0; }
.novidact-stage .role-copy strong { display: block; font-size: 1.4cqw; font-weight: 600; letter-spacing: .025em; line-height: 1.3; }
.novidact-stage .role-copy small { display: block; font-size: 1cqw; margin-top: .25cqw; line-height: 1.3; color: rgba(248, 244, 235, .8); }
.novidact-stage .arrow { font-size: 2.3cqw; color: var(--gold); line-height: 1; }
.novidact-stage .practice-card {
  border-color: #ec7777;
  background: linear-gradient(100deg, rgba(92, 18, 30, .93), rgba(42, 15, 26, .9));
  animation: practice-pulse 3.6s ease-in-out infinite;
}
.novidact-stage .practice-card .role-icon,
.novidact-stage .practice-card .arrow { color: #ffabab; }
.novidact-stage .practice-card .role-copy strong { font-size: 1.2cqw; }
.novidact-stage .practice-card .role-copy small { color: #ffe0db; }
.novidact-stage .practice-card:hover { background: #581b28; border-color: #ffc2b9; }
.novidact-stage .reveal-ui[aria-hidden="true"] .practice-card { animation-play-state: paused; }
@keyframes practice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 63, 76, .08), inset 0 0 1cqw rgba(231, 63, 76, .04); }
  50% { box-shadow: 0 0 1.2cqw .12cqw rgba(231, 63, 76, .3), inset 0 0 1.2cqw rgba(231, 63, 76, .12); }
}
.novidact-stage .info-menu {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4cqw;
  padding-top: 1cqw;
  border-top: 1px solid rgba(230, 192, 106, .45);
}
.novidact-stage .info-menu a { color: var(--ivory); font-size: .85cqw; text-decoration: none; padding: .6cqw 0; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.novidact-stage .info-menu a:hover { color: var(--gold); }

.novidact-dialog {
  inset: 0;
  margin: auto;
  width: min(620px, 88vw);
  max-height: 85vh;
  max-height: 85dvh;
  overflow: auto;
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid #8a7854;
  border-radius: 18px;
  background: #101922;
  color: #f6f1e7;
  font: 16px/1.65 'Segoe UI', sans-serif;
  box-shadow: 0 24px 90px #0008;
}
.novidact-dialog::backdrop { background: #02080dc9; backdrop-filter: blur(5px); }
.novidact-dialog h1 { font: 32px/1.2 Georgia, serif; margin: 18px 0; }
.novidact-dialog .novidact-eyebrow { color: #e6c06a; font-size: 12px; letter-spacing: .06em; padding-right: 20px; }
.novidact-dialog-items { padding-left: 20px; }
.novidact-dialog-note { color: #c8c2b5; border-top: 1px solid #ffffff21; padding-top: 18px; font-size: 14px; }
.novidact-dialog button { cursor: pointer; font: inherit; }
.novidact-close { position: absolute; right: 14px; top: 10px; width: 42px; height: 42px; border: 0; color: #e6c06a; background: transparent; font-size: 28px !important; }
.novidact-back { color: #f6f1e7; padding: 10px 18px; border: 1px solid #8a7854; border-radius: 7px; background: transparent; }
.novidact-dialog button:focus-visible { outline: 2px solid #e6c06a; outline-offset: 4px; }

.novidact-rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  background: #000;
  color: #f2cc70;
  text-align: center;
  font: 20px/1.5 system-ui, sans-serif;
}

.novidact-rotate strong { font-size: 28px; }

@media (orientation: portrait) {
  .novidact-stage { display: none; }
  .novidact-rotate { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .novidact-film { display: none; }
  .novidact-stage .reveal-ui { transform: none; filter: none; }
  .novidact-stage .role-card { transition: none; }
  .novidact-stage .practice-card { animation: none; }
}
