/* ============================================================
   01Academy · Utilities
   Applied AI for Business — Off-white / Graphite / Lime
   ============================================================ */

/* Accessible hidden element */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Без JS блок виден сразу — начальное состояние задаётся только под .js,
   а класс .js ставится инлайном в <head> до первой отрисовки.
   reveal.js вешает .is-in, когда блок попадает в кадр. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-vivid) var(--reveal-delay, 0ms),
    transform var(--dur-slow) var(--ease-vivid) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
