/* ---- the three products' stages (js/stages.js) ----
   From 1200 px wide each row is a band 280 px tall, its words in the left 60% over a shade, its
   stage filling the band behind them and fading at its top and bottom. Narrower, the stage stands
   above the words, edge to edge in the box. */
.mission-list > [data-stage] { position: relative; isolation: isolate; }
.mission-list .stage { position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stage-canvas { position: absolute; left: 0; top: 0; display: block; }

@media (min-width: 1200px) {
  .mission-list > [data-stage] { height: 280px; padding-right: 40%; align-content: start; }
  .mission-list .stage { bottom: 0; }
  /* the drawn stages fade their own edges; the Client App's, a still picture, is masked once */
  .mission-list .stage-client { -webkit-mask: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%); mask: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%); }
  /* the shade under the words, lifting away toward the stage */
  .mission-list .stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgba(11, 12, 14, .94) 0%, rgba(11, 12, 14, .88) 40%, rgba(11, 12, 14, .45) 56%, rgba(11, 12, 14, 0) 68%); }
  /* Proof's words are fewer, so they take a narrower measure and leave its map more room; the film
     is the console's own map, labels and all, so under the words it is all but hidden */
  .mission-list > [data-stage="proof"] { padding-right: 45%; }
  .mission-list .stage-proof::after { background: linear-gradient(90deg, rgba(11, 12, 14, .96) 0%, rgba(11, 12, 14, .96) 56%, rgba(11, 12, 14, .55) 59%, rgba(11, 12, 14, .15) 61.5%, rgba(11, 12, 14, 0) 64%); }
}
@media (max-width: 1199px) {
  .mission-list > [data-stage] { padding-top: calc(100% / 2.4 + 20px); }
  .mission-list .stage { aspect-ratio: 2.4 / 1; }
  .mission-list .stage-client { -webkit-mask: linear-gradient(to bottom, #000 82%, transparent 100%); mask: linear-gradient(to bottom, #000 82%, transparent 100%); }
}
@media (max-width: 759px) {
  .mission-list > [data-stage] { padding-top: calc(100% / 1.6 + 16px); }
  .mission-list .stage { aspect-ratio: 1.6 / 1; }
}

/* the Theasi Client App: its dashboard, Theasi's T, and the assistants' marks in glass chips */
.stage-client .cs-group { position: absolute; top: 50%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 24px; }
.stage-client.is-wide .cs-group { right: 28px; transform: translateY(-50%) scale(var(--k, 1)); transform-origin: 100% 50%; }
.stage-client:not(.is-wide) .cs-group { left: 50%; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: 50% 50%; }
.cs-dash { display: block; height: 214px; width: auto; max-width: none; }
.cs-side { display: grid; justify-items: center; gap: 20px; }
.cs-t { position: relative; width: 112px; height: 100px; }
.cs-t::before { content: ""; position: absolute; inset: -64px -74px; background: radial-gradient(closest-side, rgba(233, 196, 128, .3), rgba(233, 196, 128, .08) 55%, transparent 78%); }
.cs-t svg { position: relative; display: block; width: 100%; height: 100%; }
.cs-chips { display: grid; grid-template-columns: repeat(5, 32px); gap: 8px; }
.cs-chip { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #F4F1EA;
  background: radial-gradient(120% 120% at 30% 18%, #26282E 0%, #121316 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(0, 0, 0, .8); }
.cs-chip svg { display: block; width: 18px; height: 18px; }

/* Theasi Proof: the console itself, its map filmed as it draws it, and its top bar and Signed
   readings panel from its own markup and style sheet (js/proof-stage.js), floating over the map */
.stage-proof .ps-film { position: absolute; display: block; max-width: none; background: #17171a; }
.stage-proof.is-wide .ps-film { -webkit-mask: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%); mask: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%); }
.stage-proof:not(.is-wide) .ps-film { -webkit-mask: linear-gradient(to bottom, #000 80%, transparent 100%); mask: linear-gradient(to bottom, #000 80%, transparent 100%); }
.stage-proof .ps-haze { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 17, 24, .55) 0%, rgba(14, 17, 24, .18) 30%, rgba(14, 17, 24, 0) 52%); }
.stage-proof .ps-window { position: absolute; z-index: 3; right: 24px; top: 50%; width: 390px; border-radius: 16px; transform-origin: 100% 50%;
  transform: translateY(-50%) perspective(1600px) rotateY(-8deg) scale(var(--k, .7));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 6px rgba(0, 0, 0, .55), 0 28px 64px -16px rgba(0, 0, 0, .95); }
.stage-proof .ps-fx { z-index: 4; pointer-events: none; }
.stage-proof .ps-credit { position: absolute; z-index: 4; right: 6px; bottom: 4px; padding: 2px 5px; border-radius: 3px; background: rgba(11, 12, 14, .78); font: 400 9px/1.2 var(--text); color: rgba(244, 241, 234, .42); white-space: nowrap; }
.stage-proof:not(.is-wide) .ps-window { right: 14px; }
