/* Fortress intro module — build video plays once, then hands off to the interactive
   fortress stage (same-origin iframe). See fortress-intro-widget.js. */
.sec-fortress-hint {
  text-align: center;
  font-family: var(--font-mono-dm);
  font-size: 0.85rem;
  color: var(--ink-soft, #5a6675);
  opacity: 0.75;
  margin: 0.25rem 0 0;
}
.fortress-intro {
  position: relative;
  width: 100%;
  /* Caps width to whatever keeps a 16:9 box under max-height on its own — otherwise
     width:100% can exceed that on wide viewports, height gets clamped without width
     following, and the canvas inside letterboxes (black bars) instead of filling it. */
  max-width: calc(82vh * 16 / 9);
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  background: #0b1118;
}
.fortress-intro video {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.7s ease;
}
/* Stage loads underneath while the video plays; swap is a crossfade. Scaled up a hair and
   clipped by overflow:hidden above to crop the canvas's own letterbox-rounding edge pixels. */
.fortress-stage-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.02);
  transform-origin: center;
}
.fortress-intro.show-stage video {
  opacity: 0;
  pointer-events: none;
}
.fortress-intro-unmute {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fortress-intro.show-stage .fortress-intro-unmute {
  display: none;
}
.fortress-intro:not(.started) .fortress-intro-unmute {
  display: none;
}

/* Cover screen — shown until the visitor opts in; nothing plays or captures
   scroll/wheel before that click. */
.fortress-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.35), rgba(11, 17, 24, 0.75)),
    url('/assets/Flux-Security-Fortress.jpg') center / cover no-repeat;
  transition: opacity 0.4s ease;
}
.fortress-intro.started .fortress-cover {
  opacity: 0;
  pointer-events: none;
}
.fortress-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.fortress-enter-btn:hover {
  background: var(--accent-hover);
}
.fortress-cover-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono-dm);
  font-size: 0.85rem;
}

/* Exit / resume — a persistent control outside the iframe so it stays clickable
   regardless of what the canvas underneath is capturing. */
.fortress-exit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}
.fortress-intro:not(.started) .fortress-exit-btn {
  display: none;
}
.fortress-intro.paused-interaction .fortress-stage-frame,
.fortress-intro.paused-interaction video {
  pointer-events: none;
}
