/* Scroll reveal: content fades in and glides up as it scrolls into view, a viewport at a time (reveal.js adds .is-in,
   once). Each section opens with its heading and ruled lines; the items below follow as they enter the viewport, a
   short step apart (reveal.js sets the step as --rv-d on each item).
   html.reveal is set by an inline script in <head> (motion allowed, IntersectionObserver available) so the hidden
   state is in place before the first paint; it is removed after a few seconds if reveal.js never runs.
   Work gallery: every item in each section's canvas, ruled lines included (.p-bg--lines), except the background art
   (.p-bg: the paper, the strips of squares between sections and the seams on section edges stay put, like the page
   itself); the hero is left out: it has its own intro. The in-app promotions hover layer (.p-hz-lift, added on hover)
   is not part of the reveal.
   Resume: each block of each section; rows of blocks (the expertise row, the company list, the buttons) by block.
   Fade and rise share one gentle ease-out (cubic). The transition and the compositor layer only apply while revealing
   (.rv-live, dropped by reveal.js once the move ends), so parts with transitions of their own (the in-app promotions
   hover) keep them afterwards. */
.rv-live {
  transition: opacity 1100ms cubic-bezier(.33, 1, .68, 1), translate 1300ms cubic-bezier(.33, 1, .68, 1);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, translate;
}
/* Icon and vehicle grids, a row at a time and an icon at a time within the row (reveal.js): the figure's pictures are
   hidden while copies of them show in bands (one per row) of cells (one per icon), each clipped to its cell. A band
   reveals like any item, but its cells do the moving, 45ms apart (--c = the cell's column). */
.rv-hide { visibility: hidden; }
.rv-band { position: absolute; left: 0; width: 100%; pointer-events: none; }   /* clicks and scrolls go through (the phone list) */
.rv-cell { position: absolute; top: 0; height: 100%; overflow: hidden; }
.rv-cell__in { position: absolute; }
.rv-band.rv-live > .rv-cell {
  transition: opacity 1100ms cubic-bezier(.33, 1, .68, 1), translate 1300ms cubic-bezier(.33, 1, .68, 1);
  transition-delay: calc(var(--rv-d, 0ms) + var(--c) * 45ms);
  will-change: opacity, translate;
}
.rv-band.rv-live { transition: none; will-change: auto; }
.reveal .rv-band:not(.is-in) > .rv-cell { opacity: 0; translate: 0 40px; }
/* 3D vehicles drive in from the left instead: a long, smooth slow-down into place, a quick fade at the start, and a
   little more room between the vehicles of a row. */
#vehicle-set .rv-band.rv-live > .rv-cell {
  transition: opacity 600ms cubic-bezier(.33, 1, .68, 1), translate 1500ms cubic-bezier(.16, .84, .3, 1);
  transition-delay: calc(var(--rv-d, 0ms) + var(--c) * 90ms);
}
.reveal #vehicle-set .rv-band:not(.is-in) > .rv-cell { translate: calc(-140 * var(--d)) 0; }
/* Visual redesign characters: big figures, so a little more time between them. Their cells are clipped to the panel
   (reveal.js, .rv-cell--clip) and stay put; the character rises inside, so its cut-off body never shows past the panel. */
figure[data-name="Characters"] > .rv-band.rv-live > .rv-cell { transition-delay: calc(var(--rv-d, 0ms) + var(--c) * 100ms); }
.rv-band.rv-live > .rv-cell--clip > .rv-cell__in {
  transition: translate 1300ms cubic-bezier(.33, 1, .68, 1);
  transition-delay: calc(var(--rv-d, 0ms) + var(--c) * 100ms);
}
.reveal .rv-band:not(.is-in) > .rv-cell--clip { translate: none; }
.reveal .rv-band:not(.is-in) > .rv-cell--clip > .rv-cell__in { translate: 0 40px; }
.reveal .p-sec:not(.p-sec--hero) > .p-canvas > :is(:not(.p-bg), .p-bg--lines):not(.is-in, .p-hz-lift),
.reveal .r-wrap > section > :not(.r-expertise__row, .r-companies, .r-cta__btns):not(.is-in),
.reveal .r-wrap > section > :is(.r-expertise__row, .r-companies, .r-cta__btns) > :not(.is-in) {
  opacity: 0;
  translate: 0 56px;
}
