.commercial-document {
  color-scheme: dark;
  background: #050f19;
}

.commercial-standalone {
  --presentation-gutter: clamp(1rem, 3vw, 3rem);
  overflow-x: clip;
  background: #050f19;
}

.commercial-shell,
#commercial-view,
.commercial-presentation {
  min-height: 100dvh;
}

.commercial-presentation.page-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: clip;
}

.presentation-back {
  position: fixed;
  z-index: 90;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  border: 1px solid rgb(131 176 207 / 24%);
  border-radius: 0.55rem;
  background: rgb(5 17 27 / 76%);
  color: #c7dbe9;
  font-size: 0.72rem;
  font-weight: 720;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.presentation-back svg {
  width: 1rem;
  height: 1rem;
}

.presentation-back:hover {
  border-color: #63b9ea;
  background: rgb(13 42 63 / 92%);
  color: #fff;
}

.commercial-presentation .cinematic-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050f19;
  box-shadow: none;
}

.commercial-presentation .story-toolbar-overlay {
  position: absolute;
  z-index: 70;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.commercial-presentation .story-toolbar-overlay .story-controls {
  padding: 0.3rem;
  border: 1px solid rgb(131 176 207 / 22%);
  border-radius: 0.72rem;
  background: rgb(5 17 27 / 76%);
  box-shadow: 0 0.75rem 2rem rgb(0 4 9 / 24%);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.commercial-presentation .story-control,
.commercial-presentation .story-skip {
  min-height: 2.75rem;
}

.commercial-presentation .cinematic-stage {
  width: 100%;
  height: max(100dvh, 42rem);
  min-height: 100dvh;
  border: 0;
  background:
    radial-gradient(circle at 50% 46%, rgb(29 88 130 / 22%), transparent 43%),
    linear-gradient(155deg, #040d15 0%, #081a28 50%, #030a11 100%);
}

.commercial-presentation .stage-grid {
  background-size: clamp(2.75rem, 4.5vw, 4.5rem) clamp(2.75rem, 4.5vw, 4.5rem);
}

.commercial-presentation .stage-vignette {
  box-shadow: inset 0 0 clamp(8rem, 18vw, 18rem) rgb(0 3 7 / 78%);
}

.commercial-presentation .stream-origin-label {
  top: clamp(5rem, 9vh, 7rem);
  left: var(--presentation-gutter);
}

.commercial-presentation .stream-fragment {
  font-size: clamp(0.58rem, 0.72vw, 0.76rem);
}

.commercial-presentation .chaos-cost-field strong {
  font-size: clamp(1.5rem, 3.2vw, 3.25rem);
}

.commercial-presentation .chaos-total strong {
  font-size: clamp(2.75rem, 7vw, 6.4rem);
}

.commercial-presentation .argus-wall {
  top: 4.5%;
  right: 3%;
  bottom: 4.5%;
  left: 3%;
}

.commercial-presentation .wall-reveal {
  inset: 7% 5% 18%;
}

.commercial-presentation .argus-word {
  gap: clamp(0.3rem, 1.8vw, 1.7rem);
  font-size: clamp(4rem, 11.5vw, 11rem);
}

.commercial-presentation .wall-reveal > p {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

.commercial-presentation .wall-scope {
  max-width: 72rem;
  font-size: clamp(0.62rem, 1vw, 0.84rem);
}

.commercial-presentation .wall-reveal > strong {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
}

.commercial-scroll-cue {
  position: absolute;
  z-index: 60;
  bottom: 17%;
  left: 50%;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid rgb(131 176 207 / 22%);
  border-radius: 999px;
  background: rgb(5 17 27 / 72%);
  color: #b9d0df;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translate3d(-50%, 0.4rem, 0);
  transition: opacity 300ms ease, transform 300ms ease, border-color 180ms ease, color 180ms ease;
  backdrop-filter: blur(12px);
}

.commercial-scroll-cue svg {
  width: 1rem;
  height: 1rem;
}

.commercial-presentation.is-complete .commercial-scroll-cue,
.commercial-presentation.is-reduced .commercial-scroll-cue {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.commercial-scroll-cue:hover {
  border-color: #63b9ea;
  color: #fff;
}

.commercial-detail {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 8vw, 7rem) var(--presentation-gutter) 2rem;
  background:
    linear-gradient(180deg, rgb(4 13 21 / 100%) 0, #eaf0f5 7rem, #f4f7fb 13rem);
}

.commercial-detail > * {
  width: min(100%, 92rem);
  margin-right: auto;
  margin-left: auto;
}

.commercial-detail > .capability-section {
  margin-top: 0;
}

@media (max-width: 54rem) {
  .commercial-presentation .story-toolbar-overlay {
    top: max(4.5rem, calc(env(safe-area-inset-top) + 4rem));
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
  }

  .commercial-presentation .story-toolbar-overlay .story-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .commercial-presentation .cinematic-stage {
    height: max(100dvh, 39rem);
  }

  .commercial-presentation .stream-origin-label {
    top: 8.25rem;
  }
}

@media (max-width: 32rem) {
  .presentation-back {
    top: max(0.75rem, env(safe-area-inset-top));
    left: max(0.75rem, env(safe-area-inset-left));
  }

  .commercial-presentation .story-toolbar-overlay {
    top: max(4.2rem, calc(env(safe-area-inset-top) + 3.8rem));
  }

  .commercial-presentation .story-toolbar-overlay .story-controls {
    justify-content: stretch;
  }

  .commercial-presentation .story-control,
  .commercial-presentation .story-skip {
    flex: 1 1 calc(25% - 0.4rem);
    min-width: 0;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
  }

  .commercial-presentation .story-control {
    gap: 0.25rem;
  }

  .commercial-presentation .story-controls span,
  .commercial-presentation .story-skip {
    font-size: 0.62rem;
  }

  .commercial-presentation .stream-origin-label {
    top: 8rem;
  }

  .commercial-presentation .argus-wall {
    top: 4%;
    right: 1.5%;
    bottom: 4%;
    left: 1.5%;
  }

  .commercial-presentation .argus-word {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .commercial-detail {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (max-height: 38rem) and (orientation: landscape) {
  .commercial-presentation .cinematic-stage {
    height: max(100dvh, 34rem);
  }

  .commercial-presentation .story-toolbar-overlay {
    top: max(0.65rem, env(safe-area-inset-top));
    left: auto;
  }

  .commercial-presentation .stream-origin-label {
    top: 4.5rem;
  }

  .commercial-scroll-cue {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: auto;
    transform: translate3d(0, 0.4rem, 0);
  }

  .commercial-presentation.is-complete .commercial-scroll-cue,
  .commercial-presentation.is-reduced .commercial-scroll-cue {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-scroll-cue {
    transition: none;
  }
}
