/* Quantum Sphere v49 audit and scroll fixes. Keep this filename versioned. */

/*
 * The generated app updates several CSS transforms on every scroll frame.
 * Large product images plus those parallax transforms can make the document
 * feel locked after a same-page navigation. Keep scrolling native and cheap.
 */
.hero-stack,
.shirt-card-motion {
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

#catalog,
#collection,
#how-to-order,
#about,
#faq {
  scroll-margin-top: 104px;
}

html,
body,
.site-shell {
  scroll-snap-type: none !important;
  overscroll-behavior-y: auto !important;
}

@media (max-width: 900px), (pointer: coarse) {
  .shirt-gallery-glow {
    filter: none !important;
    opacity: 0.1 !important;
  }
}

@media (max-width: 900px) {
  /* Essential above-the-fold content must never begin invisible on phones. */
  .hero-copy,
  .hero-tile {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  /* Keep the product brand readable instead of squeezing it beside the back link. */
  .site-header.compact-header {
    min-height: 112px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: center !important;
    justify-items: start !important;
    gap: 10px !important;
    padding: 16px 20px !important;
  }

  .site-header.compact-header .brand {
    width: min(190px, 72vw) !important;
    max-width: none !important;
  }

  .site-header.compact-header .back-link {
    justify-self: start !important;
    font-size: 0.78rem !important;
  }
}

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

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #07090f;
  background:
    radial-gradient(circle at 85% 15%, rgb(21 87 255 / 14%), transparent 34%),
    #f5f2eb;
  font-family: Arial, Helvetica, sans-serif;
}

.not-found-card {
  width: min(620px, 100%);
  padding: clamp(32px, 7vw, 64px);
  border: 1px solid rgb(7 9 15 / 14%);
  border-radius: 28px;
  background: rgb(255 254 251 / 92%);
  box-shadow: 0 30px 80px rgb(7 9 15 / 12%);
  text-align: center;
}

.not-found-card img {
  width: min(330px, 90%);
  margin: 0 auto 36px;
}

.not-found-card h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 9vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.not-found-card p {
  max-width: 440px;
  margin: 18px auto 28px;
  color: #555a64;
  line-height: 1.7;
}

.not-found-card a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  background: #1557ff;
  font-weight: 800;
  text-decoration: none;
}
