/* upload 42 (2.12.2026): colours mapped to royal purple / ivory / Sunglow gold */
/* Upload 41 FINAL (2.12.2026, built clean after Ivan's iPhone tests). Rules: SMOOTHNESS-RULES.md.
   1. Letters fill with colour: linked to scrolling on computers; on phones/tablets they fill in once by themselves
      when a title comes into view.
   2. Slide-over on every device = native sticky with <main> not clipping (tested calm on a real iPhone 15, 2.12),
      a film hold of one screen, and a catch for hard flicks (touch or wheel).
   No script ever moves anything while scrolling. Text in the HTML is unchanged. "Reduce motion" = static page. */
.vbi-w{display:inline-block;white-space:nowrap}
.vbi-c{display:inline}
.big-title em.vbi-em,.vb-final-title em.vbi-em,#gallery h2 em.vbi-em{background:none!important;-webkit-text-fill-color:currentColor!important}
.vbi-em .vbi-c{background:linear-gradient(100deg,#e5dbf3 0,#c5aee4 45%,#dcceee 100%);background-size:var(--w,100%) 100%;background-position:calc(var(--x,0px)*-1) 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
/* all devices: native sticky inside the stack box (released after "four ways to stay"); later sections on top.
   <main> must not clip: overflow:clip on <main> made iPhone Safari draw the held sections 2-3 px back and forth
   (real iPhone 15, 2.12: 23/31/15 bounces with clip, 3/5/6 without; html/body keep their clip, no sideways scroll) */
html.vbd-sticky main{overflow:visible!important}
.vbd-stack{position:relative}
html.vbd-sticky .vbd-stack>.hero,html.vbd-sticky .vbd-stack>#film{position:sticky;top:var(--vbd-top,0px)}
html.vbd-sticky .vbd-stack>.hero{z-index:0}
html.vbd-sticky .vbd-stack>#film{z-index:1}
html.vbd-sticky .vbd-stack>.vb-for{position:relative;z-index:2}
/* phones: film hold = one full screen of scrolling while the film stays full screen and still; the stop mark sits 20%
   into it (stack top + hero height + 20svh = scroll position where the film has been full for 35% of a screen).
   Gentle snap (proximity, never mandatory on phones: r99) and only this one mark: the site's own section snaps stay off. */
html.vbd-sticky .vbd-stack>.vb-for{margin-top:100svh}
html.vbd-snapon,html.vb-top.vbd-snapon{scroll-snap-type:y proximity!important}
.vbd-snap{position:absolute;left:0;top:calc(var(--vbd-hero,0px) + 20svh);width:1px;height:1px;pointer-events:none;opacity:0;scroll-snap-align:start;scroll-snap-stop:always}
/* the film never moves inside its own frame (found frame by frame 2.12): no old slide-in, one zoom value */
html body #film .wrap.reveal{opacity:1!important;transform:none!important;translate:none!important;transition:none!important;animation:none!important}
html body .film .film-frame .film-video,html body .film .film-frame.is-live .film-video{transform:scale(1.1)!important;transition:filter .5s ease-out!important}
/* film "hold to speed up" button (Ivan 2.12): round, a little bigger, above Pause; shows the speed while held */
html body #film .vbf-speed{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none;z-index:4;width:52px!important;height:52px!important;padding:0!important;border-radius:50%!important;justify-content:center;font:600 22px/1 var(--sans,Arial,sans-serif)!important;gap:0}
html body #film .vbf-speed::before{content:none!important;display:none!important}
html body #film .vbf-speed.on{background:rgba(104,74,143,0.8);border-color:#e2d6f1;color:#fffff0;font-size:15px!important}
@media (min-width:901px){html body #film .vbf-speed{width:58px!important;height:58px!important;font-size:24px!important}}

/* while the film is held under the menu its lower edge is a menu-height below the screen: lift its buttons and the phone
   captions by the same amount so they stay on screen (Pause, Sound, Hold to speed up) */
/* iPhone (real-device screenshot 2.12): Safari's bottom bar is see-through, so the held film must reach under it
   (100lvh = the screen with the bars hidden); its buttons and captions are lifted by the same extra amount */
html.vbd-sticky body #film .film-frame{height:calc(100lvh)!important}
html.vbd-sticky body #film{height:auto!important}
html.vbd-sticky body #film .film-toggle{bottom:calc(10px + var(--vbd-top,0px) + 100lvh - 100svh)!important}
@media (min-width:901px){html.vbd-sticky body #film .film-toggle{bottom:calc(18px + var(--vbd-top,0px) + 100lvh - 100svh)!important}}
/* the dark caption gradient stays down to the film's lower edge (moving it up left a lighter see-through strip, Ivan 2.12);
   only the caption TEXT is lifted */
html.vbd-sticky body #film .film-cap{bottom:calc(74px + env(safe-area-inset-bottom) + var(--vbd-top,0px) + 100lvh - 100svh)!important}
html body #film .film-caps,html body #film .film-cap,html body #film .film-toggle,html body #film .kicker{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* hero numbers (Ivan 2.12): "16" and "5" look exactly like "406" and "6" (they had become half size and gold) */
.hero-bottom .hero-stat strong>span.vb-stat-value,html #home .hero-stat strong>span.vb-stat-value{display:inline-block!important;font-size:1em!important;letter-spacing:inherit!important;vertical-align:baseline!important;margin:0!important;color:inherit!important;text-transform:none!important;font-variant-numeric:tabular-nums}
/* "5/5" (Ivan 2.12): the "/5" exactly as big as the "5" */
html #home .hero-stat strong>span.vb-stat-value+span{font-size:1em!important;letter-spacing:inherit!important;vertical-align:baseline!important;color:inherit!important}
