/* Signature motion: clip-path wipe on headings as they enter.
   Hero sequence staggers on load. Images scale inside their frame. */

@keyframes rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}

@keyframes mark-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes clip-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.enter { animation: rise 0.75s var(--ease) both; }
.enter-2 { animation-delay: 0.1s; }
.enter-3 { animation-delay: 0.2s; }
.enter-4 { animation-delay: 0.32s; }
.enter-5 { animation-delay: 0.44s; }

html.js .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .wipe {
  clip-path: inset(0 100% 0 0);
}

html.js .is-visible.wipe,
html.js .is-visible .wipe {
  animation: clip-wipe 0.75s var(--ease) forwards;
}

@media (hover: hover) {
  .frame img { transition: transform 220ms var(--ease); }
  .frame:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal,
  html.js .wipe,
  html.js .is-visible.wipe,
  html.js .is-visible .wipe {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }
}
