/* Native replacement for the original Home's Webflow interactions.
 * The preserved layout stylesheet remains the visual source of truth.
 * A failed/disabled animation never leaves page content permanently hidden.
 */
@media (prefers-reduced-motion: no-preference) {
  .container-main {
    animation: home-intro 1s linear both;
  }

  .last-section {
    animation: home-fade 1s 1.1s linear both;
  }

  .navbar-content {
    animation: home-fade .5s 2.1s linear both;
  }
}

@keyframes home-intro {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 992px) {
  .link-footer .underline {
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease-out;
  }

  .link-footer:hover .underline,
  .link-footer:focus-visible .underline {
    transform: scaleX(1);
  }
}

/* Original footer's 40px email forces the mobile grid to 483px wide.
 * Allow a natural line break without changing its type size or content.
 */
@media (max-width: 479px) {
  .getintouch-footer {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  .link-footer {
    overflow-wrap: anywhere;
  }
}

/* The original 400px minimum exceeds the card at the 480px breakpoint. */
@media (min-width: 480px) and (max-width: 767px) {
  .project-background-jus {
    min-width: 0;
  }
}

a:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 5px;
}
