/* REVEAL: one motion system for every section opener (reveal.js).
   Pill label first, headline sharpens word by word, subline types out, content rises in. */
.rv-pill { width: fit-content; justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin: 0 0 18px; border-radius: 999px; background: #f4f4f5; color: #3f3f46; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.rv-pill--dark { background: rgba(255,255,255,.08); color: #d4d4d8; }

/* everything below only applies once reveal.js has started, so the page reads fine without JS */
/* the hidden states carry no transition, so hiding is instant; only the move to .is-rv-in animates */
html.rv-on [data-rv] .rv-pill, html.rv-on .rv-pill[data-rv-pill] { opacity: 0; transform: translateY(6px) scale(.96); }
html.rv-on .is-rv-in .rv-pill, html.rv-on .rv-pill.is-rv-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1); }

html.rv-on .rv-w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.18em); transition: opacity .75s ease, filter .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--rv-d, 0ms) + var(--i, 0) * var(--rv-step, 75ms)); will-change: filter, opacity, transform; }
html.rv-on .is-rv-in .rv-w { opacity: 1; filter: blur(0); transform: none; }

/* typed subline: a hidden full copy keeps the layout, the live copy types over it */
.rv-tw { position: relative; display: block; }
.rv-tw__ghost { visibility: hidden; }
.rv-tw__live { position: absolute; inset: 0; }
.rv-tw__rest { color: transparent; }
.rv-tw__caret { display: inline-block; width: 1.5px; height: 1em; margin: 0 -1.5px 0 0; vertical-align: -0.12em; background: currentColor; opacity: .7; animation: rvCaret .9s steps(1) infinite; }
.rv-tw.is-done .rv-tw__caret { animation: rvCaret .9s steps(1) 3; opacity: 0; }
@keyframes rvCaret { 50% { opacity: 0; } }

/* phones: the subline fades up instead of typing out */
html.rv-on [data-rv-fade] { opacity: 0; transform: translateY(8px); }
html.rv-on .is-rv-in [data-rv-fade] { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--rv-d, 0ms); }

/* hero hold: the head line sets html.rv-pre before the first paint, so the hero's words and button stay hidden
   until reveal.js takes over (html.rv-on). rv-late is a 2s safety mark: if the script never runs, the hero shows. */
html.rv-pre:not(.rv-on, .rv-late) .hero--c :is(#hero-h, #hero-sub, .hero-mid, .hero-logos) { opacity: 0; }

/* staggered rise for content under an opener */
html.rv-on [data-rv-rise] > * { opacity: 0; transform: translateY(22px); }
html.rv-on [data-rv-rise].is-rv-in > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--rv-d, 0ms) + var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv-w, html.rv-on [data-rv-rise] > *, html.rv-on .rv-pill, html.rv-on [data-rv-fade] { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .rv-tw__live::after { display: none; }
}
