/* Premium v4: overrides on top of premium-v3.css.
   Hero intro keeps v3's slow timing; scroll reveals are quick, no blur,
   and become instant when the visitor scrolls fast (class .instant). */

/* One frame with no transitions while the hidden starting state is applied */
html.reveal-init [data-reveal], html.reveal-init [data-reveal] * { transition: none !important; }

/* Scroll reveals: 0.6s, short rise, no blur */
html.reveal-on [data-reveal]:not([data-reveal="words"]) {
  --reveal-time: .6s;
  translate: 0 14px;
  filter: none;
}
html.reveal-on [data-reveal]:not([data-reveal="words"]).is-in { translate: 0 0; }

/* Hero intro: the one authored moment, ~0.8s (plays once on load) */
html.reveal-on .top[data-reveal],
html.reveal-on .hero--v2 [data-reveal]:not([data-reveal="pop"]) { --reveal-time: .8s; translate: 0 18px; }
html.reveal-on .hero--v2 h1 .w > span { transition-duration: .85s; }
html.reveal-on .hero-wrap > .doodle path { animation-delay: .55s; animation-duration: 2.2s; }
html.reveal-on .top[data-reveal].is-in,
html.reveal-on .hero--v2 [data-reveal]:not([data-reveal="pop"]).is-in { translate: 0 0; }

/* Card depth: smaller, quicker */
html.reveal-on .card[data-reveal] .laptop { translate: 0 8px; transition: translate .7s var(--reveal-ease) calc(var(--d, 0s) + .05s); }
html.reveal-on .card[data-reveal] .phone  { translate: 0 14px; transition: translate .8s var(--reveal-ease) calc(var(--d, 0s) + .12s); }

/* Stickers: quick ease-out scale, no bounce */
html.reveal-on [data-reveal="pop"] { scale: .85; transition-duration: .45s; transition-timing-function: var(--reveal-ease); }

/* Stickers sit on a neutral drop shadow instead of a lime glow */
.sticker { box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7); }

/* Off-screen loops stop */
.stamp.paused svg, .stamp.paused .stamp-core { animation-play-state: paused; }

/* Reduced motion: no movement, but keep a short fade so arrivals still read */
@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal]:not([data-reveal="words"]) {
    opacity: 0; translate: none; scale: none; filter: none;
    transition: opacity .3s ease-out !important; transition-delay: 0s !important;
  }
  html.reveal-on [data-reveal]:not([data-reveal="words"]).is-in { opacity: 1; }
}

/* Grid lines: wait for the grid, then draw with the cards */
html.reveal-on .grid-wrap[data-reveal="lines"] { opacity: 1; translate: none; transition: none; }
html.reveal-on .grid-wrap .doodle--grid path { animation: none; stroke-dashoffset: 1; }
html.reveal-on .grid-wrap.is-in .doodle--grid path { animation: draw 1.4s var(--reveal-ease) .1s forwards; }

/* Fast scroll or already passed: just appear */
html.reveal-on [data-reveal].instant,
html.reveal-on .card[data-reveal].instant .laptop,
html.reveal-on .card[data-reveal].instant .phone {
  transition-duration: .15s !important;
  transition-delay: 0s !important;
}
/* Only the grid line's draw gets skipped; the CTA stamp keeps spinning normally */
html.reveal-on .grid-wrap.instant .doodle--grid path { animation: none; stroke-dashoffset: 0; }
