/* Reproduces the Framer Motion entrances (opacity 0 -> 1, y 60 -> 0, .8s)
   with IntersectionObserver + transitions. Driven by assets/js/main.js. */

[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal="up-50"]  { transform: translateY(50px); }
[data-reveal="up-70"]  { transform: translateY(70px); }
[data-reveal="scale"]  { transform: scale(.92); }

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

/* Without JS the content must still be visible. */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

/* The original conditionally rendered .mobile-menu, so while closed it simply
   did not exist in the DOM. This build always renders it and toggles [hidden],
   but the extracted `.mobile-menu{display:flex}` outranks the user-agent
   `[hidden]{display:none}` rule - without this the menu shows on desktop. */
.mobile-menu[hidden] { display: none; }

/* Accessibility helpers - no visual change to the original design. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: #16a34a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .3s ease;
}

.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: 3px;
}
