/* 404 / utility page — 1:1 port of ai-glow-team.webflow.io/404.
   Full-screen hero: giant "404", subtext + "Let's go home" button over a
   two-band image marquee (work screenshots) drifting in opposite directions.
   The live site animates the marquee with GSAP (data-speed); we don't load
   webflow.js / that embed JS, so the drift is recreated as a pure-CSS marquee
   (Rule #0 / #3) — same look: linear, seamless, opposite directions. */

.utility-page_component {
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  max-height: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: flex;
}
.utility-page_component.is-404 {
  position: relative;
  overflow: hidden;
}

.utility-page_wrapper {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  text-align: center;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  max-width: 20rem;
  display: flex;
}
.utility-page_wrapper.is-404 {
  z-index: 3;
  grid-column-gap: 0rem;
  grid-row-gap: 0rem;
  justify-content: flex-start;
  align-items: center;
  max-width: 22.875rem;
  position: relative;
}

._404-title {
  color: var(--gray--500);
  letter-spacing: 1px;
  font-family: Neue Montreal, Arial, sans-serif;
  font-size: 10rem;
  font-weight: 400;
  line-height: 1;
}
._404-text {
  color: var(--gray--400);
  margin-top: .5rem;
  margin-bottom: 3.5rem;
  font-family: Neue Montreal, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

/* coming-soon reuses the 404 hero with a word title instead of the "404" number */
.is-utility-title {
  color: var(--gray--500);
  text-align: center;
  text-wrap: balance;
}

/* soft white glow behind the text for legibility over the images */
.utility-page_background {
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, #fff 0%, #fff 100%);
  filter: blur(60px);
  width: 43.125rem;
  height: 100vh;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

/* ---- marquee background ---- */
.utility-page_component-bg {
  grid-column-gap: .3125rem;
  grid-row-gap: .3125rem;
  grid-template-rows: repeat(5, 1fr);
  grid-template-columns: 1fr;
  grid-auto-columns: 1fr;
  padding-top: 4.8rem;
  display: grid;
  position: absolute;
  inset: 0%;
}
.utility-marquee-container {
  width: 100%;
  overflow: hidden;
}
.utility-page_row {
  grid-column-gap: .3125rem;
  grid-row-gap: .3125rem;
  flex-flow: row nowrap;
  align-items: flex-start;
  width: max-content;
  height: 100%;
  display: flex;
  will-change: transform;
  animation: marquee-404 45s linear infinite;
}
.utility-page_row.reverce {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-duration: 22.5s;
}
.utility-page_row-el {
  border-radius: .375rem;
  flex: none;
  width: 11.75rem;
  height: 100%;
  overflow: hidden;
}
.img-100--cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@keyframes marquee-404 {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media screen and (prefers-reduced-motion: reduce) {
  .utility-page_row { animation: none; }
}

@media screen and (max-width: 479px) {
  ._404-title { font-size: 6.25rem; }
  ._404-text {
    max-width: 17rem;
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  .utility-page_row-el { width: 9.75rem; }
  .utility-page_background {
    width: 100%;
    height: 23.75rem;
  }
}
