/* The opening of the Virgin copy (21 Oct 2026, chat VIRGIN OPENING).
   Rows: vo1 phones strip, vo2 red climbs behind the phones, vo3 floating states in At a glance, vo4 the problem band film.
   Never sets radius, background, colour, font or padding on a coded part (.la, .iph, .vj-phone): layers sit beside or behind them.
   Flat, square corners, no shadows of its own. Everything loops; data-motion="still" stops it. */

/* vo1: the three phones strip off */
html[data-vo1="off"] .cs-intro .cs-cover { display: none; }

/* the red layer: a plain block behind the phones, painted with the At a glance colour at runtime (opening.js) */
.cs-intro { position: relative; }
.cs-intro > .vo-red.vo-red.vo-red { position: absolute; z-index: 0; }
.vo-red { position: absolute; inset: auto 0 0 0; height: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
html[data-vo-climb] .vo-red { display: block; height: calc(var(--vo-dh, 0px) * var(--vo-climb-n, .66)); }
html[data-vo-climb] .cs-intro > .cs-cover.cs-cover { position: relative; z-index: 2; }
html[data-vo-climb] .cs-intro .cs-cover > :is(img, .cs-stage) { background: transparent; }

/* floating states: the layer, its cards and the two motions */
.vo-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.vo-float[hidden] { display: none; }
.vo-card { position: absolute; will-change: translate; animation: vo-bob calc(var(--vo-d, 8s) / var(--vo-speed, 1)) ease-in-out var(--vo-delay, 0s) infinite alternate; }
.vo-card .vj-solo { margin: 0; }
@keyframes vo-bob { from { translate: 0 calc(var(--vo-bob, 10px) * -1); } to { translate: 0 var(--vo-bob, 10px); } }
.vo-row { position: absolute; left: 0; display: flex; align-items: center; gap: var(--space-500); width: max-content; animation: vo-run calc(var(--vo-rd, 80s) / var(--vo-speed, 1)) linear infinite; }
.vo-row.rev { animation-direction: reverse; }
.vo-row .vo-card { position: relative; animation: none; }
@keyframes vo-run { from { translate: 0 0; } to { translate: -50% 0; } }
html[data-motion="still"] .vo-card, html[data-motion="still"] .vo-row { animation: none; }
@media (prefers-reduced-motion: reduce) { .vo-card, .vo-row { animation: none; } }

/* At a glance: the cards live in a zone above the words (options 2 and 3) */
html[data-vo3="drift"] .cs-numbers.cs-numbers.cs-numbers, html[data-vo3="march"] .cs-numbers.cs-numbers.cs-numbers, html[data-vo3^="climb"] .cs-numbers.cs-numbers.cs-numbers.cs-numbers { position: relative; }
html[data-vo3="drift"] .cs-numbers.cs-numbers.cs-numbers, html[data-vo3="march"] .cs-numbers.cs-numbers.cs-numbers { padding-top: calc(var(--space-800) + var(--vo-zone, 280px)); }
html[data-vo3] .cs-numbers > :not(.vo-float) { position: relative; z-index: 1; }

/* review-only opening tuner: three sliders, left of the Hero tuner pill */
.vo-tune { position: fixed; left: calc(50% - 3.5rem); transform: translateX(-100%); bottom: var(--space-400); z-index: 60; background: var(--color-surface); color: var(--color-text-primary); border: var(--border-hairline); border-radius: var(--btn-radius); padding: 0 var(--space-500); font: inherit; font-weight: var(--weight-semibold); }
.vo-tune[open] { max-height: 72vh; overflow: auto; border-radius: var(--radius-lg); display: grid; gap: var(--space-300); width: min(20rem, calc(100vw - 2 * var(--space-400))); padding: var(--space-300) var(--space-500) var(--space-500); }
.vo-tune summary { cursor: pointer; min-height: var(--touch-target-min); display: flex; align-items: center; }
.vo-tune label { display: grid; grid-template-columns: 1fr auto; gap: var(--space-100) var(--space-300); align-items: center; font-weight: var(--weight-regular); }
.vo-tune label input { grid-column: 1 / -1; width: 100%; min-height: var(--touch-target-min); accent-color: var(--ext-brand-virgin); }
.vo-tune button { justify-self: start; min-height: var(--touch-target-min); padding: 0 var(--space-400); border: var(--border-hairline); background: none; color: inherit; cursor: pointer; }
@media (max-width: 720px) { .vo-tune { left: var(--space-400); transform: none; bottom: calc(var(--space-400) + 3.5rem); } }

/* vo4: the problem band film */
html[data-vo4="off"] #story .vs-1ground { display: none; }

/* the side phones are 90% opaque in the hero strip; over the climbing red they stand solid so no card shows through */
html[data-vo-climb] .cs-intro .cs-devices .vj-phone.side { opacity: 1; }

/* the phones' drop shadows (0 40px 90px) ran 130px below them but the hero ended 63px under the phones, so the shadow
   stopped on a hard line at the band (his note 25 Oct, VA BRAND: "the drop shadows from the phone have been clipped").
   Both boxes now clip sideways only, and the shadow falls on into At a glance. */
.cs-part.cs-intro.cs-intro.cs-intro { overflow: clip visible; }
.cs-intro .cs-stage.cs-stage--devices { overflow: clip visible; }
