.mark polygon,
.mark path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 1.15s var(--ease) forwards;
}

.wordmark-lockup {
  animation: wipe 0.9s var(--ease-wipe) 0.15s both;
}

.hero-copy > * {
  animation: rise 0.85s var(--ease) both;
}

.hero-copy .advertorial { animation-delay: 0.05s; }
.hero-copy h1 {
  animation: rise 0.9s var(--ease) 0.12s both, title-wipe 1.05s var(--ease-wipe) 0.12s both;
}
.hero-copy .lead { animation-delay: 0.34s; }
.hero-copy .btn { animation-delay: 0.5s; }

.hero-figure {
  animation: rise 1s var(--ease) 0.28s both;
}

html.js .wipe {
  opacity: 0;
}

.wipe.is-visible {
  opacity: 1;
  animation: title-wipe 0.95s var(--ease-wipe) both;
}

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

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

.frame img,
.hero-figure img,
.kit-figure img {
  transition: transform 240ms var(--ease);
}

.frame:hover img,
.hero-figure:hover img,
.kit-figure:hover img {
  transform: scale(1.04);
}

.btn {
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.btn:hover {
  transform: scale(1.03);
  background: var(--brand-secondary);
}

.kit .btn {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.kit .btn:hover {
  background: var(--surface-base);
  color: var(--text-primary);
}

.btn:hover::after {
  transform: translateX(130%);
  transition: transform 520ms var(--ease);
}

.nav-list a {
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.nav-list a:hover {
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  transform: translateX(4px);
}

.sidebar {
  transition: width 220ms var(--ease);
}

.page,
.site-footer {
  transition: margin-left 220ms var(--ease);
}

.nav-label,
.wordmark-lockup,
.sidebar-foot {
  transition: opacity 180ms var(--ease);
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

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

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

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

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

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