/* The home page's hero (2026-11-17, the keeper: «put a hero page and scroll eleven video and scout video apps in v-sag.com home page hero place»):
   two apps as two films, one after the other as the visitor scrolls. Generated by www/build_blog.py (hero_section), moved by www/public/duo.js.
   Wide screens: a sticky stage under the menu holds both films one over the other; the scroll fades the first into the second (a plain
   cross-fade; with motion allowed the pictures also breathe a few percent, under Reduce Motion nothing moves, nothing zooms: the films play and
   the change is a fade). Phones, short windows and no script: the two films one under the other, each with its words below it.
   Nothing here changes the house shell (vsag.css): tokens only, the film's own white words on its own dark foot. */

.duo { margin-top: 1.25rem; }

/* ---- stacked (phones, short windows, no script): a film, its words under it ---- */
.duo__slide { display: block; margin: 0 0 2.25rem; }
.duo__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r) * 1.5); background: #0b0b0c; }
.duo__poster, .duo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.duo__video { opacity: 0; }
.duo__slide.is-playing .duo__video { opacity: 1; }
.duo__text { padding-top: 1rem; }
.duo__status { margin: 0; }
.duo__name { margin: .15rem 0 .35rem; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.duo__name strong { font-weight: 600; }
.duo__line { margin: 0; max-width: 30rem; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.duo .more { margin-top: .85rem; }
.duo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; margin: -.75rem 0 0; }
.duo .duo__tabs { display: none; }
.duo__pause { font: 400 .875rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: .7rem 0; cursor: pointer; margin-left: auto; display: none; }
.js .duo .duo__pause { display: inline-block; }
.duo__pause:hover { color: var(--ink); }
.duo__pause[hidden] { display: none; }

/* ---- pinned (script, 48rem and wider, 32rem tall or more): both films on one sticky stage, the scroll is the change ---- */
@media (min-width: 48rem) and (min-height: 32rem) {
  .js .duo { margin-top: 0; height: calc(100svh + 90svh); }          /* the scroll track: one screen pinned plus the run the change takes */
  .js .duo__pin { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; }
  .js .duo__stage { position: relative; width: min(100%, calc((100svh - var(--bar) - 5.75rem) * 1.6)); aspect-ratio: 16 / 10; margin-inline: auto;
    overflow: hidden; border-radius: calc(var(--r) * 1.5); background: #0b0b0c; isolation: isolate; }
  .js .duo__slide { position: absolute; inset: 0; margin: 0; opacity: var(--o, 1); transform: scale(var(--sc, 1)); will-change: opacity, transform; }
  .js .duo__slide[inert] { pointer-events: none; }
  .js .duo__frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .js .duo__frame::after { content: ""; position: absolute; inset: 0;                                  /* the dark foot the words stand on */
    background: linear-gradient(to top, rgba(0, 0, 0, .74) 0, rgba(0, 0, 0, .6) 24%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, 0) 70%); }   /* measured on every second of both films: the words stay at 5.5:1 or more */
  .js .duo__text { position: absolute; z-index: 1; left: clamp(1.25rem, 3.2vw, 2.75rem); bottom: clamp(1.25rem, 3.4vw, 2.5rem); right: clamp(1.25rem, 3.2vw, 2.75rem); padding: 0; max-width: 34rem; color: #fff; opacity: var(--to, 1); }
  .js .duo__status { color: #fff; }
  .js .duo__name { color: #fff; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
  .js .duo__line { color: rgba(255, 255, 255, .95); }
  .js .duo .more { color: #fff; }
  .js .duo .more:focus-visible { outline-color: #fff; }
  .js .duo__bar { width: min(100%, calc((100svh - var(--bar) - 5.75rem) * 1.6)); margin: .75rem auto 0; }
  .js .duo__tabs { display: flex; }
}

/* the very first screen: before the script has set anything, only the first film's poster shows (the second waits at opacity 0) */
@media (prefers-reduced-motion: reduce) { .duo__slide { transition: none; } }

/* the news line under an app in the list beside eleven:eleven (Scout's entry): it sits right under its row, the link is a plain link, not one of the row's grid links */
.works .works__news { display: block; margin: -.1rem 0 .75rem; }
.works .works__news a { display: inline; padding: 0; font-size: .9375rem; font-weight: 500; }
.works .works__news .meta { display: inline; margin-right: .6rem; }
.works .works__news a:hover { text-decoration: underline; text-underline-offset: .2em; }
.duo + .intro { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
