/* Additions on top of the original stylesheet: scroll reveals and the demo dialog. */

/* Inline eyebrows sit in a line box whose strut is 24px on the live site.
   The hero eyebrow is a block element and keeps its tight 1.2 line-height. */
.eyebrow {
  line-height: 24px;
}

.hero-copy .eyebrow {
  line-height: 1.2;
}

/* ---------- scroll reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 18px));
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js [data-reveal="8"] {
  --reveal-y: 8px;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- demo dialog ---------- */
.demo-modal-backdrop {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.demo-modal-backdrop.is-open {
  opacity: 1;
}

.demo-modal-backdrop.is-hidden {
  display: none;
}

.demo-modal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-modal-backdrop.is-open .demo-modal {
  opacity: 1;
  transform: none;
}

[data-demo-view][hidden] {
  display: none;
}

html.modal-open {
  overflow: hidden;
}

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

  .demo-modal-backdrop,
  .demo-modal {
    transition: none;
  }
}
